Req Please improve performance for JSON Playlist.Add(directory)
#1
Please improve performance for JSON Playlist.Add(directory). I tried to start slideshow from smb using next requests:
Playlist.Clear(pictures_playlist)
Playlist.Add(pictures_playlist, directory)
Player.Open(pictures_playlist)

And JSON Playlist.Add very slow executes: 1400 files for 3.6 sec
But starting slideshow from Kodi happens almost instantly.

I also tried using Player.Open(directory) but it happens in videoplaylist (I need in pictureplaylist).

[Updated]
I found: Player.Open(path) opens path in pictureplaylist and faster than using Playlist.Add.
But I want to use 2 and more paths to open simultaneously.
Reply
#2
In current situation I think I need to create separate folder and create symbolic links to paths and execute Player.Open(path) but what to do if I want later to add yet another path in currently played pictureplaylist?
Reply
#3
The problem is inside the function CPlaylistOperations::Add :

Replace this:
Code:
case PLAYLIST_PICTURE:
      for (int index = 0; index < list.Size(); index++)
      {
        // picture info tag is not need for slideshow
        CPictureInfoTag picture = CPictureInfoTag();
        if (!picture.Load(list[index]->GetPath()))
          continue;

        *list[index]->GetPictureInfoTag() = picture;
        slideshow->Add(list[index].get());
      }
      break;
to:

Code:
case PLAYLIST_PICTURE:
      for (int index = 0; index < list.Size(); index++)
      {
           slideshow->Add(list[index].get());
      }
      break;
Where it used PictureInfoTag? Why in this function you need to get PictureInfoTag? I tried to remove this code and compile: slideshow and pressing "O"(show picture info) works without any problems.
Reply
#4
Please submit a pull request to the kodi GitHub, looks like it could be a nice improvement so I would hate for it to be lost in the forum
Reply
#5
The problem is more or less common to all media types.

There's one with song that is there since Gotham and never looked at http://forum.kodi.tv/showthread.php?tid=196537

But when talking to Montellese it seems playlist handling is a mess and no one master all and want to dive in it Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Please improve performance for JSON Playlist.Add(directory)0