Last.FM Rework and Auto DJ mode (1 Viewer)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Just gave it a try Mike, but it doesn't seem to work (or i'm doing something wrong).
    Multi-value fields :mad: The sooner Helmut sorts out the database structure the better :D

    make it
    Code:
    strGenre not like '%| Holiday |%'
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Roger that! Will give it a try.

    In the mean time, here is a log with Christmas songs :)
    What i noticed (but need to test if i can reproduce that) is that when i stopped playback (end of log) you see it adds another 5 songs to the playlist, which seems a weird action after g_Player stop.

    ** EDIT **
    That seems to do the trick! (y)
    Code:
    [2013-05-27 21:07:50,736] [Log	] [MPMain   ] [INFO ] - g_Player.OnStarted() \\Server\flac\Michael Bublé\Christmas (2011)\10. Michael Bublé - Silent Night.flac media:Music
    Code:
    [2013-05-27 21:07:57,836] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Matched 7 local songs.  Attempting to add 5 tracks
    [2013-05-27 21:07:57,915] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Emeli Sandé - Clown
    [2013-05-27 21:07:57,972] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Adele - Take It All
    [2013-05-27 21:07:58,032] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: John Mayer - Who Says
    [2013-05-27 21:07:58,092] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Bruno Mars - Young Girls
    [2013-05-27 21:07:58,152] [Log	] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Ed Sheeran - Small Bump
    :D :D :D :D :D
     
    Last edited:

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    But i did ran into an XML issue when you skip a couple of songs. Probabaly happens because MP keeps sending info while it wasn't processed before. As you can see in the log, the first error thrown is pretty harmless, but when i skipped a couple more tracks, it started to freak out. MediaPortal was still playing music, but i was missing some GUI elements and had the feeling it was about to freeze.
    This is something I reported in 1.4 test builds

    Code:
    13-05-27 20:31:07,610] [Error  ] [MPMain  ] [ERROR] - render exception:System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
      at MediaPortal.GUI.Library.DXNative.FontEngineDrawTexture(Int32 textureNo, Single x, Single y, Single nw, Single nh, Single uoff, Single voff, Single umax, Single vmax, UInt32 color, Single[,] matrix)
      at MediaPortal.GUI.Library.CachedTexture.Frame.Draw(Single x, Single y, Single nw, Single nh, Single uoff, Single voff, Single umax, Single vmax, UInt32 color)
      at MediaPortal.GUI.Library.GUIImage.Render(Single timePassed)
      at MediaPortal.GUI.Library.GUIAnimation.Render(Single timePassed)
      at MediaPortal.GUI.Library.GUIControl.DoRender(Single timePassed, UInt32 currentTime)
      at MediaPortal.GUI.Library.GUIWindow.Render(Single timePassed)

    This seemed to be to do with loading textures in quick succession and not specific to this rework.

    I will see if I can find those posts (might have been about the picture rework)

    Edit: could not find the post I thinking of but did come across https://forum.team-mediaportal.com/...eption-system-accessviolationexception.80678/
    I am wondering if we have made it more obvious by fixing some of the other issues?
     
    Last edited:

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Edit: could not find the post I thinking of but did come across https://forum.team-mediaportal.com/...eption-system-accessviolationexception.80678/
    I am wondering if we have made it more obvious by fixing some of the other issues?

    Very good question... All i remember is that @Scythe42 did some rework on the fontengine because of the texture issues we were getting from TV Series plugin, but it seems we didn't fix all of it :cautious:

    About the 5 songs that were added after the stop of playback, i haven't been able to reproduce that so let's forget about that for now. When i run into issue i'll let you konw, but so far it's looking really promising!

    TNX for the work! (y)
     
    Last edited:

    jameson_uk

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

    Sebastiii

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

    I get this king of error :

    Code:
    [2013-05-31 21:59:45,473] [Error  ] [AutoDJ  ] [ERROR] - Error in Last.fm AutoDJ - getting similar tracks
    [2013-05-31 21:59:45,482] [Log	] [AutoDJ  ] [ERROR] - Exception: System.FormatException: Input string was not in a correct format.
      at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
      at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
      at System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
      at MediaPortal.LastFM.LastFMSimilarTrack.<GetSimilarTracks>b__15(<>f__AnonymousType13`2 <>h__TransparentIdentifier8)
      at System.Linq.Enumerable.<>c__DisplayClass12`3.<CombineSelectors>b__11(TSource x)
      at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
      at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
      at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
      at MediaPortal.LastFM.LastFMSimilarTrack.GetSimilarTracks(XDocument xDoc)
      at MediaPortal.LastFM.LastFMLibrary.GetSimilarTracks(String track, String artist)
      at MediaPortal.ProcessPlugins.LastFMScrobbler.LastFMScrobbler.GetSimilarTracks(MusicTag tag)  Message: Input string was not in a correct format.  Site  : Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean)  Source : mscorlib  Stack Trace:	at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
      at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
      at System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
      at MediaPortal.LastFM.LastFMSimilarTrack.<GetSimilarTracks>b__15(<>f__AnonymousType13`2 <>h__TransparentIdentifier8)
      at System.Linq.Enumerable.<>c__DisplayClass12`3.<CombineSelectors>b__11(TSource x)
      at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
      at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
      at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
      at MediaPortal.LastFM.LastFMSimilarTrack.GetSimilarTracks(XDocument xDoc)
      at MediaPortal.LastFM.LastFMLibrary.GetSimilarTracks(String track, String artist)
      at MediaPortal.ProcessPlugins.LastFMScrobbler.LastFMScrobbler.GetSimilarTracks(MusicTag tag)

    Tested on StreamedMP will try to test on DW or titan :)
    edit : Titan does the same
     
    Last edited:

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    I get this king of error :
    You don't have the thing it was looking up do you? (Should probably have been previous lines in logs).

    This is because there is a number field that is being returned that is either not a number or null.
    Need to figure out which.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Mike, after a week i still haven't seen 'Holiday' genre (Christmas) in music, so filtering seems to work very well!
    And the matches are still great. (y)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    This is the log based on the commit from this morning :)
     

    Attachments

    • LastFM_Issue.txt
      37.7 KB

    Users who are viewing this thread

    Top Bottom