Recent Shows Widget Slow to Appear (the list loads quick)
#1
Can someone help me out with this? I'm using Xonfluence.

I want to replace the 'Recent Episodes' widget with 'Recent Shows'. I can easily make a smart playlist or library node that creates the desired list of shows in the desired order (date added in the last 30, play count = 0, sort by date added, ).

However, for some reason when I add that smart playlist or library node to favorites and then I add it as a widget, it takes a LONG time to display the widget each time Kodi is started. I can go and browse the list after startup, go back to home screen and still wait a few seconds before the widget shows up.

Is there some way to optimize this? Maybe build it into the XML somehow could speed it up? The 'Recent Episodes' get displayed almost instantly...

I can see how and where the widgets are created in the .xml files, however I don't understand the notation in which the content is written out. Like for example....
videodb://tvshows/titles/-1/-1/?xsp=%7B%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22playcount%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%220%22%7D%5D%7D%2C%22type%22%3A%22episodes%22%7D


I can't find any resource explaining how to edit this or create it myself. Anything would be appreciated.
Reply
#2
Use https://www.urldecoder.org/ and https://www.urlencoder.org/ to edit.
Reply
#3
(2023-03-02, 18:03)Fuchs2468 Wrote: Use https://www.urldecoder.org/ and https://www.urlencoder.org/ to edit.

THANK YOU! This is cool, I can generate these myself now, awesome.
Reply
#4
(2023-03-03, 17:29)pavichokche Wrote:
(2023-03-02, 18:03)Fuchs2468 Wrote: Use https://www.urldecoder.org/ and https://www.urlencoder.org/ to edit.

THANK YOU! This is cool, I can generate these myself now, awesome.
Did this speed things up for you. I have the same problem
Reply
#5
please delete....
Reply
#6
(2023-03-10, 10:20)Ceefaxer Wrote: Did this speed things up for you. I have the same problem

Short answer, yes. Long answer it can depend.

But yes, for MOST 'sources' that have the list 'stored' or accessible locally like smart playlist, library node, etc, it absolutely works. And the solution didn't require using the URL decoder linked above.

Simply find the list you want in your widget and add it to Favorites. Close Kodi and go to userdata/favorites.xml

You will see entries like this one:

<favourite name="Kids">ActivateWindow(10025,&quot;library://video/jellyfintvshows14895ee3d991844aee62d94dd46dfb7a/all.xml/&quot;,return)</favourite>

Copy the portion starting from and including 'library://' all the way up to but not including the last '&quot'. Depending on the source it might look very different and start with 'plugin://', 'videodb://', 'special://' or even something else I haven't seen.

The rest is assuming you're using xonfluence skin, but it might be applicable to other skins too...

Then, go to the Kodi directory (where userdata is stored) and go into addons\skin.xonfluence\xml\IncludesHomeWidget.xml and find the section for video widgets like this one near the end (around line 3700):

<include name="RecentTVShowContent">
        <!-- 10 episodes, unwatched, newest first -->
        <content target="videos">library://video/tvshows/newshows.xml/</content>
    </include>

All you need to do is paste the portion you copied from favorites.xml between the <content> </content> tags, save, and restart Kodi. Since the xonfluence skin comes with 8 different widgets for video content you can make up to 8 custom widget lists this way, just add some comments to keep track which one you're replacing since the name in the Skin UI will remain as it was, for example 'Random Episodes'. The widget will populate very quickly, as quickly as it would if you went to browse for it in the Kodi interface. The only cases when it can be slower is if it's a list from an addon that is fetched from the cloud, in which case naturally it depends on many factors. 
Hope this helped.
Reply

Logout Mark Read Team Forum Stats Members Help
Recent Shows Widget Slow to Appear (the list loads quick)0