Accelerate playlist viewing (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    13,739
    8,287
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    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,616
    2,443
    Vienna, Austria
    Home Country
    Austria Austria
    Country flag
    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,155
    414
    Munich
    Home Country
    Germany Germany
    Country flag
    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,616
    2,443
    Vienna, Austria
    Home Country
    Austria Austria
    Country flag
    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 · Views: 0

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,155
    414
    Munich
    Home Country
    Germany Germany
    Country flag
    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 · Views: 0

    horned_reaper

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

    Users who are viewing this thread

    Similar threads

    I have just tested the dll, and it works fine on my thpc too :)(y) Thanks
    I have just tested the dll, and it works fine on my thpc too :)(y) Thanks
    Since the update to MediaPortal 1.27 it takes about three seconds to jump to the next or previous track. Also adding files and...
    Replies
    11
    Views
    2K
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the DefaultWide skin. It really messes up the overlays though.
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the...
    For the past year or so I have not been able to get into my TV recordings menu. MediaPortal wont crash, but it just hangs and...
    Replies
    1
    Views
    627
    That's awesome news! I can't say how I'm happy to help fellow XP user :D
    That's awesome news! I can't say how I'm happy to help fellow XP user :D
    Ok, I’m back, MP1.14 has been working great for the last few years, up until last month when a recording overwrote the hard drive...
    Replies
    18
    Views
    2K
    MP1 MP2 Help with subtitles DE
    Hi guys, I've a few issues with subtitles and I'd like to have a few suggestions on how to set up things properly (if possible). Current video codecs are: - LAV Video for all formats (except HVEC using Lentoid), with DXVA native decoding - LAV Splitter Source - LAV Audio - MPAR as audio renderer - EVR as video renderer (not enough...
    Hi guys, I've a few issues with subtitles and I'd like to have a few suggestions on how to set up things properly (if possible)...
    Hi guys, I've a few issues with subtitles and I'd like to have a few suggestions on how to set up things properly (if possible)...
    Replies
    0
    Views
    2K
    MediaPortal 2.1 Pre2 Release! Since we released MediaPortal 2.1 Pre we have been focusing on fixing bugs and issues that were reported by the community. While we were able to develop solutions for most of them, a few things remain that require more work to get fixed. For this reason we decided to publish a second Pre release to allow...
    MediaPortal 2.1 Pre2 Release! Since we released MediaPortal 2.1 Pre we have been focusing on fixing bugs and issues that were...
    MediaPortal 2.1 Pre2 Release! Since we released MediaPortal 2.1 Pre we have been focusing on fixing bugs and issues that were...
    Replies
    0
    Views
    893
    Top Bottom