Audioscrobbler (last.fm) support for MediaPortal! (1 Viewer)

How do you rate this feature?

  • Sorry, I cannot use internet stuff on my HTPC

    Votes: 0 0.0%
  • Sorry, I need to read more about my privacy first

    Votes: 0 0.0%

  • Total voters
    427

rtv

Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    You should have noticed that there are some more devs working on MyMusic ;-)
    And yes there are of course considerations about DB improvements. Unfortunately (for you) most of us are rock addicted and not that familar with DJs, remixes, club editions, etc :p
     

    zombiepig

    Portal Pro
    March 21, 2005
    408
    0
    Melb, Aus
    Home Country
    hey rtv - i'm becoming more & more addicted to the audioscrobbler features in the latest svn's!! :p
    i've just got three more small suggestions:
    - the "other tracks tagged with..." seems to only reload when you open the now playing screen. i think it should reload with each new track that starts. ie, i'm playing an album, and on each new track change i think that similar tracks should be recalculated. it'd make the screen look more dynamic and help give me more ideas of what to play next!
    - in now playing, and last.fm radio plugin, i'm not a big fan of how images stretch to fit the square box. stretching like this always reminds me of badly mad web pages :D would it be possible to change it so that the image zooms to fill the box without changing it's aspect ratio?
    - sometimes the now playing box switches between album art and visualization, and sometimes it switches between an artist picture and viz. i can't seem to find the logic behind it - with the same track it will sometimes show album art, othertimes artist thumbnail. is it possible to make it so it flicks between them for any song that has both album art and artist thumbnail present? ie. viz->cover art->viz->artist picture->viz (then repeat)...
     

    reagan+carter

    Portal Pro
    September 6, 2006
    221
    2
    Nantes, FR
    hello rtv,

    I've got a question for you. It's not the first time that it happens and I don't understand the cause.
    When I play tracks from a playlist, only a few of them are submitted to last.fm. From the log file it appears that the bogus tracks are 'forwarded'. Don't know what this means.
    It is worth to say that, first, I don't skip/pause&resume/etc them at all (I let all of them play from start to end) and, second, if I replay a playlist a second time, the problem may not appear with the very same tracks. I've included a part of the log file if you want and have a look.
    Using a SVN from yesterday, the 0.2.0.4 version seems to be free from this strange behaviour. It may be a coincidence but the problem seems to only happen with tracks on Audio CDs.
     

    CHli

    Portal Pro
    July 5, 2005
    1,251
    14
    Switzerland
    Home Country
    Switzerland Switzerland
    Hi, rtv

    I'm back from vacation and I'll continue my work on the last.fm mp3 stream packet listener this week.

    On another topic I have a small problem with the new "stars" ranking you get from last.fm :

    Two weird albums :

    screenshot1.png

    screenshot2.png


    The log is here :

    http://pastebin.team-mediaportal.com/10887 (only the two albums above didn't work)

    thanks !
     

    idioteque

    Retired Team Member
  • Premium Supporter
  • September 29, 2005
    609
    9
    Home Country
    Netherlands Netherlands
    Hi RTV,

    I found a litte bug in the audioscrobbble plugin.

    When adding a track twice say nr 3 and nr 15, in the playlist view, when playing nr3 nr 15 is also highlighted, like its playing two tracks at 'the same a time.

    Removing nr15 resultes in the removal of both nr3 and nr15 (because there are the same file...... ) and the music stops.

    SO BUGS ARE:

    Two identical tracks in the playlist a both highlighted multiple times

    Deleting the multiple highlighted none playing file, causes the playing file to be removed as well

    is it clear what the problem is :)
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Sorry, only little time - not much I can do for now :-/
    ok I saw about the missing data but why do you display the stars ? :)
    fixed in svn ;)

    Hi RTV,

    I found a litte bug in the audioscrobbble plugin.
    Two identical tracks in the playlist a both highlighted multiple times
    Sorry - not even related to scrobble in general.. There's a "following cursor for playlist-lazy people" bug which most likely occurs while deleting/modifying playlists in "lazy-mode" (Simply 'selecting' a non-playlist-track to start playback)
    I'd have to talk to Bavarian and see if he can fix this.

    When I play tracks from a playlist, only a few of them are submitted to last.fm. From the log file it appears that the bogus tracks are 'forwarded'. Don't know what this means.
    Code:
    if (alertTime < INFINITE_TIME && position > (lastPosition + skipThreshold + _timerTickSecs))
    Does your system "hang" for more than 15+6 seconds?

    - the "other tracks tagged with..." seems to only reload when you open the now playing screen. i think it should reload with each new track that starts. ie, i'm playing an album, and on each new track change i think that similar tracks should be recalculated. it'd make the screen look more dynamic and help give me more ideas of what to play next!
    This would get boring very soon as most like only the "top songs" have specific tags and there is some "blacklisting" of useless tags like "seen live", "rock", "favorites", etc. You can always re-enter the screen for the affect ;)

    i'm not a big fan of how images stretch to fit the square box. stretching like this always reminds me of badly mad web pages :D would it be possible to change it so that the image zooms to fill the box without changing it's aspect ratio?
    Since there are some more reasons why the defaults work as they are chosen I have added this to the MyMusicPlayingNow.xml:
    Code:
             <keepaspectratio>no</keepaspectratio>
             <centered>yes</centered>
             <zoom>yes</zoom>
    You can easily change it now and see if you can live with the disadvantages.

    - sometimes the now playing box switches between album art and visualization, and sometimes it switches between an artist picture and viz. i can't seem to find the logic behind it
    For quite some days now it simply switches every 15 seconds between every image available.
     

    reagan+carter

    Portal Pro
    September 6, 2006
    221
    2
    Nantes, FR
    When I play tracks from a playlist, only a few of them are submitted to last.fm. From the log file it appears that the bogus tracks are 'forwarded'. Don't know what this means.
    Code:
    if (alertTime < INFINITE_TIME && position > (lastPosition + skipThreshold + _timerTickSecs))
    Does your system "hang" for more than 15+6 seconds?

    hi and thanks for your answer,
    what do you mean by 'hang'? The track plays smoothly & flawlessly, no latency, no breaks.
    Do you need any additional piece of information from my system? I'll try to deactivate SlySoft AnyDVD (I bought it for the sole purpose of playing DVD/CDs w\ MP; I do really hope it has nothing to do with that) and see if I get less 'forwarded' tracks.

    EDIT:
    nope, no improvement w\out AnyDVD
     

    zombiepig

    Portal Pro
    March 21, 2005
    408
    0
    Melb, Aus
    Home Country
    - sometimes the now playing box switches between album art and visualization, and sometimes it switches between an artist picture and viz. i can't seem to find the logic behind it
    For quite some days now it simply switches every 15 seconds between every image available.


    ok - i just installed the latest svn and for the first song played by an artist, everything works perfectly and looks fantastic (awesome work :D)! but, when i have two or more songs play in a row by the same artist (doesn't matter if they are different albums), for every song after the first i only see the coverart, no artist picture.
    here's a section from the log of me playing an album, for first song i get coverart+artist pic, for the 2nd track i only get coverart.


    Code:
    2006-10-17 09:21:14.266896 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\01 Smile.mp3
    2006-10-17 09:21:14.266896 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\02 Knock 'Em Out.mp3
    2006-10-17 09:21:14.266896 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\03 LDN.mp3
    2006-10-17 09:21:14.266896 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\04 Everything's Just Wonderful.mp3
    2006-10-17 09:21:14.266896 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\05 Not Big.mp3
    2006-10-17 09:21:14.266896 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\06 Friday Night.mp3
    2006-10-17 09:21:14.266896 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\07 Shame For You.mp3
    2006-10-17 09:21:14.266896 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\08 Littlest Things.mp3
    2006-10-17 09:21:14.276910 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\09 Take What You Take.mp3
    2006-10-17 09:21:14.276910 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\10 Friend Of Mine.mp3
    2006-10-17 09:21:14.276910 [Info.][MPMain]: Playlist: add C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\11 Alfie.mp3
    2006-10-17 09:21:14.276910 [Info.][MPMain]: PlaylistPlayer: Play - C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\01 Smile.mp3
    2006-10-17 09:21:14.316968 [Info.][MPMain]: add cmd:MediaPortal.TV.Recording.StopRadioCommand #1
    2006-10-17 09:21:14.316968 [Info.][6]: Command:Stop radio
    2006-10-17 09:21:14.326982 [Info.][MPMain]: g_Player.Play(C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\01 Smile.mp3)
    2006-10-17 09:21:14.347011 [Info.][6]: Command:MediaPortal.TV.Recording.StopRadioCommand failed reason:No tuner cards installed time:10.0144 msec
    2006-10-17 09:21:14.347011 [Info.][MPMain]: Loading external players plugins
    2006-10-17 09:21:14.527270 [Info.][MPMain]:   found plugin:MediaPortal.FoobarPlugin.FoobarPlugin in C:\Program Files\Team MediaPortal\MediaPortal\plugins\ExternalPlayers\ExternalPlayers.dll
    2006-10-17 09:21:14.527270 [Info.][MPMain]:   player:Foobar2000.  author: int_20h/rtv
    2006-10-17 09:21:14.537284 [Info.][MPMain]:   found plugin:MediaPortal.ITunesPlayer.ITunesPlugin in C:\Program Files\Team MediaPortal\MediaPortal\plugins\ExternalPlayers\ExternalPlayers.dll
    2006-10-17 09:21:14.537284 [Info.][MPMain]:   player:iTunes.  author: Frodo
    2006-10-17 09:21:14.537284 [Info.][MPMain]:   found plugin:MediaPortal.WinampPlayer.WinampPlugin in C:\Program Files\Team MediaPortal\MediaPortal\plugins\ExternalPlayers\ExternalPlayers.dll
    2006-10-17 09:21:14.537284 [Info.][MPMain]:   player:Winamp.  author: int_20h
    2006-10-17 09:21:14.567328 [Info.][MPMain]:   found plugin:MediaPortal.MyFLVPlayer.FlvPlayerPlugin in C:\Program Files\Team MediaPortal\MediaPortal\plugins\ExternalPlayers\FLVPlayer.dll
    2006-10-17 09:21:14.567328 [Info.][MPMain]:   player:FlvPlayer.  author: Gregmac45
    2006-10-17 09:21:14.757601 [Info.][MPMain]: BASS: playback started
    2006-10-17 09:21:14.777630 [Info.][MPMain]: g_Player.OnStarted() C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\01 Smile.mp3 media:Music
    2006-10-17 09:21:14.807673 [Debug][MPMain]: GUIMusicPlayingNow: g_Player_PlayBackStarted for C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\01 Smile.mp3
    2006-10-17 09:21:14.807673 [Debug][MPMain]: GUITVCropManager.g_Player_PlackBackStarted: media: Music tv:False ts:False
    2006-10-17 09:21:14.827702 [Info.][MPMain]: window:MediaPortal.GUI.Music.GUIMusicGenres deinit
    2006-10-17 09:21:14.847731 [Info.][MPMain]: texturemanager:CleanupThumbs()
    2006-10-17 09:21:14.877774 [Info.][MPMain]: window:MediaPortal.GUI.Music.GUIMusicPlayingNow init
    2006-10-17 09:21:14.887788 [Debug][MPMain]: GUIMusicPlayingNow: g_Player_PlayBackStarted for C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\01 Smile.mp3
    2006-10-17 09:21:15.228278 [Debug][MPMain]: GUIMusicPlayingNow: adding image to visualization - C:\Program Files\Team MediaPortal\MediaPortal\thumbs\music\albums\Lily Allen-Alright Still.jpg
    2006-10-17 09:21:15.228278 [Debug][MPMain]: GUIMusicPlayingNow: adding image to visualization - C:\Program Files\Team MediaPortal\MediaPortal\skin\WideGreen\media\missing_coverart.png
    2006-10-17 09:21:15.238292 [Debug][10]: AudioScrobblerUtils.AddRequest:GetArtistInfo, requestID:1
    2006-10-17 09:21:15.248307 [Debug][AudioScrobblerUtils thread]: AudioScrobblerUtils: thread started
    2006-10-17 09:21:15.248307 [Info.][MPMain]: GUIMusicGenres: Doing Play now jump to: NowPlayingMultipleItems (True)
    2006-10-17 09:21:15.268336 [Debug][10]: AudioScrobblerUtils.AddRequest:GetAlbumInfo, requestID:2
    2006-10-17 09:21:15.268336 [Debug][10]: AudioscrobblerUtils: thread status:Background, pending requests:0
    2006-10-17 09:21:15.318408 [Debug][10]: AudioScrobblerUtils.AddRequest:GetAlbumInfo, requestID:3
    2006-10-17 09:21:15.318408 [Debug][10]: AudioscrobblerUtils: thread status:Background, pending requests:1
    2006-10-17 09:21:20.776256 [Debug][AudioScrobblerUtils thread]: MyMusic: Trying to get thumb: http://static.last.fm/proposedimages/sidebar/6/14000322/249680.jpg
    2006-10-17 09:21:21.937926 [Debug][AudioScrobblerUtils thread]: MyMusic: better thumb Lily Allen.jpg already exists - do not save
    2006-10-17 09:21:21.937926 [Debug][AudioScrobblerUtils thread]: GUIMusicPlayingNow: adding image to visualization - C:\Program Files\Team MediaPortal\MediaPortal\thumbs\music\artists\Lily Allen.jpg
    2006-10-17 09:21:21.977984 [Debug][AudioScrobblerUtils thread]: GUIMusicPlayingNow: adding image to visualization - C:\Program Files\Team MediaPortal\MediaPortal\skin\WideGreen\media\missing_coverart.png
    2006-10-17 09:21:22.719049 [Debug][AudioScrobblerUtils thread]: MyMusic: Trying to get thumb: http://images.amazon.com/images/P/B000FMGWRS.01._SCMZZZZZZZ_.jpg
    2006-10-17 09:21:23.059539 [Debug][AudioScrobblerUtils thread]: MyMusic: better thumb Lily Allen-Alright Still.jpg already exists - do not save
    2006-10-17 09:21:24.792030 [Debug][MPMain]: MusicDatabase: increased playcount for song C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\01 Smile.mp3 to 1
    2006-10-17 09:21:25.793470 [Debug][AudioScrobblerUtils thread]: AudioScrobblerUtils: No album info for Lily Allen - Alright Still found after 4 tries
    2006-10-17 09:21:27.005212 [Debug][AudioScrobblerUtils thread]: AudioScrobblerUtils: Tag picking successful - selecting pop
    2006-10-17 09:21:29.488784 [Debug][AudioScrobblerUtils thread]: Audioscrobber: Track filter for Crazy found db song - C:\Documents and Settings\Nyall\My Documents\My Music\Pigeon John\Is Dating Your Sister\08 Crazy.mp3
    2006-10-17 09:21:29.518827 [Debug][AudioScrobblerUtils thread]: Audioscrobber: Track filter for Such Great Heights found db song - C:\Documents and Settings\Nyall\My Documents\My Music\The Postal Service\Give Up\02 Such Great Heights.flac
    2006-10-17 09:21:29.618971 [Debug][AudioScrobblerUtils thread]: Audioscrobber: Track filter for Don't Speak found db song - C:\Documents and Settings\Nyall\My Documents\My Music\No Doubt\Tragic Kingdom\10 Don't Speak.mp3
    2006-10-17 09:22:11.038529 [Info.][MPMain]: Main: WM_POWERBROADCAST: 10
    2006-10-17 09:22:25.319064 [Info.][MPMain]: PlaylistPlayer: Play - C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\02 Knock 'Em Out.mp3
    2006-10-17 09:22:25.319064 [Info.][MPMain]: add cmd:MediaPortal.TV.Recording.StopRadioCommand #1
    2006-10-17 09:22:25.319064 [Info.][MPMain]: g_Player.Play(C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\02 Knock 'Em Out.mp3)
    2006-10-17 09:22:25.319064 [Debug][MPMain]: BASS: FadeOutStop of stream -1342177279
    2006-10-17 09:22:25.319064 [Info.][6]: Command:Stop radio
    2006-10-17 09:22:25.329078 [Info.][6]: Command:MediaPortal.TV.Recording.StopRadioCommand failed reason:No tuner cards installed time:10.0144 msec
    2006-10-17 09:22:25.459265 [Info.][MPMain]: BASS: playback started
    2006-10-17 09:22:25.459265 [Info.][MPMain]: g_Player.OnStarted() C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\02 Knock 'Em Out.mp3 media:Music
    2006-10-17 09:22:25.459265 [Debug][MPMain]: GUIMusicPlayingNow: g_Player_PlayBackStarted for C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\02 Knock 'Em Out.mp3
    2006-10-17 09:22:25.459265 [Debug][10]: AudioScrobblerUtils.RemoveRequest:GetAlbumInfo, requestID:2
    2006-10-17 09:22:25.459265 [Debug][10]: AudioScrobblerUtils.RemoveRequest:GetArtistInfo, requestID:1
    2006-10-17 09:22:25.459265 [Debug][10]: AudioScrobblerUtils.RemoveRequest:GetAlbumInfo, requestID:3
    2006-10-17 09:22:25.479294 [Debug][MPMain]: GUIMusicPlayingNow: adding image to visualization - C:\Program Files\Team MediaPortal\MediaPortal\thumbs\music\albums\Lily Allen-Alright Still.jpg
    2006-10-17 09:22:25.479294 [Debug][MPMain]: GUIMusicPlayingNow: adding image to visualization - C:\Program Files\Team MediaPortal\MediaPortal\skin\WideGreen\media\missing_coverart.png
    2006-10-17 09:22:25.479294 [Debug][MPMain]: GUITVCropManager.g_Player_PlackBackStarted: media: Music tv:False ts:False
    2006-10-17 09:22:25.529366 [Debug][3]: BASS: PlaybackStreamFreedProc of stream -1342177279
    2006-10-17 09:22:35.513723 [Debug][MPMain]: MusicDatabase: increased playcount for song C:\Documents and Settings\Nyall\My Documents\My Music\Lily Allen\Alright Still\02 Knock 'Em Out.mp3 to 1
    2006-10-17 09:23:11.715779 [Info.][MPMain]: Main: WM_POWERBROADCAST: 10
    2006-10-17 09:23:56.830651 [Info.][10]: Audioscrobbler plugin: queuing song: Knock 'Em Out - Lily Allen (Alright Still)
    2006-10-17 09:24:02.228412 [Info.][14]: AudioscrobblerBase: Submitting data: u=zombiepig&a[0]=Lily+Allen&t[0]=Knock+'Em+Out&b[0]=Alright+Still&m[0]=&l[0]=174&i[0]=2006-10-16+23%3a22%3a25
    2006-10-17 09:24:03.750601 [Info.][14]: AudioscrobblerBase: Action successfully completed.
    2006-10-17 09:24:03.750601 [Debug][14]: AudioscrobblerBase: submitted songs successfully removed from queue. Idle...
     

    Users who are viewing this thread

    Top Bottom