Generate playlist based on Last.fm 'similar tracks'

Ready-to-use scripts, modules and plugins for Silverjuke.
SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Generate playlist based on Last.fm 'similar tracks'

Postby SilverEagle » 19. Nov 09, 11:02

Hello everyone,

Thanks to I present one of my more useful (in my opinion ;-)) plugins.

LastFM_Similar_v10.JPG
LastFM_Similar_v10.JPG (32.67 KiB) Viewed 9451 times


Based on the track currently playing this queues more similar tracks, or tracks from similar artists. Note these tracks must already be present in your library, the plugin does not download music in any way (it can however display an overview from those similar tracks it did not find in your library).

The plugin can be started with rightclick->Tools->Last.fm Similar, and as usual it is easiest to connect a shortcut to this with rightclick->Settings->Advanced->Further options->Shortcut: Tools: Last.fm Similar.

By the way: this plugin can be used alongside the , but they are totally independant. And specifically to use this plugin you do not need a Last.fm useraccount.

UPDATES
1.01 - fixed bug in filtering multiple songs from same artist
1.02 - ...and another bug in the same filter...
1.03 - fixed artist recognition for artists starting with 'The ...' etc.
1.04 - added the possibility to log artists/tracks not found into LastFM_Similar_notfound.txt

Enjoy,
SilverEagle
Attachments
LastFM_Similar_v104.sj
Put this next to Silverjuke.exe
(16.51 KiB) Downloaded 716 times
Last edited by SilverEagle on 24. Dec 09, 09:54, edited 6 times in total.

cyrilius4
Posts: 96
Joined: 5. May 06, 13:29
Location: france
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Queue similar tracks according to Last.fm

Postby cyrilius4 » 19. Nov 09, 14:25

You really rock !!!
I'm really impressed how well it works.
So easy to make playlist on the go, you can also sign a shortcut for it...

Please leave your comment and see if we can improve it more ;-)

cyrilius4
Posts: 96
Joined: 5. May 06, 13:29
Location: france
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Queue similar tracks according to Last.fm

Postby cyrilius4 » 19. Nov 09, 14:38

the "allow multiple tracks from same artist" filter doesn't seem to work...

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Generate playlist based on Last.fm 'similar tracks'

Postby SilverEagle » 19. Nov 09, 15:23

cyrilius4 wrote:
> the "allow multiple tracks from same
> artist" filter doesn't seem to work...

You are right, fixed. See top post.
Last edited by SilverEagle on 19. Nov 09, 20:23, edited 1 time in total.

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Generate playlist based on Last.fm 'similar tracks'

Postby SilverEagle » 19. Nov 09, 15:43

And fixed again. I should not post fixes when I do not have the time to seriously test them... See version 1.02 at the top.

cyrilius4
Posts: 96
Joined: 5. May 06, 13:29
Location: france
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Generate playlist based on Last.fm 'similar tracks'

Postby cyrilius4 » 19. Nov 09, 21:58

Thank you very much silvereagle. But i think the filter still doesn't work...

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Generate playlist based on Last.fm 'similar tracks'

Postby SilverEagle » 19. Nov 09, 22:51

cyrilius4 wrote:
> Thank you very much silvereagle. But i think the
> filter still doesn't work...

That was nasty: I think you probably only had doubles for bands starting with common words like "The ..." and such? Took me over 20 attemps to finally see that happen :-)

Fixed in 1.03

Cheers,
SilverEagle

Martijn
Posts: 2
Joined: 20. Nov 09, 20:42
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Generate playlist based on Last.fm 'similar tracks'

Postby Martijn » 20. Nov 09, 20:48

Is there any way to copy the text displayed in the "last.fm results not found in library" to the clipboard? I'd like to save which artists I really have to check out (most hits)

Thanks,
Martijn

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Generate playlist based on Last.fm 'similar tracks'

Postby SilverEagle » 21. Nov 09, 11:16

Martijn wrote:
> Is there any way to copy the text displayed in the
> "last.fm results not found in library"
> to the clipboard? I'd like to save which artists
> I really have to check out (most hits)

Unfortunately not within the limits of SJ scripting, and turning this into a DLL for just this feature is a bit steep. But I could add the option to log all results to a textfile (cleaning the file for each new SJ session), would that do?

SilverEagle

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Generate playlist based on Last.fm 'similar tracks'

Postby Service-Team » 22. Nov 09, 14:43

Very nice and useful plugin - a big "thank you" also from

Your Silverjuke-Team


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Extensions”