Latest Media Handler v2.4.X.000 (3 Viewers)

catavolt

Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,597
    10,585
    Königstein (Taunus)
    Home Country
    Germany Germany
    How about AutoDJ? :cool:
    Does not seem to work - there is always the latest playlist shown, and no tracks are added ;)
    During extensive testing I found another one:
    When I select "Last Added Music" via menu, then "Most played Music" is ticked and shown, when I select "Most Played Music", then "Last Added Music" is ticked and shown, so there is a small bug in that ;)
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    When I select "Last Added Music" via menu, then "Most played Music" is ticked and shown, when I select "Most Played Music", then "Last Added Music" is ticked and shown, so there is a small bug in that
    Arghhhhh :mad: ... Fixed ... :coffee:
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    Does not seem to work - there is always the latest playlist shown, and no tracks are added
    He adds, when the playlist reaches the end, you can try switching to a playlist on the penultimate song and watch (not to forget enable the auto DJ).
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    @catavolt @HomeY
    AutoDJ:
    Code:
    if (plRemainingTracks < 5)
          {
            // less than five more tracks in playlist so try and build up a reserve
            numTracksWanted = 5 - plRemainingTracks;
          }
    Should work, there are entries in the debug log file with the tag Auto DJ?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    # LatestMediaHandler 20151002-Fix
    * Context menu fix
    * AutoDJ work
    23-45-25.png
    + Add ability to view pictures from latests control
    + Add more items in context menu...

    Log for AutoDJ:
    Code:
    [2015-10-02 23:45:14,404] [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() M:\Music\MP3\Pink Floyd\1981 - A Collection Of Great Dance Songs\05 - Wish You Were Here.mp3 media:Music
    [2015-10-02 23:45:19,017] [Log    ] [RefreshWorker-LatestMediaHandler.LatestMusicHandler] [DEBUG] - MusicDatabase: GetSongsByFilter - SQL: select distinct strAlbumArtist, strAlbum, dateAdded, iTimesPlayed, strGenre, strPath from tracks order by dateAdded desc limit 1;, Filter: tracks
    [2015-10-02 23:45:24,127] [Log    ] [51       ] [DEBUG] - GUIMusicPlayingNow: Calling Last.FM to get similar Tracks
    [2015-10-02 23:45:24,233] [Log    ] [MPMain   ] [DEBUG] - internet connection detected. Can process last.fm announce or Auto DJ
    [2015-10-02 23:45:24,777] [Log    ] [Last.FM Announcer] [INFO ] - Submitted last.fm now playing update for: Pink Floyd - Wish You Were Here
    [2015-10-02 23:45:24,961] [Log    ] [51       ] [DEBUG] - GUIMusicPlayingNow: Number of similar tracks returned from Last.FM: 97
    [2015-10-02 23:45:25,503] [Log    ] [136      ] [DEBUG] - KeyboardInputPlugin: OnKeyDown: F11 (122), Handled: False
    [2015-10-02 23:45:25,511] [Log    ] [MPMain   ] [INFO ] - Main: Taking screenshot - Creating directory: C:\Users\Media\Pictures\MediaPortal Screenshots\2015-10-02
    [2015-10-02 23:45:25,512] [Log    ] [MPMain   ] [INFO ] - Main: Taking screenshot - Target: C:\Users\Media\Pictures\MediaPortal Screenshots\2015-10-02\23-45-25.png
    [2015-10-02 23:45:26,095] [Log    ] [51       ] [DEBUG] - GUIMusicPlayingNow: Tracks returned after matching Last.FM results with database tracks: 3
    [2015-10-02 23:45:26,108] [Log    ] [MPMain   ] [INFO ] - Main: Taking screenshot done
    [2015-10-02 23:45:26,587] [Log    ] [AutoDJ   ] [INFO ] - Auto DJ: Matched 49 local songs.  Attempting to add 1 tracks
    [2015-10-02 23:45:26,749] [Log    ] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Aerosmith - Walk This Way
     

    Attachments

    • LatestMediaHandler-20151002-Fix.dll.zip
      229.2 KB
    Last edited:

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Should work,
    Works fine!
    Code:
    [2015-10-03 12:09:53,284] [Log    ] [MPMain   ] [DEBUG] - internet connection detected. Can process last.fm announce or Auto DJ
    [2015-10-03 12:09:53,790] [Log    ] [AutoDJ   ] [DEBUG] - Applying filter: and strGenre not like '%| Holiday |%'
    [2015-10-03 12:09:53,792] [Log    ] [AutoDJ   ] [DEBUG] - Unable to match similar tracks for Alicia Keys - Girl on Fire (Inferno Version) (feat. Nicki Minaj) : trying similar tracks for top artist tracks
    [2015-10-03 12:09:55,288] [Log    ] [AutoDJ   ] [DEBUG] - Applying filter: and strGenre not like '%| Holiday |%'
    [2015-10-03 12:09:55,613] [Log    ] [AutoDJ   ] [INFO ] - Auto DJ: Matched 9 local songs.  Attempting to add 5 tracks
    [2015-10-03 12:09:55,613] [Log    ] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Beyoncé - Halo
    [2015-10-03 12:09:55,613] [Log    ] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Adele - Set Fire To The Rain
    [2015-10-03 12:09:55,614] [Log    ] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Sam Smith - Like I Can
    [2015-10-03 12:09:55,614] [Log    ] [AutoDJ   ] [INFO ] - Auto DJ: Added to playlist: Beyoncé - Irreplaceable
     

    joEhSuper

    MP Donator
  • Premium Supporter
  • June 2, 2011
    1,014
    589
    Home Country
    Austria Austria
    THX, all is working now (artist info, album info etc).
    Finally greatwork (y) (y) (y)

    I can confirm most of this except following:

    Context menu for artst info and album info in latest music and Film-details in latest movies only work for entry 2 and 3.
    First entry goes back to Basic Home screen.
    So there seems to be a problem ONLY with the fiirst entry :(- entry 2 ond 3 are working!:)(y)[DOUBLEPOST=1443978968][/DOUBLEPOST]
    # LatestMediaHandler 20151002-Fix
    * Context menu fix
    * AutoDJ work
    View attachment 170025
    + Add ability to view pictures from latests control
    + Add more items in context menu...

    Ooooops sorry - just took # LatestMediaHandler 20151002-Fix --> first entry works now :oops:
     
    Last edited:

    Users who are viewing this thread

    Top Bottom