Accelerate playlist viewing (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,371
    Kyiv
    Home Country
    Ukraine Ukraine
    with that the displayed playlist grows, but:
    You can try to do this for long lists, if the list is longer than 1000, then load it dynamically, otherwise, the list is short and load it all. Then restrictions will work only for long lists.
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    You can try to do this for long lists, if the list is longer than 1000, then load it dynamically, otherwise, the list is short and load it all. Then restrictions will work only for long lists.

    That's the idea. as long as the playlist is less than 1000 songs, it will be loaded completely.
    else i will add 1 song after the other once a song has finished.
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    Let's try this and test what is an appropriate value for the counter, depending on the load time. Then we can also test if there are limitations or drawbacks with the dynamic playlist load.
    Can we add a MP option for the song count?
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    Please try with the attached Core.dll.
    Load a Playlist with more than 1000 songs.
    You should see a message like this in the log:

    Code:
    Playlist: Selected Playlist contains more than 1000 entries. Defer Loading the rest of the songs.

    When the first song ends, new songs are added to the playlist.
    • It seems that you need to leave the playlist and open it to see the updates.
    • for some reason the Onchanged is alled multiple times, so i am not adding just one song, but mulriple songs. This shouldn't be a problem tough.
    • the 1000 is not a hard limit. it can be specified in the config musicfiles as numberOfSongsToLoad. i will create a field in the dialog
    • a Test needs to be performed for playlists with less than 1000 and exactly 1000 songs
     

    Attachments

    • Core.zip
      1.2 MB

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    No change in my environement with the new DLL, neither with nor without the new config file entry. I can't find the new log file entry as well.
    I tried it with an existing playlist from a M3U8 file and with a new from a file folder created playlist.

    Config file excerpt:
    Code:
      <section name="musicfiles">
        <entry name="doVisualisation">no</entry>
        <entry name="repeat">no</entry>
        <entry name="savePlaylistOnExit">yes</entry>
        <entry name="resumePlaylistOnMusicEnter">yes</entry>
        <entry name="playlistIsCurrent">yes</entry>
        <entry name="selectOption">play</entry>
        <entry name="addall">yes</entry>
        <entry name="extractthumbs">no</entry>
        <entry name="createartistthumbs">no</entry>
        <entry name="creategenrethumbs">yes</entry>
        <entry name="useFolderThumbs">no</entry>
        <entry name="useAllImages">no</entry>
        <entry name="createMissingFolderThumbs">no</entry>
        <entry name="treatFolderAsAlbum">yes</entry>
        <entry name="monitorShares">yes</entry>
        <entry name="updateSinceLastImport">no</entry>
        <entry name="stripartistprefixes">no</entry>
        <entry name="artistprefixes">The, Les, Die</entry>
        <entry name="dateadded">0</entry>
        <entry name="lastImport">2021-4-14 16:0:14</entry>
        <entry name="savePlaylistUTF8">yes</entry>
        <entry name="autoshuffle">no</entry>
        <entry name="numberOfSongsToLoad">22</entry>
      </section>
     

    Attachments

    • MediaPortal.log
      282.8 KB

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    Ist there someone else who wants to test this useful optimization?
     
    Last edited:

    Users who are viewing this thread

    Top Bottom