Last.fm Playcount Import (2010-03-28) [MM3/4]
Re: Last.fm Playcount Import [MM3]
Having the same problem: "An invalid character was found in text content".
Guessing it has something to do with songs/albums/artists with special letters such as æ,ø and å.
Guessing it has something to do with songs/albums/artists with special letters such as æ,ø and å.
Re: Last.fm Playcount Import [MM3]
Thanks @Psyker7 for the very fast fix!
Works (almost) perfect now.
Except regarding the problem with special characters e.g. 'Я' in "KoЯn" (hangs there). Every other character in the tags of my collection seems to work. (in my case also special German and French characters ... @AndreVonDrei: even Icelandic (æ) )
Now I only had to fix some tags that have been autocorrected by last.fm, to get (almost) all my playcounts.
With this, AutoRateAccurate can finally do its job accurately.
Oh, and Artist names are still handled case-sensitive. But wasn't a problem to change the few names that didn't match.
It's a pity that apparently tracks under 30 seconds don't get scrobbled.
But that has nothing to do with this script.
Works (almost) perfect now.
Except regarding the problem with special characters e.g. 'Я' in "KoЯn" (hangs there). Every other character in the tags of my collection seems to work. (in my case also special German and French characters ... @AndreVonDrei: even Icelandic (æ) )
Now I only had to fix some tags that have been autocorrected by last.fm, to get (almost) all my playcounts.
With this, AutoRateAccurate can finally do its job accurately.
Oh, and Artist names are still handled case-sensitive. But wasn't a problem to change the few names that didn't match.
It's a pity that apparently tracks under 30 seconds don't get scrobbled.
But that has nothing to do with this script.
Re: Last.fm Playcount Import [MM3]
AFAIK queries on the database *are* case insensitive, I did as much testing on this as I could, and couldn't find any examples that would not work with artist case. If you have a specific example with your username let me know! (tag on track, and tag as in last.fm and your username)Oh, and Artist names are still handled case-sensitive. But wasn't a problem to change the few names that didn't match.
What song less than 30 seconds could you possibly care about that much?It's a pity that apparently tracks under 30 seconds don't get scrobbled.
But that has nothing to do with this script.
Taking a look at the character issue now.
Re: Last.fm Playcount Import [MM3]
Doesn't have any Я's in my library, so it's quite strange that it comes to a halt at week 51 (out of 118).
Are there any other special characters that might do the same thing?
Keep up the good work Psyker
Are there any other special characters that might do the same thing?
Keep up the good work Psyker
Re: Last.fm Playcount Import [MM3]
I've tracked down the issue - which is actually a last.fm xml export issue:
http://ws.audioscrobbler.com/2.0/?metho ... 1137326401
being an example.
In this case the offending character is apparently a smart quote, still working on how to extract the invalid characters from the string though - and I'm not sure what characters *are* invalid atm - got another thread going so hopefully someone more knowledgeable than me can help out
http://ws.audioscrobbler.com/2.0/?metho ... 1137326401
being an example.
In this case the offending character is apparently a smart quote, still working on how to extract the invalid characters from the string though - and I'm not sure what characters *are* invalid atm - got another thread going so hopefully someone more knowledgeable than me can help out
-
- Posts: 13
- Joined: Fri Oct 24, 2008 3:33 am
Re: Last.fm Playcount Import [MM3]
Hi, This is the script ive been waiting for ever since i discovered last.fm :] however I am having a problem, it gets to about chart 21 of 178 then i get an error saying "an invalid character was found in text content" Is this something wrong with the script, or one of my tags?
My last.fm username is polywaffle, let me know if theres a log file or more info i can give. thanks.
Edit: Whoops, shoulda read the other posts first
My last.fm username is polywaffle, let me know if theres a log file or more info i can give. thanks.
Edit: Whoops, shoulda read the other posts first
Re: Last.fm Playcount Import [MM3]
It's ugly and I hate it, but!
' Changes: 1.7
' - Fix: Invalid apostrophes stripped, sadly this will make things less accurate
' but will reduce error messages for the moment
I am not sure if this means that all tracks with apostrophes will no longer update or what, but it is a problem with last.fm's feeds which I cannot fix. For some reason they decided that the asci character # 25 is an apostrophe, when quite clearly it is NOTHING.
It *may* work to replace it with the *correct* character for a single quote, let me know if you want to try this (obviously none of my songs have this issue or I would have found it sooner!)
Worth noting, previous versions are avaliable at
http://psykar.com/scripts/
' Changes: 1.7
' - Fix: Invalid apostrophes stripped, sadly this will make things less accurate
' but will reduce error messages for the moment
I am not sure if this means that all tracks with apostrophes will no longer update or what, but it is a problem with last.fm's feeds which I cannot fix. For some reason they decided that the asci character # 25 is an apostrophe, when quite clearly it is NOTHING.
It *may* work to replace it with the *correct* character for a single quote, let me know if you want to try this (obviously none of my songs have this issue or I would have found it sooner!)
Worth noting, previous versions are avaliable at
http://psykar.com/scripts/
Re: Last.fm Playcount Import [MM3]
Hate to break it to you, but it still doesn't work.
Must be some characters that act the same way as the apostrophes.
My last.fm username is Andefrondrei, and the problem comes in week 51
Must be some characters that act the same way as the apostrophes.
My last.fm username is Andefrondrei, and the problem comes in week 51
-
- Posts: 13
- Joined: Fri Oct 24, 2008 3:33 am
Re: Last.fm Playcount Import [MM3]
Works awesome for me now, thanks! I have been waiting so long for a program/script to do this. Im suprised Last.Fm dont have a tool of their own to update local playcounts..
Re: Last.fm Playcount Import [MM3]
It gives me an Error #5: Microsoft VBscript Runtime Error now.
The problematic line seems to be Line 251, Column 6 @ LastFmImport.vbs according to the error.
The problematic line seems to be Line 251, Column 6 @ LastFmImport.vbs according to the error.
Re: Last.fm Playcount Import [MM3]
Username incorrect I'm afraid. I tried the same last.fm username as your MM username, but that only had 15 weeks of data, and worked fine.AndreVonDrei wrote:Hate to break it to you, but it still doesn't work.
Must be some characters that act the same way as the apostrophes.
My last.fm username is Andefrondrei, and the problem comes in week 51
Might want to try reinstalling and running again, I was able to do your own username fine.errOr wrote: It gives me an Error #5: Microsoft VBscript Runtime Error now.
The problematic line seems to be Line 251, Column 6 @ LastFmImport.vbs according to the error.
If it still errors, turn logging on in the script and send me the debug file (PM me if you need help)
-
- Posts: 15
- Joined: Fri Feb 27, 2009 10:57 am
Re: Last.fm Playcount Import [MM3]
Typo in username, never good.
http://www.last.fm/user/AndreFronDrei. See if you manage to extract past week 51
Have been waiting to for a script like this since I lost a database around a year ago.
http://www.last.fm/user/AndreFronDrei. See if you manage to extract past week 51
Have been waiting to for a script like this since I lost a database around a year ago.
Re: Last.fm Playcount Import [MM3]
Well the issue is at some point you scrobbled some rediculously tagged track called:AndréVonDrei wrote:Typo in username, never good.
http://www.last.fm/user/AndreFronDrei. See if you manage to extract past week 51
Have been waiting to for a script like this since I lost a database around a year ago.
Code: Select all
Night [Bonus Track];TP1;;;Kanye West;TAL;;;Graduation;TRK;;;14/15;TPA;;;1/1;TYE;;;2007;TCO;;
;Hip Hop/Rap;COM;;;engiTunPGAP;0;;TEN;;;iTunes v7.3.2;COM;;h;engiTunNORM; 000005C9 00000640 00004B85 00004E2F 00011CE5 00008E24 00007DE9 000082BE 0000C6FA 00005724;COM;;‚;engiTunSMPB; 00000000 00000210 00000A8C 00000000007D7E64 00000000 005D34FE 00000000 00000000 00000000 00000000 00000000 00000000;COM;;@;engiTunes_CDDB_IDs;15+1BFB8EF12FBB43C7C9AEE5319E437B8C+9833006;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Graduation
Update soon!
Re: Last.fm Playcount Import [MM3]
Hopefully all done!
Working with both SinDenial and AndreFronDrei and should also fix the issues people had with updating artists such as KoRn (with the backwards R) - the updating was going fine, but the logfile created was erroring out.
Let me know if there are more errors! (no doubt there will be )
' Changes: 1.8
' - Fix: Invalid ASCII characters stripped (hopefully - let me know if you find more!)
' Thanks to SinDenial and AndréVonDrei for testing!
' - More graceful error messages (for some, let me know if you get anything cryptic)
' - Check for invalid characters when writing update file - some seem to cause errors
' when the actual update went fine - needs improvment
'ToDo:
'* Smarter checking of files to update
'* Update LastPlayed time as well (if none exists)
'* Fix the update file writing to account for strange characters
http://psykar.com/scripts/LastFmImport.mmip
Working with both SinDenial and AndreFronDrei and should also fix the issues people had with updating artists such as KoRn (with the backwards R) - the updating was going fine, but the logfile created was erroring out.
Let me know if there are more errors! (no doubt there will be )
' Changes: 1.8
' - Fix: Invalid ASCII characters stripped (hopefully - let me know if you find more!)
' Thanks to SinDenial and AndréVonDrei for testing!
' - More graceful error messages (for some, let me know if you get anything cryptic)
' - Check for invalid characters when writing update file - some seem to cause errors
' when the actual update went fine - needs improvment
'ToDo:
'* Smarter checking of files to update
'* Update LastPlayed time as well (if none exists)
'* Fix the update file writing to account for strange characters
http://psykar.com/scripts/LastFmImport.mmip
Re: Last.fm Playcount Import [MM3]
Few clarifications:
1. 30 Seconds Submissions http://www.last.fm/api/submissions#subs last.fm ignores (even in some cases bans) any client ID that scrobbles tracks shorter than 30 seconds. That was noted when we applied for player/software Submission ID
2. Psyker7 Ask Trixmoto , Big_Berny, Bex or search their scripts to implement correct FormatURL Function top avoid future Unicode -> URL issues. Last.fm support URL format is like IE (at least that one work the best) using "%??" format for invalid chars.
1. 30 Seconds Submissions http://www.last.fm/api/submissions#subs last.fm ignores (even in some cases bans) any client ID that scrobbles tracks shorter than 30 seconds. That was noted when we applied for player/software Submission ID
2. Psyker7 Ask Trixmoto , Big_Berny, Bex or search their scripts to implement correct FormatURL Function top avoid future Unicode -> URL issues. Last.fm support URL format is like IE (at least that one work the best) using "%??" format for invalid chars.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts