Next Up for a playlist - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +---- Forum: Embuary (https://forum.kodi.tv/forumdisplay.php?fid=297) +---- Thread: Next Up for a playlist (/showthread.php?tid=349239) |
Next Up for a playlist - Doctor Eggs - 2019-11-15 I love this skin. The layout and functionality are amazing. I really like the Next Up feature where it will play the next available episode for the in progress tv shows. Is there a way to get this functionality based on a playlist? I would like to keep the kids tv shows separate from my tv shows but have it displayed with the Next Up functionality. RE: Next Up for a playlist - sualfred - 2019-11-15 The UpNext addon should honor the created playlist RE: Next Up for a playlist - Doctor Eggs - 2019-11-15 (2019-11-15, 18:56)sualfred Wrote: The UpNext addon should honor the created playlist Apologies. What I was looking for was something that I just found was already asked in the embuary.helper: https://forum.kodi.tv/showthread.php?tid=345471&pid=2895461#pid2895461 It looks like you've replied and said that it's not an option. I was looking at script.embuary.helper/resources/lib/plugin_content.py and saw that it checks for self.tag and then appends that to the filter. Would it also be possible to send in a smart playlist by name, open the smartPlaylist.xml, parse it to get the attributes into a struct, and then append those attributes to the filter var? My python isn't all that great but I'm willing to give it a shot if you think that that could work. RE: Next Up for a playlist - sualfred - 2019-11-15 Ah, you mean the Next Up widget. No it does not work with playlists, because they are not part of the library. And smart playlists are just filter rules. RE: Next Up for a playlist - Doctor Eggs - 2019-11-17 (2019-11-15, 20:25)sualfred Wrote: Ah, you mean the Next Up widget.I looked in embuary.helper and got this to sort of work by editing resources/lib/plugin_content.py. I added the following to the init:
and then in getnextup (approximately line 370)
I then went into widgets and added a custom widget >> Custom item and added the following: plugin://script.embuary.helper/?info=getnextup&playlist=myTVPlaylist&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] This doesn't work and it brings back all TV shows. If I use self.playlist_filter = {'operator': 'is', 'field': 'playlist', 'value': 'myTVPlaylist'} in plugin_content.py it works and brings back just the in progress shows from that playlist. I'm not sure where I'm going wrong. When I log(self.playlist_filter) it shows that the playlist value that I'm passing is there. It seems like the json_query is ignoring it. RE: Next Up for a playlist - Doctor Eggs - 2020-02-06 @ottorox FYI, this is now available in embuary helper. I haven't gotten around to an easy way to add this as a widget but here is how I do it for the time being: Settings >> Interface Settings >> -Configure Skin Go to Custom widgets, click on the Edit path >> Custom item Paste the following into the Change action: plugin://script.embuary.helper/?info=getnextup&playlist=YOUR PLAYLIST NAME&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] Change out YOUR PLAYLIST NAME with the name of the playlist you are looking to use. Add it as a widget and you are done. I use this so that I can separate the Next Up for my TV Shows from the kids tv shows. RE: Next Up for a playlist - hackmonker - 2020-02-07 @Doctor Eggs Thanks for this information. Can the same be done for continue watching? If so what would be the change action? RE: Next Up for a playlist - sualfred - 2020-02-07 Not yet but I can add it RE: Next Up for a playlist - hackmonker - 2020-02-07 (2020-02-07, 12:09)sualfred Wrote: Not yet but I can add itWow that would be so great. Thanks a lot. Right I am doing it with smart playlists but that would be a killer feature. By the way can we add more than one playlist to the custom action above? I mean if I have 2 playlists PL1 and PL2, Then, plugin://script.embuary.helper/?info=getnextup&playlist=PL1&PL2&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] will this work? RE: Next Up for a playlist - sualfred - 2020-02-07 @hackmonker https://github.com/sualfred/script.embuary.helper/commit/8395fbd798a47ae881295e9ce1e150b8658391ea Please test the github version. It was added "blind". Seperator is "||" Code: plugin://script.embuary.helper/?info=getinprogress&playlist=PL1&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] Code: plugin://script.embuary.helper/?info=getinprogress&playlist=PL1||PL2&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] Code: plugin://script.embuary.helper/?info=getinprogress&playlist='"PL1||PL2"'&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] RE: Next Up for a playlist - hackmonker - 2020-02-07 @sualfred ok so I did a few tests and got these results 1. When I use only this Code: plugin://script.embuary.helper/?info=getinprogress&playlist=PL1&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] it works fine by showing in progress episodes in pl1 2. when I use Code: plugin://script.embuary.helper/?info=getinprogress&playlist=PL1||PL2&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] Only progressing episodes of pl1 is shown. Pl2 is absent. 3. When I use this Code: plugin://script.embuary.helper/?info=getinprogress&playlist=PL2||PL1&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] Only progressing episodes of pl2 is shown. pl1 is absent. 4.When I use this Code: plugin://script.embuary.helper/?info=getinprogress&playlist='"PL1||PL2"'&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] the entire widget is absent RE: Next Up for a playlist - sualfred - 2020-02-07 Ok, try it again but use "++" as seperator instead of "||" RE: Next Up for a playlist - hackmonker - 2020-02-07 (2020-02-07, 19:34)sualfred Wrote: Ok, try it again but use "++" as seperator instead of "||" yup working perfectly now. Thanks a lot. RE: Next Up for a playlist - hackmonker - 2020-02-07 @sualfred Ok so it works fine for movies but for tv shows it does not work. I mean the next up custom action works for tv shows but this in progress does not work for tv shows RE: Next Up for a playlist - sualfred - 2020-02-07 Tested and works. Be sure to set the content of the playlist to episodes. |