Last.FM Rework and Auto DJ mode (2 Viewers)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Okay, I've installed your new version after I have the new MediaPortal Version 1.4 installed. Unfortunately, the AutoDJ fashion seems to have stopped working. He finds no similar title. But scrobbling works fine.
    With things like
    Code:
    Simian |  | Justice - We Are Your Friends
    What is the artist tag here? is this one value or tagged as multiple artists?
    Not quite sure how we should handle multi artist tracks anyway :unsure:

    But basically the tags on the tracks you played did not pick up any similar tracks in your database and it simply ran out of tracks
    Code:
    [2013-05-18 14:59:43,956] [Log	] [BASS SongEnd] [DEBUG] - BASS: Reached end of playlist.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Something seems indeed wrong:
    Code:
    [2013-05-18 18:26:56,683] [Log	] [MPMain   ] [INFO ] - g_Player.OnStarted() \\Server\flac\Birdy\Birdy - Special Edition (2011)\08. Shelter.flac media:Music
    [2013-05-18 18:26:56,917] [Log	] [AutoDJ   ] [DEBUG] - Auto DJ: No similar local tracks found for Birdy - Shelter - trying top artist tracks
    [2013-05-18 18:26:57,109] [Log	] [Last.FM Announcer] [INFO ] - Submitted last.fm now playing update for: Birdy - Shelter
    [2013-05-18 18:26:58,173] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Matched 8 local songs.  Attempting to add 5 tracks
    [2013-05-18 18:26:58,181] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Birdy - 1901
    [2013-05-18 18:26:58,181] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Birdy - Comforting Sounds
    [2013-05-18 18:26:58,181] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Birdy - Skinny Love
    [2013-05-18 18:26:58,182] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Birdy - The District Sleeps Alone Tonight
    [2013-05-18 18:26:58,182] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Birdy - White Winter Hymnal
    Seems to fail on similar local tracks.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Mike,

    I have put your latest branch in fork and it seems not working anymore too :

    Code:
    [2013-05-18 18:29:04,543] [Log	] [MusicInfoHandler: Artist] [DEBUG] - AllmusicScraper.  Searched-Artist: The All - American Rejects Found: 0 matches
    [2013-05-18 18:29:04,595] [Error  ] [AutoDJ  ] [ERROR] - Error in Last.fm AutoDJ - getting similar tracks
    [2013-05-18 18:29:04,597] [Log	] [AutoDJ  ] [ERROR] - Exception: MediaPortal.LastFM.LastFMException:
    	Track not found
     
      at MediaPortal.LastFM.LastFMLibrary.GetXml(String querystring, String httpMethod, Boolean useHttps)
      at MediaPortal.LastFM.LastFMLibrary.GetSimilarTracks(String track, String artist)
      at MediaPortal.ProcessPlugins.LastFMScrobbler.LastFMScrobbler.AutoDJ(String strArtist, String strTrack)  Message:
    	Track not found
      Site  : System.Xml.Linq.XDocument GetXml(System.String, System.String, Boolean)  Source : LastFMLibrary  Stack Trace:	at MediaPortal.LastFM.LastFMLibrary.GetXml(String querystring, String httpMethod, Boolean useHttps)
      at MediaPortal.LastFM.LastFMLibrary.GetSimilarTracks(String track, String artist)
      at MediaPortal.ProcessPlugins.LastFMScrobbler.LastFMScrobbler.AutoDJ(String strArtist, String strTrack)
    [2013-05-18 18:29:04,628] [Log	] [MPMain  ] [DEBUG] - D3D: Hiding mouse cursor

    I didn't debug it but just trying few minutes ago :)
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Code:
    Track not found
    That is working but last.fm has said that the track could not be found.
    I thought in very latest commit I handled this... You have pulled the very latest commits into your branch?
     
    Last edited:

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Something seems indeed wrong:
    Code:
    [2013-05-18 18:26:56,683] [Log	] [MPMain  ] [INFO ] - g_Player.OnStarted() \\Server\flac\Birdy\Birdy - Special Edition (2011)\08. Shelter.flac media:Music
    [2013-05-18 18:26:56,917] [Log	] [AutoDJ  ] [DEBUG] - Auto DJ: No similar local tracks found for Birdy - Shelter - trying top artist tracks
    [2013-05-18 18:26:57,109] [Log	] [Last.FM Announcer] [INFO ] - Submitted last.fm now playing update for: Birdy - Shelter
    [2013-05-18 18:26:58,173] [Log	] [AutoDJ  ] [INFO ] - Auto DJ: Matched 8 local songs.  Attempting to add 5 tracks
    [2013-05-18 18:26:58,181] [Log	] [AutoDJ  ] [INFO ] - Auto DJ: Added to playlist: Birdy - 1901
    [2013-05-18 18:26:58,181] [Log	] [AutoDJ  ] [INFO ] - Auto DJ: Added to playlist: Birdy - Comforting Sounds
    [2013-05-18 18:26:58,181] [Log	] [AutoDJ  ] [INFO ] - Auto DJ: Added to playlist: Birdy - Skinny Love
    [2013-05-18 18:26:58,182] [Log	] [AutoDJ  ] [INFO ] - Auto DJ: Added to playlist: Birdy - The District Sleeps Alone Tonight
    [2013-05-18 18:26:58,182] [Log	] [AutoDJ  ] [INFO ] - Auto DJ: Added to playlist: Birdy - White Winter Hymnal
    Seems to fail on similar local tracks.
    Looks OK here
    Code:
    Auto DJ: No similar local tracks found for Birdy - Shelter - trying top artist tracks
    If you check the results from
    http://ws.audioscrobbler.com/2.0/?m...lter&api_key=f8e41f5535a88b70d78d52157fddd6f9
    do you actually have any of these tracks scanned in your database?
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Mike,

    Going to try your new commit, i use SMP skin with 'ID 18' to shortcut to Radio (in Hidden menu) and i have a conflict with your SkinControl :)
    Is it possible to change to '19' in code ? (I suppose 'id18' has been defined for radio or maybe not after all)

    In mediaportal\WindowPlugins\GUIMusic\GUIMusicBaseWindow.cs :
    [SkinControl(18)] protected GUICheckButton btnAutoDJ; to [SkinControl(19)] protected GUICheckButton btnAutoDJ;

    What do you think ?

    Thanks :)
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Mike,

    Going to try your new commit, i use SMP skin with 'ID 18' to shortcut to Radio (in Hidden menu) and i have a conflict with your SkinControl :)
    Is it possible to change to '19' in code ? (I suppose 'id18' has been defined for radio or maybe not after all)

    In mediaportal\WindowPlugins\GUIMusic\GUIMusicBaseWindow.cs :
    [SkinControl(18)] protected GUICheckButton btnAutoDJ; to [SkinControl(19)] protected GUICheckButton btnAutoDJ;

    What do you think ?

    Thanks :)
    That ID must only be defined in SMP I guess as I picked one that was not used elsewhere.
    I will look at changing the new one may then conflict with another and so on.....
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    That ID must only be defined in SMP I guess as I picked one that was not used elsewhere.
    I will look at changing the new one may then conflict with another and so on.....

    Let me test to change SMP one to 19 :)
     

    Users who are viewing this thread

    Top Bottom