Last.FM Node: dynamic node based on last.fm 2009.08.17 [MM3]

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

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: Last.FM Node: dynamic node based on last.fm 2009.08.17 [MM3]

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by Antono » Wed Dec 07, 2011 12:53 pm

thefaceman wrote:Has anyone tried this in MM4 yet? I want an 'iGenius' feature and this one looks like it is the best choice.


Yes, it works fine for audio. I haven't tested it with video files yet.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by thefaceman » Wed Dec 07, 2011 11:54 am

Has anyone tried this in MM4 yet? I want an 'iGenius' feature and this one looks like it is the best choice.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by odyss3y » Fri Nov 11, 2011 4:25 pm

booblers wrote:Are you still developing this script at all? I ask because I've made some changes that others might be interested in and that I'd like to see in any future release so I don't have to try to merge them again and again.

When I get a similar tracks response from Last.FM I check to see if I have the similar track. If not I perform a request to get the mbid of the release that the track appears on. From there I'd like to be able to input that to a URL somewhere to take further action (build a list of missing albums I might like - or do other, more robust things like calculate preference levels, etc - but sending it to a URL is enough to get it out of MediaMonkey).

I have all of this working just fine but if you want to include it in future releases it should probably get some config options that I haven't/don't know how to make in the UI.

If you don't plan on working on this at all then I'll just keep it the way that it is - if you do and want the changes let me know and I'll try to post them here.

Please do post that change. I was looking for something exactly like you describe.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by Teknojnky » Thu Oct 06, 2011 11:06 am

I would recommend you keep the 'limit available tracks' to 30 to 50 for best results.

In most cases, lastfm will return a list of about 250 tracks, the above option will limit the number of tracks *found in your library*. So if lastfm returns 250, your library has 100 of those 250, and you set that option to 5, you will only get the top 5 found in your library.

The lower the number, you will get less tracks for the script to randomly choose from. If you have already played those tracks/artists, it can cause it to not find tracks it should normally be able to.

I will look into the time out next time I get around to updating.

Thanks for the info and glad you got it working again.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by nightflight » Thu Oct 06, 2011 10:37 am

Thanks for your reply! Yes, bad song choice, but that was not the problem.
The problem was that I lost the settings, and no amount of installation could bring them back.
Apparently, one really needs a tick next to the "Time out" box and have its value set on something larger than zero. As it was, Last.Fm Node was not waiting long enough for last.fm to return (takes just over a second for me).

Another problem with the settings I noticed is that the box "limits the available tracks" should be equal or higher than the "number of tracks to enqueue". Logical once you understand what is happening, but would be easier if the tooltip contained that info.

Great log file though!

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by Teknojnky » Wed Oct 05, 2011 3:36 pm

it still works fine for me, but it looks like there is simply no similar tracks (yet) for that song

http://www.last.fm/music/Tanita+Tikaram ... n/+similar

It is either too new, or not popular enough, or last fm has not generated the similar tracks data yet.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by nightflight » Wed Oct 05, 2011 3:01 pm

Hi,

First of all, thanks for the great plugin. It has served me well for years. You probably know this already, but now it seems it's broken due to last.fm changing of the API.

This it the log:
Code: Select all
05/10/2011 18:46:55: GenerateRecentArtists: begin
05/10/2011 18:46:55:   TooSoonList :>
05/10/2011 18:46:55:   TooSoonList adding current track artist :> Tanita Tikaram
05/10/2011 18:46:55: GenerateRecentArtists: finished with 2
05/10/2011 18:46:55: GetSimilarTracks: begin
05/10/2011 18:46:55: >> fixurl() entered with: Tanita Tikaram
05/10/2011 18:46:55: << fixurl will return with: Tanita+Tikaram
05/10/2011 18:46:55: >> fixurl() entered with: Little Sister Leaving Town
05/10/2011 18:46:55: << fixurl will return with: Little+Sister+Leaving+Town
05/10/2011 18:46:55: >> LoadXML: Begin with Tanita+Tikaram/Little+Sister+Leaving+Town & SimilarTracks
05/10/2011 18:46:55:  xmlDoc.Load: Init Query Last.FM: http://ws.audioscrobbler.com/1.0/track/Tanita+Tikaram/Little+Sister+Leaving+Town/similar.xml
05/10/2011 18:46:55:  xmlDoc.Load: Waiting for Last.FM to return SimilarTracks of Tanita+Tikaram/Little+Sister+Leaving+Town
05/10/2011 18:46:55:  xmlDoc: returned from loop in: 0.1875
05/10/2011 18:46:55: Last.FM Query Failed @ 0ReadyState: 3 URL: http://ws.audioscrobbler.com/1.0/track/Tanita+Tikaram/Little+Sister+Leaving+Town/similar.xml
05/10/2011 18:46:55: << LoadXML: Finished in --> 0
05/10/2011 18:46:55:  GetSimilarTracks: finished with # of tracks :> 0
05/10/2011 18:46:55:  GetSimilarTracks Failed to return any results, DJSongList Empty try similar artists
05/10/2011 18:46:55:  Prune SimilarTracks did not return any valid tracks, trying Similar artists
05/10/2011 18:46:55: GetSimilarArtists: begin with :> Tanita Tikaram
05/10/2011 18:46:55: >> LoadXML: Begin with Tanita Tikaram & SimilarArtists
05/10/2011 18:46:55: >> fixurl() entered with: Tanita Tikaram
05/10/2011 18:46:55: << fixurl will return with: Tanita+Tikaram
05/10/2011 18:46:55:  xmlDoc.Load: Init Query Last.FM: http://ws.audioscrobbler.com/1.0/artist/Tanita+Tikaram/similar.xml
05/10/2011 18:46:55:  xmlDoc.Load: Waiting for Last.FM to return SimilarArtists of Tanita Tikaram
05/10/2011 18:46:55:  xmlDoc: returned from loop in: 0.0625
05/10/2011 18:46:55: Last.FM Query Failed @ 0ReadyState: 3 URL: http://ws.audioscrobbler.com/1.0/artist/Tanita+Tikaram/similar.xml
05/10/2011 18:46:55: << LoadXML: Finished in --> 0
05/10/2011 18:46:55:  SimilarArtist returned as Nothing
05/10/2011 18:46:55: GetSimilarArtists: finished with :> 0
05/10/2011 18:46:55:  Similar Artists appears empty, adding a random track and exiting
05/10/2011 18:46:55:  all else failed, adding random track
05/10/2011 18:46:56: << DJ event: finished


Basically, what seems to be happening is that Last.fm really doesn't return anything. If you go to their website, the official API address is now http://ws.audioscrobbler.com/2.0 (was 1.0) and the call structure seems to be different as well.

Any chance you could update the script?

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by booblers » Mon Aug 08, 2011 6:41 pm

deleting my posts since forum moderators see fit to delete honest posts. just helping to make their job easier. nothing to see here.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by Teknojnky » Wed Aug 03, 2011 4:30 pm

you can post them if you like, I don't have any immediate plans to update anything, but if I do I'll take a look at adding your changes.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by booblers » Wed Aug 03, 2011 7:02 am

deleting my posts since forum moderators see fit to delete honest posts. just helping to make their job easier. nothing to see here.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by jamburglar » Tue Jul 12, 2011 7:44 pm

Teknojnky wrote:open the lastfmnode.vbs file with note pad and comment out inside the sub updatecaption()


Code: Select all
Sub UpdateCaption()
'   If SDB.IniFile.BoolValue(Prefs,"Enabled") = True Then
'     SDB.Objects("LastFMNode").Caption = "Last.FM Node" &_
'       " (" & SDB.Player.CurrentSong.ArtistName &_
'       " - " & SDB.Player.CurrentSong.Title & ")"
'     SDB.MainTree.Refresh
'   End If
End Sub


Tremendous. Thanks so much. :)

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by Teknojnky » Tue Jul 12, 2011 5:09 pm

open the lastfmnode.vbs file with note pad and comment out inside the sub updatecaption()


Code: Select all
Sub UpdateCaption()
'   If SDB.IniFile.BoolValue(Prefs,"Enabled") = True Then
'     SDB.Objects("LastFMNode").Caption = "Last.FM Node" &_
'       " (" & SDB.Player.CurrentSong.ArtistName &_
'       " - " & SDB.Player.CurrentSong.Title & ")"
'     SDB.MainTree.Refresh
'   End If
End Sub

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by jamburglar » Tue Jul 12, 2011 4:48 pm

Small issue but I'm just wondering, is there any way for the node's text to just display "Last.FM Node" instead of "Last.FM Node (Artist - Track)". I'd like to get rid of the huge horizontal scrollbar in the Media Tree that this creates.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by tybeet » Sat Mar 19, 2011 6:04 pm

I tried the other alternatives (Last.fm DJ, Scrobbler DJ) but they don't seem to fetch anything. Glad to see this one actually does what it says on the tin! Nice work.

Re: Last.FM Node: dynamic node based on last.fm 2009.08.17 [

Post by Antono » Thu Feb 24, 2011 4:27 pm

Teknojnky wrote:
Antono wrote:I can't remove artists and tags from favorites.

I tried to edit LastFMNode.vbs.ini but it is empty and it's size is zero bytes. Deleting it doesn't help.

Strangely enough, if I start MM as administrator, the Last.FM Node favorites list is empty.


win7/vista? are you running MM 4 ?

sounds like the script is installed to your user profile instead of all users, you might try looking under your user profile folder (uncheck hide system/hidden files)


Windows Vista, MM 3.2.4.

You were right, that was exactly what had happened. The .ini was in my user profile folder. I edited it -> problem solved. Thanks!

Top

cron