Artist Top Tracks 1.5 - Updated 18/08/2012

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Artist Top Tracks 1.5 - Updated 18/08/2012

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by mvelders » Fri May 11, 2018 1:41 pm

Is there a list somewhere of appropriate values to use in the "Field to use:" field in the Options box?

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by ohneland » Sat Jun 25, 2016 4:27 am

I tried to get rid of all the Artist Top Tracks-information by deleting the respective field in MM. Then I added them anew. Now I have the same value twice with some files. Is there a way to select the ones with a double entry and then to delete the older entry?
I also wonder why the values show up so inconsistently.
Image

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by trixmoto » Wed Jul 29, 2015 3:54 am

Thanks for posting that, I'm glad you've found the script useful.

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by vespera » Tue Jul 07, 2015 3:37 pm

For anyone else wondering, you can find a full list of compatible 'Field to use' properties here: http://www.mediamonkey.com/wiki/index.php/SDBSongData

Took me a while to figure out:
Playcount = PlayCounter

Thanks for the great work on this plugin trixmoto, you're a legend man!

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by trixmoto » Sun Jan 25, 2015 5:24 pm

"Custom1" (without the space) should work.

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by ohneland » Tue Jan 20, 2015 5:56 pm

When I try to write the value to field "Custom 1" a pop up informs me that an invalid field name was specified. But I have used this field with the previous installation of Media Monkey. I also checked the tags proper name in mp3tag and tried to give the field name as detailed in this programme but to no avail.

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by Onweerwolf » Mon Aug 25, 2014 4:38 am

trixmoto wrote:Actually, the url they give in the webservice has no umlauts (http://www.last.fm/music/+noredirect/Agnetha+Faltskog) but this isn't a known artist, it suggests the artist with the umlaut (http://www.last.fm/music/Agnetha+F%C3%A4ltskog) so it looks like an inconsistency in the data. I'm not sure there's much I can do about that.
Right, it might be possible to circumvent this.

I use Filemappings in MM's .ini file to convert all these weird characters to their closest normal counterparts when I use auto-organize to make the filenames. The reason I do this is because I have a third-part app (CD ART Display) that can't handle these weird characters and then doesn't work.

It looks like this:

Code: Select all

[FilenameMappings]
3A=2D
2A=2D
3F=
3E=2D
3C=2D
22=27
7C=2D
2F=2D
5C=2D
0D0A=
19=
C2A1=33
C380=41
C381=41
C382=41
C383=41
C384=41
C385=41
C386=41
C387=43
C388=45
C389=45
C38A=45
C38B=45
C38C=49
C38D=49
C38E=49
C38F=49
C390=44
C391=4E
C392=4F
C393=4F
C394=4F
C395=4F
C396=4F
C397=78
C398=4F
C399=55
C39A=55
C39B=55
C39C=55
C39D=59
C39E=50
C39F=53
C3A0=61
C3A1=61
C3A2=61
C3A3=61
C3A4=61
C3A5=61
C3A6=61
C3A7=63
C3A8=65
C3A9=65
C3AA=65
C3AB=65
C3AC=69
C3AD=69
C3AE=69
C3AF=69
C3B0=64
C3B1=6E
C3B2=6F
C3B3=6F
C3B4=6F
C3B5=6F
C3B6=6F
C3B8=6F
C3B9=75
C3BA=75
C3BB=75
C3BC=75
C3BD=79
C3BE=70
C3BF=79
C480=41
C481=61
C482=41
C483=61
C484=41
C485=61
C486=43
C487=63
C488=43
C489=63
C48A=43
C48B=63
C48C=43
C48D=63
C48E=44
C48F=64
C490=44
C491=64
C492=45
C493=65
C494=45
C495=65
C496=45
C497=65
C498=45
C499=65
C49A=45
C49B=65
C49C=47
C49D=67
C49E=47
C49F=67
C4A0=47
C4A1=67
C4A2=47
C4A3=67
C4A4=48
C4A5=68
C4A6=48
C4A7=68
C4A8=49
C4A9=69
C4AA=49
C4AB=69
C4AC=49
C4AD=69
C4AE=49
C4AF=69
C4B0=49
C4B1=69
C4B2=49
C4B4=4A
C4B5=6A
C4B6=4B
C4B7=6B
C4B8=4B
C4B9=6B
C4BA=4B
C4BB=4C
C4BC=6C
C4BD=4C
C4BE=6C
C4BF=4C
C581=4C
C582=6C
C583=4E
C584=6E
C585=4E
C586=6E
C587=4E
C588=6E
C589=6E
C58A=4E
C58B=6E
C58C=4F
C58D=6F
C58E=4F
C58F=6F
C590=4F
C591=6F
C592=41
C593=61
C594=52
C595=72
C596=52
C597=72
C598=52
C599=72
C59A=53
C59B=73
C59C=53
C59D=73
C59E=53
C59F=73
C5A0=53
C5A1=73
C5A2=54
C5A3=74
C5A4=54
C5A5=74
C5A6=54
C5A7=74
C5A8=55
C5A9=75
C5AA=55
C5AB=75
C5AC=55
C5AD=75
C5AE=55
C5AF=75
C5B0=55
C5B1=75
C5B2=55
C5B3=75
C5B4=57
C5B5=65
C5B6=59
C5B7=79
C5B8=59
C5B9=5A
C5BA=7A
C5BB=5A
C5BC=7A
C5BD=5A
C5BE=7A
C5BF=73
C680=62
C681=42
C682=42
C683=62
C684=42
C685=62
C686=43
C687=43
C688=63
C689=44
C68A=44
C68B=44
C68C=64
C68D=64
C68E=45
C68F=65
C690=45
C691=46
C692=66
C693=47
C694=47
C695=68
C696=49
C697=49
C698=4B
C699=6B
C69A=6C
C69B=6C
C69C=4D
C69D=4E
C69E=6E
C69F=4F
C6A0=4F
C6A1=6F
C6A2=4F
C6A3=6F
C6A4=50
C6A5=70
C6A6=52
C6A7=53
C6A8=73
C6A9=53
C6AA=73
C6AB=74
C6AC=54
C6AD=74
C6AE=54
C6AF=55
C6B0=75
C6B1=55
C6B2=56
C6B3=59
C6B4=79
C6B5=5A
C6B6=7A
C6B7=33
C6B8=45
C6B9=45
C6BA=33
C6BB=32
C6BC=35
C6BD=35
C6BE=35
C6BF=70
C780=31
C781=32
C782=33
C783=
C784=44
C785=44
C786=64
C787=4C
C788=4C
C789=6C
C78A=4E
C78B=4E
C78C=6E
C78D=41
C78E=61
C78F=49
C790=69
C791=4F
C792=6F
C793=55
C794=75
C795=55
C796=75
C797=55
C798=75
C799=55
C79A=75
C79B=55
C79C=75
C79D=65
C79E=41
C79F=61
C7A0=41
C7A1=61
C7A2=41
C7A3=61
C7A4=47
C7A5=67
C7A6=47
C7A7=67
C7A8=4B
C7A9=6B
C7AA=4F
C7AB=6F
C7AC=4F
C7AD=6F
C7AE=33
C7AF=33
C7B0=6A
C7B1=44
C7B2=44
C7B3=64
C7B4=47
C7B5=67
C7B6=48
C7B7=56
C7B8=4E
C7B9=6E
C7BA=41
C7BB=61
C7BC=41
C7BD=61
C7BE=4F
C7BF=6F
C880=41
C881=61
C882=41
C883=61
C884=45
C885=65
C886=45
C887=65
C888=49
C889=69
C88A=49
C88B=69
C88C=4F
C88D=6F
C88E=4F
C88F=6F
C890=52
C891=72
C892=52
C893=72
C894=55
C895=75
C896=55
C897=75
C898=53
C899=73
C89A=54
C89B=74
C89C=33
C89D=33
C89E=48
C89F=68
C8A0=4E
C8A1=64
C8A2=38
C8A3=38
C8A4=5A
C8A5=7A
C8A6=41
C8A7=61
C8A8=45
C8A9=65
C8AA=4F
C8AB=6F
C8AC=4F
C8AD=6F
C8AE=4F
C8AF=6F
C8B0=4F
C8B1=6F
C8B2=59
C8B3=79
C8B4=6C
C8B5=6E
C8B6=74
C8B7=6A
C8B8=64
C8B9=71
C8BA=41
C8BB=43
C8BC=63
C8BD=4C
C8BE=54
C8BF=73
C980=7A
C981=50
C982=70
C983=42
C984=55
C985=56
C986=45
C987=65
C988=4A
C989=6A
C98A=51
C98B=71
C98C=52
C98D=72
C98E=59
C98F=79
C990=61
C991=61
C992=61
C993=62
C994=6F
C995=63
C996=64
C997=64
C998=65
C999=65
C99A=65
C99B=33
C99C=33
C99D=33
C99E=33
C99F=6A
C9A0=67
C9A1=67
C9A2=47
C9A3=79
C9A4=79
C9A5=68
C9A6=68
C9A7=68
C9A8=69
C9A9=69
C9AA=49
C9AB=6C
C9AC=6C
C9AD=6C
C9AE=68
C9AF=6D
C9B0=6D
C9B1=6D
C9B2=6E
C9B3=6E
C9B4=4E
C9B5=6F
C9B6=6F
C9B7=6F
C9B8=70
C9B9=72
C9BA=72
C9BB=72
C9BC=72
C9BD=72
C9BE=72
C9BF=72
CA80=52
CA81=52
CA82=73
CA83=73
CA84=6A
CA85=73
CA86=73
CA87=74
CA88=74
CA89=75
CA8A=75
CA8B=76
CA8C=76
CA8D=77
CA8E=79
CA8F=59
CA90=7A
CA91=7A
CA92=33
CA93=33
CA94=32
CA95=32
CA96=33
CA97=43
CA98=4F
CA99=42
CA9A=65
CA9B=47
CA9C=48
CA9D=6A
CA9E=4B
CA9F=4C
CAA0=71
CAA1=32
CAA2=32
CAA3=64
CAA4=64
CAA5=64
CAA6=74
CAA7=74
CAA8=74
CAA9=66
CAAA=6C
CAAB=6C
CAAC=77
CAAD=6E
CAAE=68
CAAF=68
CAB0=68
CAB1=68
CAB2=6A
CAB3=72
CAB4=72
CAB5=72
CAB6=52
CAB7=77
CAB8=79
E296B2=41
5F=2D
E1BBB4=59
CE94=41
E1A08D=2D
D098=4E
CE9E=45
E296BC=41
E2889E=2D
CE9B=41
E28886=41
CF9F=73
E58D90=2B
CEA3=45
E296A1=4F
E296A0=4F
E280A0=74
E296B3=41
E285A1=32
C2B1=2B
E29C9D=74
I'm assuming that if your script would also use these filemappings then it would be able to reference the correct artists and titles and get the desired data, but I'm not sure.

Anyway, might be an interesting thing to take a look at.

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by trixmoto » Mon Aug 25, 2014 4:37 am

It looks like the "foreign" characters are there in the database itself, but the artist search doesn't seem to work when they are specified. This is definitely a change in behaviour, because the script was originally tested with characters in these ranges. I could try normalising them for the search and then putting them back in, but that's going to be very tricky and rather flakey, I think.

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by Onweerwolf » Mon Aug 25, 2014 4:30 am

So, does that mean that all weird characters are 'normalized' in the last.fm database?

The umlaut is there on the official page: http://www.last.fm/music/Agnetha+Fältskog

And, as my tests indicate this goes for all artists and titles with weird characters as none of them are found using the script.

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by trixmoto » Mon Aug 25, 2014 4:26 am

Actually, the url they give in the webservice has no umlauts (http://www.last.fm/music/+noredirect/Agnetha+Faltskog) but this isn't a known artist, it suggests the artist with the umlaut (http://www.last.fm/music/Agnetha+F%C3%A4ltskog) so it looks like an inconsistency in the data. I'm not sure there's much I can do about that.

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by trixmoto » Mon Aug 25, 2014 4:23 am

The encoding of the url is correct, but LastFm have this artist listed without the umlaut... http://ws.audioscrobbler.com/2.0/?metho ... A+FALTSKOG

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by Onweerwolf » Sun Aug 24, 2014 5:35 pm

Of course, here is one with two tracks. The first works, the second doesn't.

Settings:

Image

On MM Portable install. 4.1.1.1703

Code: Select all

0:32:35 Processing 2 tracks...
0:32:35 Processing track 1 of 2...
0:32:36 Query for 'FOREIGNER' data...
0:32:36 @http://ws.audioscrobbler.com/2.0/?method=artist.getTopTracks&limit=100&api_key=6cfe51c9bf7e77d6449e63ac0db2ac24&artist=FOREIGNER
0:32:38 23132. I WANT TO KNOW WHAT LOVE IS
0:32:38 15897. COLD AS ICE
0:32:38 14185. I WANT TO KNOW WHAT LOVE IS 2008 REMASTERED LP VERSION
0:32:38 13677. WAITING FOR A GIRL LIKE YOU
0:32:38 9858. URGENT
0:32:38 9751. JUKE BOX HERO
0:32:38 9454. HOT BLOODED
0:32:38 8073. COLD AS ICE 2008 REMASTERED LP VERSION
0:32:38 7813. FEELS LIKE THE FIRST TIME
0:32:38 5649. DOUBLE VISION
0:32:38 5424. WAITING FOR A GIRL LIKE YOU 2008 REMASTERED LP VERSION
0:32:38 4688. JUKE BOX HERO 2008 REMASTERED LP VERSION
0:32:38 3861. HOT BLOODED 2008 REMASTERED LP VERSION
0:32:38 3757. SAY YOU WILL
0:32:38 3737. THAT WAS YESTERDAY
0:32:38 3728. DIRTY WHITE BOY
0:32:38 3538. HEAD GAMES
0:32:38 3492. LONG LONG WAY FROM HOME
0:32:38 2773. I WANT TO KNOW WHAT LOVE IS REMASTERED
0:32:38 2494. BLUE MORNING BLUE DAY
0:32:38 2149. I DONT WANT TO LIVE WITHOUT YOU
0:32:38 2144. FEELS LIKE THE FIRST TIME 2008 REMASTERED LP VERSION
0:32:38 1964. STARRIDER
0:32:38 1661. BREAK IT UP
0:32:38 1375. LONG LONG WAY FROM HOME 2008 REMASTERED ALBUM VERSION
0:32:38 1346. NIGHT LIFE
0:32:38 1278. GIRL ON THE MOON
0:32:38 1224. WOMEN
0:32:38 1151. HEADKNOCKER
0:32:38 1126. DOUBLE VISION 2008 REMASTERED LP VERSION
0:32:38 1070. FOOL FOR YOU ANYWAY
0:32:38 1003. DOWN ON LOVE
0:32:38 981. LUANNE
0:32:38 975. HEART TURNS TO STONE
0:32:38 959. WOMAN IN BLACK
0:32:38 930. WHEN IT COMES TO LOVE
0:32:38 883. BLINDED BY SCIENCE
0:32:38 882. REACTION TO ACTION
0:32:38 863. I WANNA KNOW WHAT LOVE IS
0:32:38 848. REV ON THE RED LINE
0:32:38 847. TOOTH AND NAIL
0:32:38 844. IN PIECES
0:32:38 834. DIRTY WHITE BOY 2008 REMASTERED LP VERSION
0:32:38 812. JUKEBOX HERO
0:32:38 809. AT WAR WITH THE WORLD
0:32:38 780. IM GONNA WIN
0:32:38 762. DONT LET GO
0:32:38 698. I HAVE WAITED SO LONG
0:32:38 681. SAY YOU WILL 2008 REMASTERED LP VERSION
0:32:38 632. YOURE ALL I AM
0:32:38 620. TOO LATE
0:32:38 608. WOMAN OH WOMAN
0:32:38 608. I WANT TO KNOW WHAT LOVE IS RERECORDED 2011
0:32:38 594. BACK WHERE YOU BELONG
0:32:38 564. I NEED YOU
0:32:38 559. CANT SLOW DOWN
0:32:38 543. CANT WAIT
0:32:38 536. LOVE ON THE TELEPHONE
0:32:38 528. SOUL DOCTOR
0:32:38 527. SAVE ME
0:32:38 527. URGENT 2008 REMASTERED LP VERSION
0:32:38 515. UNTIL THE END OF TIME
0:32:38 512. A LOVE IN VAIN
0:32:38 510. THE DAMAGE IS DONE
0:32:38 506. LONELY CHILDREN
0:32:38 503. I CANT GIVE UP
0:32:38 501. SPELLBINDER
0:32:38 497. STRANGER IN MY OWN HOUSE
0:32:38 480. THAT WAS YESTERDAY 2008 REMASTERED LP VERSION
0:32:38 463. TWO DIFFERENT WORLDS
0:32:38 452. GROWING UP THE HARD WAY
0:32:38 449. AS LONG AS I LIVE
0:32:38 448. LOWDOWN AND DIRTY
0:32:38 429. BLUE MORNING BLUE DAY 2008 REMASTERED LP VERSION
0:32:38 428. ILL GET EVEN WITH YOU
0:32:38 424. THE MODERN DAY
0:32:38 423. ILL FIGHT FOR YOU
0:32:38 423. SEVENTEEN
0:32:38 422. SHES TOO TOUGH
0:32:38 415. ILL BE HOME TONIGHT
0:32:38 414. HEAD GAMES 2008 REMASTERED LP VERSION
0:32:38 401. LOVE HAS TAKEN ITS TOLL
0:32:38 383. DO WHAT YOU LIKE
0:32:38 372. WHITE LIE
0:32:38 370. I DONT WANT TO LIVE WITHOUT YOU 2008 REMASTERED LP VERSION
0:32:38 366. WAITING FOR A GIRL LIKE YOU RERECORDED 2011
0:32:38 350. OUT OF THE BLUE
0:32:38 345. WAITING FOR A GIRL LIKE YOU SINGLE VERSION
0:32:38 342. STARRIDER 2008 REMASTERED LP VERSION
0:32:38 340. WITH HEAVEN ON OUR SIDE
0:32:38 327. HEADKNOCKER 2008 REMASTERED ALBUM VERSION
0:32:38 324. PRISONER OF LOVE
0:32:38 323. URGENT RERECORDED 2011
0:32:38 318. INSIDE INFORMATION
0:32:38 314. FACE TO FACE
0:32:38 304. LONG LONG WAY FROM HOME SINGLE
0:32:38 303. TRAMONTANE
0:32:38 301. URGENT SINGLE VERSION
0:32:38 283. COUNTING EVERY MINUTE
0:32:38 277. IVE BEEN WAITING FOR A GIRL LIKE YOU
0:32:38 Processing track 2 of 2...
0:32:38 Query for 'AGNETHA FÄLTSKOG' data...
0:32:38 @http://ws.audioscrobbler.com/2.0/?method=artist.getTopTracks&limit=100&api_key=6cfe51c9bf7e77d6449e63ac0db2ac24&artist=AGNETHA+F%C3%84LTSKOG

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by trixmoto » Sun Aug 24, 2014 3:42 pm

This script uses the LastFm url encoding that I use in all my scripts, which should work with these characters. Can you please create a debug log for me?

Re: Artist Top Tracks 1.5 - Updated 18/08/2012

by Onweerwolf » Fri Aug 22, 2014 3:34 pm

Hi Trix,

Interesting script again. I just came across this and like it a lot.

I have a question though, I tested a random subset of 100 songs to get the total # of listeners on last.fm. It works on most tracks except for the few tracks that have weird characters. In my example for instance Agnetha Fältskog. I am assuming it is because of the ä. Another example included a title with an é in it.

Is this assumption correct? Is it possible to fix this so those weird characters can be included in the search?

Thanx!

Top