Soft Playlists 2011-02-05-added Last.fm custom playlist functionality, creating a new one must be done on www.last.fm for now

IMPORTANT: For the playlist generation features to work, the foobar2000 Media Library must include at least one folder with music, the more the better!

Can create different Last.fm related playlists:->loved tracks of a single user, multiple users, friends or neighbours.->recent tracks of a single user, multiple users, friends or neighbours.->top tracks of a single user, multiple users, friends or neighbours over different periods.->top tracks of an artist.->top tracks of artists similar to an artist.->top tracks with certain tag.->tracks similar to a track.Can also...-love, unlove, ban and unban a track on your Last.fm account.-add a track to a custom playlist on your Last.fm account.-save and load XSPF playlists (make playlists without hard paths). This makes it possible to easily share playlists with other people. Also when you restructure your library (change location of your music files), these playlists will continue to work.

CODE

Changelog:

2011-02-05:-added Last.fm custom playlist functionality, creating a new one must be done on www.last.fm for now2011-02-04:-changed feed downloading to match Last.fm api changes-recent tracks playlist: duplicates are not removed anymore2011-02-03:-fixed fetching large track feeds for Top Tracks and Recent Tracks2010-10-21:-fixed sorting top tracks by playcount when including partial title matches2010-10-20.2:-fixed bug when tracks with only artist or title tag are present in library-more error handling and output2010-10-20:-fixed partial title matching-more error handling and output2010-10-16:-added unlove, ban and unban track function-more error handling and output-linked against SDK 2010-10-022010-08-28:-added option to also include partial title matches2010-08-16:-added option to prefer latest or oldest tracks-matching 100000 tracks in a library of 20000 tracks is now 9x faster, now takes 870ms on a core i72010-08-15:-added option to prefer highest bitrate, lowest bitrate, longest or shortest tracks2010-08-11.2:-fetching more than 1500 loved tracks should now work2010-08-11:-using foobar internal http interface which mean proxy should now work-fixed startup delay issue2010-08-06:-fixed some bugs2010-07-08:-Added: Last.fm Top Tracks, Loved Tracks and Recent Tracks for each single user of the custom Last.fm user list2010-07-06:-Now fully compatible with foobar2000 1.02009-12-30.2:-Added: Last.fm User, Friends and Neighbours Recent Tracks-Added: Last.fm Top Tracks, Loved Tracks and Recent Tracks of a custom Last.fm user list2009-12-30:-Added: Last.fm Top Tags Top Tracks-Added: Last.fm Custom Tags Top Tracks-Added: ability to prefix generated Last.fm playlists-Fixed: crash when loving a track without an internet connection2009-12-06:-Added: handling of <duration> and <trackNum> tags when saving and loading XSPF playlists-Changed: more error handling2009-12-05:-Changed: fixed various bugs2009-12-04:-Added: ability to output unmatched track info to console-Added: aborting code, possibly time consuming tasks can be aborted now-Changed: various strings cleanup2009-12-03:-Added: Last.fm Similar Artists Top Tracks-Added: Last.fm Similar Tracks-Changed: renamed and added config dialog parameters-Changed: simplified main menu commands layout2009-12-01.4:-Changed: undid a mistake in the last 2 versions, top tracks from artists with special chars should work again2009-12-01.3:-Changed: fixed utf8 related bug in saving and loading of XSPF playlists2009-12-01.2:-Changed: fixed various special character bugs2009-12-01:-Added: Last.fm Love Track-Added: saving and loading of XSPF playlists-Changed: fixed some bugs-Changed: optimized some code2009-11-26:-Added: Last.fm Friends Top Tracks over different periods-Added: Last.fm neighbours Top Tracks over different periods2009-11-22:-Added: Last.fm Friends Loved Tracks-Added: Last.fm Neighbours Loved Tracks-Added: Last.fm User Top Tracks over different periods2009-11-22:-Added: proper settings dialog2009-11-19:-Added: Last.fm Artist Top Tracks2009-11-14:-Changed: optimized the library querying code: 18 times faster for looking up 1000 tracks in a database of 18686 tracks

if you have selected multiple items the "artist top tracks" context menu command chooses the first artist of the selection. Would be nicer if the command is only shown if the selection contains the same artist and disappears if the selection contain more than one artist.