Page 2 of 2

Re: Last.fm Loved Tracks Playlist Creator

Posted: Wed Dec 09, 2009 3:29 pm
by Ashran

Code: Select all

9/12/2009 21:09:31: >> LoadXML: Begin with Ashran & 1
9/12/2009 21:09:31: >> URL: http://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=Ashran&api_key=daadfc9c6e9b2c549527ccef4af19adb&limit=50&page=1
9/12/2009 21:09:31:  Page: 5
9/12/2009 21:09:31: >> LoadXML: Begin with Ashran & 5
9/12/2009 21:09:31: >> URL: http://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=Ashran&api_key=daadfc9c6e9b2c549527ccef4af19adb&limit=50&page=5
9/12/2009 21:10:43: Planar Traveller (ambient remix) - Essence
9/12/2009 21:10:43: Was added
9/12/2009 21:10:46: Our Farewell - Within Temptation
9/12/2009 21:10:46: Was added
9/12/2009 21:10:46: Had duplicates
9/12/2009 21:10:48: Ghost Love Score - Nightwish
9/12/2009 21:10:48: Was added
9/12/2009 21:10:48: Had duplicates
9/12/2009 21:10:50: Look Away - Big Country
9/12/2009 21:10:50: Was added
9/12/2009 21:10:50: Had duplicates
9/12/2009 21:10:52: Fake A Smile - Liv Kristine
9/12/2009 21:10:52: Was added
9/12/2009 21:10:52: Had duplicates
9/12/2009 21:10:54: Rencontres - Grand Corps Malade
9/12/2009 21:10:54: Was added
9/12/2009 21:10:56: Jardin secret - Pierre Rapsat
9/12/2009 21:10:56: Was added
9/12/2009 21:10:56: Had duplicates
9/12/2009 21:10:58: Prouvez-le moi - Prohom
9/12/2009 21:10:58: Was added
9/12/2009 21:11:00: Dors Mon Fils - Les Fatals Picards
9/12/2009 21:11:00: Was added
9/12/2009 21:11:00: Had duplicates
9/12/2009 21:11:02: Drowning - All About Eve
9/12/2009 21:11:02: Was added
9/12/2009 21:11:04: Paul Young - Come Back And Stay - New Wave Hits of the 80's
9/12/2009 21:11:04: Was not found in database
9/12/2009 21:11:06: Michell - Kin
9/12/2009 21:11:06: Was not found in database
9/12/2009 21:11:09: Enclosed - Penumbra
9/12/2009 21:14:20: >> LoadXML: Begin with Ashran & 1
9/12/2009 21:14:20: >> URL: http://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=Ashran&api_key=daadfc9c6e9b2c549527ccef4af19adb&limit=50&page=1
9/12/2009 21:14:21:  Page: 5
9/12/2009 21:14:21: >> LoadXML: Begin with Ashran & 5
9/12/2009 21:14:21: >> URL: http://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=Ashran&api_key=daadfc9c6e9b2c549527ccef4af19adb&limit=50&page=5
9/12/2009 21:14:27: Planar Traveller (ambient remix) - Essence
9/12/2009 21:14:27: Was added
9/12/2009 21:14:30: Our Farewell - Within Temptation
9/12/2009 21:14:30: Was added
9/12/2009 21:14:30: Had duplicates
9/12/2009 21:14:52: Ghost Love Score - Nightwish
9/12/2009 21:27:02: >> LoadXML: Begin with Ashran & 1
9/12/2009 21:27:02: >> URL: http://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=Ashran&api_key=daadfc9c6e9b2c549527ccef4af19adb&limit=50&page=1
9/12/2009 21:27:02:  Page: 5
9/12/2009 21:27:02: >> LoadXML: Begin with Ashran & 5
9/12/2009 21:27:02: >> URL: http://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=Ashran&api_key=daadfc9c6e9b2c549527ccef4af19adb&limit=50&page=5
9/12/2009 21:27:05: Planar Traveller (ambient remix) - Essence
9/12/2009 21:27:05: Was added
9/12/2009 21:27:06: Our Farewell - Within Temptation
9/12/2009 21:27:06: Was added
9/12/2009 21:27:06: Had duplicates
9/12/2009 21:27:08: Ghost Love Score - Nightwish
9/12/2009 21:27:08: Was added
9/12/2009 21:27:08: Had duplicates
9/12/2009 21:27:10: Look Away - Big Country
9/12/2009 21:27:10: Was added
9/12/2009 21:27:10: Had duplicates
9/12/2009 21:27:12: Fake A Smile - Liv Kristine
9/12/2009 21:27:12: Was added
9/12/2009 21:27:12: Had duplicates
9/12/2009 21:27:14: Rencontres - Grand Corps Malade
9/12/2009 21:27:14: Was added
9/12/2009 21:27:16: Jardin secret - Pierre Rapsat
9/12/2009 21:27:16: Was added
9/12/2009 21:27:16: Had duplicates
9/12/2009 21:27:18: Prouvez-le moi - Prohom
9/12/2009 21:27:18: Was added
9/12/2009 21:27:20: Dors Mon Fils - Les Fatals Picards
9/12/2009 21:27:20: Was added
9/12/2009 21:27:20: Had duplicates
9/12/2009 21:27:22: Drowning - All About Eve
9/12/2009 21:27:22: Was added
9/12/2009 21:27:24: Paul Young - Come Back And Stay - New Wave Hits of the 80's
9/12/2009 21:27:24: Was not found in database
9/12/2009 21:27:26: Michell - Kin
9/12/2009 21:27:26: Was not found in database
9/12/2009 21:27:28: Enclosed - Penumbra
9/12/2009 21:27:28: Was added
9/12/2009 21:27:28:  Page: 4
9/12/2009 21:27:28: >> LoadXML: Begin with Ashran & 4
9/12/2009 21:27:28: >> URL: http://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=Ashran&api_key=daadfc9c6e9b2c549527ccef4af19adb&limit=50&page=4
9/12/2009 21:27:30: Le Retour De Pépette - Aldebert
9/12/2009 21:27:30: Was not found in database
9/12/2009 21:27:32: On m'a volé mon nin-nin ! - Aldebert
9/12/2009 21:27:32: Was not found in database
9/12/2009 21:27:34: Les mots mélangés - Aldebert
9/12/2009 21:27:34: Was not found in database
9/12/2009 21:27:36: Pour Louper L'Ecole - Aldebert
Here it is... and it won't move from there...

Re: Last.fm Loved Tracks Playlist Creator

Posted: Wed Dec 09, 2009 6:10 pm
by Psyker7
Ashran wrote:
Here it is... and it won't move from there...
Unfortunately this is not much use as it's stopping on a different track each time! The log shows you ran it about 4 times.
The problem is I ran it on my own database using your username and it worked fine. Didn't find any of the tracks :P but it worked OK.

I've made a small update anyway with some neater logging and a message box confirmation on completion if you want to try it - let me know how it goes.

http://psykar.com/scripts

' Changes 1.2:
' - Neater logging
' - Message box on completion

Re: Last.fm Loved Tracks Playlist Creator

Posted: Thu Dec 10, 2009 10:43 pm
by Peke
I get errors running this script last.fm username PekeMM

Re: Last.fm Loved Tracks Playlist Creator

Posted: Thu Dec 10, 2009 10:53 pm
by Psyker7
Peke wrote:I get errors running this script last.fm username PekeMM
Again I was able to run your username fine against my database. :-? What was the error message you received?
Otherwise I'm probably going to need to get hold of peoples database files to debug this further!

Re: Last.fm Loved Tracks Playlist Creator

Posted: Fri Dec 11, 2009 5:35 am
by nynaevelan
I tried to run it against Peke's name and I didn't get an error message, it just locked up.

Re: Last.fm Loved Tracks Playlist Creator

Posted: Sat Dec 12, 2009 8:33 pm
by Psyker7
Finally managed to reproduce this. Apparently the database query was locking the database occasionally, causing the playlist add function to fail. Makes no sense to me but a commit after the query appears to have resolved it.

' Changes 1.3:
' - Added commit after database query so playlist adding no longer fails occasionally

http://psykar.com/scripts/LastFmLovedPlaylist.mmip

Re: Last.fm Loved Tracks Playlist Creator

Posted: Sat Dec 12, 2009 10:13 pm
by Peke
Confirming that 1.3 is working.

Can I give Small suggestions:
1. Informational Dialog would be more User Friendly If It was SDBUIForm rather than MessageBox as It could be made Scrollable.
2. Progress Bar looks stalled on page xy of xy I would rather use page xy of xy (tracks xy of xy) and update it more often.

Anyway Great Script.

Re: Last.fm Loved Tracks Playlist Creator

Posted: Sun Jun 26, 2011 5:31 pm
by nynaevelan
Hi Psyker7:

I was wondering if you would consider the possibility to add the functionality for a user to select which track to use when the name of tracks have changed from what they were when they were first submitted to last.fm? I have several tracks which do not get updated because the names have changed in MM.

Nyn

Re: Last.fm Loved Tracks Playlist Creator

Posted: Wed Jun 29, 2011 9:00 pm
by Psyker7
I could possibly make it so it gives you a list of tracks it couldn't find matches for?

Re: Last.fm Loved Tracks Playlist Creator

Posted: Wed Jun 29, 2011 9:14 pm
by nynaevelan
Psyker7 wrote:I could possibly make it so it gives you a list of tracks it couldn't find matches for?
That would help but I was hoping for something that let's you pick which track to update. Also, does it look for type of file when updating because now with videos in my library some of my video files got updated instead of the music files.

Nyn

Re: Last.fm Loved Tracks Playlist Creator

Posted: Wed Jun 29, 2011 9:18 pm
by Psyker7
nynaevelan wrote:
Psyker7 wrote:I could possibly make it so it gives you a list of tracks it couldn't find matches for?
That would help but I was hoping for something that let's you pick which track to update. Also, does it look for type of file when updating because now with videos in my library some of my video files got updated instead of the music files.

Nyn
If it can't find a match in the library what is it supposed to do though? List your entire library and let you pick? Fuzzy matching is not particuarly easy in vbscript unfortunately.

As for videos, MM probably shouldn't be uploading those to last.fm anyway... and it sounds like you've 'loved' some videos you've uploaded then? I can get the script to check for type when adding to the playlist if it is helpful, so it will only add audio.

Re: Last.fm Loved Tracks Playlist Creator

Posted: Wed Jun 29, 2011 9:24 pm
by nynaevelan
I have not added any to last.fm at all, they are in my library but when I run the script it picks the videos as the loved track instead of the music file. As for the matching, I have some that have changed names for example on last.fm it is "Love me like you'll never see me again [remix] by alicia keys" but in mm it is "love me like you'll never see me again [remix] by alicia keys; ludacris. Most of the problem files are because MM is showing them as having multiple artists but last.fm does not but I have a few where the name has changed. I was hoping for something where it will pop up a list of the tracks which have most of the same title and it will let you pick which one. But if that is not possible, if there was a way to create a list that is saveable that would be helpful because I can take that and manually add the tracks to the playlist/

And now that I think about it, forget about the first part of my request I am mixing scripts, that part actually goes with the last.fm playcount script, sorry.

Nyn