Audioscrobbler (last.fm) support for MediaPortal! (2 Viewers)

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
    But, are you aware that scrobbling locks up gui for as long as ten seconds?
    What? This should be fixed with Rev9787 - last.fm plugin: added threading, fixed razor skin
    You can look at the taskmanager to see the thread starting and terminating.

    Of course MP's playlist is veeery slow - you might realize a lag _after_ scrobbling when the playlist refreshes itself for the new songs.

    And that the screen does not refresh after scrobbeling.
    I got this, too - there is even a comment about this bug in the code but I didn't find an adhoc solution for it - but it is just a refresh problem - at least when the list reaches the "invisible" song it will refresh 100% and it will not interrupt playback :wink:
     

    Lyxalig

    MP Donator
  • Premium Supporter
  • January 30, 2005
    276
    1
    40
    Norway
    Home Country
    Norway Norway
    You are right of course rtv :roll: :oops:

    It's all better with newest svn. (well its working really good actually)

    All i miss now is an option to adjust the percentage from within MP, and that "My playlists" appears in all screens, not only in shares-view. Its a bit counter-intuitive that you can save a playlit in the "playlist"-screen, but you can't open any??

    Maybe the "My playlist"-button should be removed from shares-view, and added to playlist-view?
     

    Lyxalig

    MP Donator
  • Premium Supporter
  • January 30, 2005
    276
    1
    40
    Norway
    Home Country
    Norway Norway
    rtv said:
    Lyxalig said:
    BTW. Party-playlist feature should maybe be removed?
    Would be nice to hear a statement of its original author since the playlist code contains much "party mode" specific stuff..

    Hi, rtv I've had a a look in the sources
    Code:
            List<Song> songs = new List<Song>();
            dbs.GetAllSongs(ref songs);
    
            for (i = 0; i < songs.Count; i++)
            {
              song = songs[i];
              AddRandomSongToPlaylist(ref song);
            }
    Please correct me if I'm wrong, but AFAIK it looks like a random selection of songs to me. Maybe change the text to: "Random tracks" ?
     

    idioteque

    Retired Team Member
  • Premium Supporter
  • September 29, 2005
    609
    9
    Home Country
    Netherlands Netherlands
    since this morning audioscrobber no longer functions
    nothing on my side has changed

    8/8/2006 8:25:54 PM 437 [ERROR] OnMessage exception:confused:ystem.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.GUI.Music.GUIMusicPlayList.UpdateButtonStates()
    at MediaPortal.GUI.Music.GUIMusicBaseWindow.SwitchView()
    at MediaPortal.GUI.Music.GUIMusicBaseWindow.LoadSettings()
    at MediaPortal.GUI.Music.GUIMusicBaseWindow.OnPageLoad()
    at MediaPortal.GUI.Music.GUIMusicPlayList.OnPageLoad()
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    8/8/2006 8:26:09 PM 328 [ERROR] MediaPortal: Unhandled exception occured
    8/8/2006 8:26:09 PM 812 [ERROR] Exception :confused:ystem.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.GUI.Music.GUIMusicPlayList.UpdateButtonStates()
    at MediaPortal.GUI.Music.GUIMusicPlayList.LoadDirectory(String strNewDirectory)
    at MediaPortal.GUI.Music.GUIMusicPlayList.ScrobbleLookupThread()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    8/8/2006 8:26:09 PM 812 [ERROR] Exception :Object reference not set to an instance of an object.
    8/8/2006 8:26:09 PM 906 [ERROR] site :Void UpdateButtonStates()
    8/8/2006 8:26:09 PM 921 [ERROR] source :WindowPlugins
    8/8/2006 8:26:09 PM 921 [ERROR] stacktrace: at MediaPortal.GUI.Music.GUIMusicPlayList.UpdateButtonStates()
    at MediaPortal.GUI.Music.GUIMusicPlayList.LoadDirectory(String strNewDirectory)
    at MediaPortal.GUI.Music.GUIMusicPlayList.ScrobbleLookupThread()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()

    exception.log:
    ExceptionType: System.NullReferenceException
    Message: Object reference not set to an instance of an object.
    Source: WindowPlugins

    Stack trace:
    at MediaPortal.GUI.Music.GUIMusicPlayList.UpdateButtonStates()
    at MediaPortal.GUI.Music.GUIMusicPlayList.LoadDirectory(String strNewDirectory)
    at MediaPortal.GUI.Music.GUIMusicPlayList.ScrobbleLookupThread()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
     

    Lyxalig

    MP Donator
  • Premium Supporter
  • January 30, 2005
    276
    1
    40
    Norway
    Home Country
    Norway Norway
    Found the aformentioned bug!!

    Steps to duplicate:
    1. Start mediaportal
    2. Go to my music. Choose one song by pressing "y" or playbutton on mce-remote.
    == MP crashes after approx. 10 seconds...(The delay for scrobbling)

    How to avoid the bug:
    1. Start Mediaportal
    2. Go to my music. Choose one song by pressing "y" or playbutton on mce-remote.
    3. Click Your way to the playlist BEFORE 10 seconds has passed.
    == NO CRASH...???
     

    idioteque

    Retired Team Member
  • Premium Supporter
  • September 29, 2005
    609
    9
    Home Country
    Netherlands Netherlands
    How to avoid the bug:
    1. Start Mediaportal
    2. Go to my music. Choose one song by pressing "y" or playbutton on mce-remote.
    3. Click Your way to the playlist BEFORE 10 seconds has passed.
    == NO CRASH...???

    crashes @ my setup
     

    Lyxalig

    MP Donator
  • Premium Supporter
  • January 30, 2005
    276
    1
    40
    Norway
    Home Country
    Norway Norway
    When does it crash? I've tried it 20 times now, and it does not crash if i go to the playlist.. :?
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Good you mention it - I've set the option to automatically switch to playlist window...

    Will look at this now.

    AddRandomSongToPlaylist
    This is a "recycled" function of the party mode - it adds ONE song to the playlist while making sure there is no double entry.

    Maybe I'll refactor the music part a little after I added some more methods for track and tag decisions..
     

    Users who are viewing this thread

    Top Bottom