Next Up for a playlist
#1
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.
Reply
#2
The UpNext addon should honor the created playlist
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
(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...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.
Reply
#4
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.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#5
(2019-11-15, 20:25)sualfred Wrote: 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.
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:
python:

self.playlist = remove_quotes(params.get('playlist'))
self.playlist_filter = {'operator': 'is', 'field': 'playlist', 'value': self.playlist}

and then in getnextup (approximately line 370)
python:

if self.playlist:
            filters.append(self.playlist_filter)

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.
Reply
#6
@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.
Reply
#7
@Doctor Eggs 

Thanks for this information. Can the same be done for continue watching? If so what would be the change action?
Reply
#8
Not yet but I can add it
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#9
(2020-02-07, 12:09)sualfred Wrote: Not yet but I can add it
Wow 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?
Reply
#10
@hackmonker 
https://github.com/sualfred/script.embua...b8658391ea

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)]
or
Code:
plugin://script.embuary.helper/?info=getinprogress&playlist=PL1||PL2&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]
or - if escape issues 
Code:
plugin://script.embuary.helper/?info=getinprogress&playlist='"PL1||PL2"'&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#11
@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
Reply
#12
Ok, try it again but use "++" as seperator instead of "||"
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#13
(2020-02-07, 19:34)sualfred Wrote: Ok, try it again but use "++" as seperator instead of "||"

yup working perfectly now. Thanks a lot. Cool
Reply
#14
@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
Reply
#15
Tested and works. Be sure to set the content of the playlist to episodes.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply

Logout Mark Read Team Forum Stats Members Help
Next Up for a playlist0