Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 28
Release script.embuary.helper - a skin helper service / widgets alternative
#16
@sualfred , would you consider adding a Recently Added Episodes widget that returns grouped episodes (returning the DBType as Season) when you add multiple episodes from the same season on the same date? Skin Helper Widgets does this, but sadly, it is not being maintained at the moment.  If you do consider this, could you return to Kodi for the grouped episodes the tvshow id and the season number? That way, if you click on the poster on the widget, I as a skinner can take you directly to the season of the tv show.  I modded skin helper widgets to return the tvshow id and season number to do this, but I am not a Python programmer and would rather have the functionality in a script that will continue to be maintained and in the Kodi repo.

Thank you for considering my request.

Regards,

Bart
Reply
#17
I already do this? Smile

If only 1 episode is left on the recently updated tv show -> use episode
else -> use tv show
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
#18
(2019-07-18, 16:58)sualfred Wrote: I already do this? Smile

If only 1 episode is left on the recently updated tv show -> use episode
else -> use tv show
@sualfred , you kind of do, since if I have more than one unwatched episode for the tv show, I will always get tv shows from embuary helper.  With skin helper widgets, it does not matter if I have one or more unwatched episodes.  It returns single episodes (only that episode for that season was added) or grouped episodes (more than one episode for a season was added on the same date).

Would you consider doing something like that? In essence, what I want to accomplish is clicking on a Season poster on an episodes widget when multiple episodes for that season have been added recently and take the user directly to the tv show season.  This is similar to what Plex does in Plex Home Theater.

Like I mentioned, I modded skin helper widgets, but I would very much prefer having the functionality in an addon that is as well maintained as yours and in the Kodi repo.  And also, my Python is severely limited.

Thanks again,

Bart
Reply
#19
To understand you correctly

Example:

Yesterday
Show A: Episode 1 was added
Show B: 3 Episodes were added

Result -> Show A Episode 1, Show B TV show Folder 

Today:
Sow A: 3 more episodeses were added
Show B: 1 episode added

Result -> Show A TV show folder, Show B Newest Episode
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
#20
(2019-07-18, 19:02)sualfred Wrote: To understand you correctly

Example:

Yesterday
Show A: Episode 1 was added
Show B: 3 Episodes were added

Result -> Show A Episode 1, Show B TV show Folder 

Today:
Sow A: 3 more episodeses were added
Show B: 1 episode added

Result -> Show A TV show folder, Show B Newest Episode

Correct! Thanks.
Reply
#21
But you want tvshows also splitted by season? Oo
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
#22
(2019-07-18, 19:16)sualfred Wrote: But you want tvshows also splitted by season? Oo

Not necessarily. What skin helper widgets does is that for grouped episodes it returns just the latest episode added, but with a dbtype of season, and a label with the season name. That is not enough for me to directly open the tv show in the season that the episodes were added in, so I modded it to return also the tvshow id and the season number as listitem properties.

I dont know if you can return a season and not a tv show, if you could that would be even simpler.

Regards,

Bart
Reply
#23
@bsoriano 

Please test this:
https://github.com/sualfred/script.embua...dc79c16e8e

Call
Code:
plugin://script.embuary.helper/?info=getnewshows&showall=true

Edit:
I've merged both functions and updated the call above.

showall=true -> your wanted behaviour based on dateadded
showall=false or not provided -> my wanted behaviour with only unwatched or inprogress shows and not based on dateadded
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
#24
(2019-07-18, 21:46)sualfred Wrote: @bsoriano 

Please test this:
https://github.com/sualfred/script.embua...dc79c16e8e

Call
Code:
plugin://script.embuary.helper/?info=getnewshows&showall=true

Edit:
I've merged both functions and updated the call above.

showall=true -> your wanted behaviour based on dateadded
showall=false or not provided -> my wanted behaviour with only unwatched or inprogress shows and not based on dateadded
@sualfred , thank you so much!! Big Grin It works great! Sorry it took me some time to test.

Would it be possible for you to add an extra property (maybe something like seasonlabel or something like that) to the listitem with the season number, such as "Season 3"? That way I can make certain to display a Season poster with the correct label when I use your widget. 

You see, in the template.xml for me it's easy to check if it is your widget I am using and thus have the behavior of open the season on an onclick, but the item label I display is a VAR that would have to do a few checks (I have up to 6 widgets and this could be in any of them) on properties of the main menu item to determine if it is your widget (an episode widget that is returning a tvshow as a listitem), so I can display the season number as a label and not a tv show name.  

Thanks again,

Bart
Reply
#25
Hi @sualfred

I have a feature request. Something i miss that skin helper provided, as I removed skin helper support a few months ago, due to my concerns of it not being future proof and some noticeable slow down when it retrieves images from the web.

https://github.com/kodi-community-addons...rce-addons

My usage scenario;
For skin shortcuts, in the main menu i allow the user to select a thumb for main menu icons, from a image resource addon.
In the skin-shortcuts.xml, when selecting the thumbnail i added this onclick condition
Code:
RunScript(script.skin.helper.service,action=selectimage,header=Choose Icon,skinshortcutsproperty=MenuIcon,resourceaddon=resource.images.skinicons)]

The script sets a skinshorts cuts property that is used in the main menu, also providing a list of images for a particular type of resource addon.
Image

This is also used for setting a skin string to change the default backgrounds.

Cheers
Mr. V
Madnox 2.0
Forum / Source
Reply
#26
That's not a simple oneliner and should be added to skinshortcuts directly (if it finds a maintainer again. Otherwise it's broken on Matrix too).
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
#27
@bsoriano 

What if you added season 2 +3 on the same date? Or if you added S03 but also S01E03. In this case your logic would fail. Just pointing to the show makes more sense and would not fail in any case. Plus not all setups have season artworks stored. And users also can disable seasons completely to flatten their shows.
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
#28
(2019-07-19, 07:34)sualfred Wrote: @bsoriano 

What if you added season 2 +3 on the same date? Or if you added S03 but also S01E03. In this case your logic would fail. Just pointing to the show makes more sense and would not fail in any case. Plus not all setups have season artworks stored. And users also can disable seasons completely to flatten their shows.

@sualfred, thanks for pointing out those scenarios I had not thought about. You are correct.

When would the updated version of embuary helper be available in your repo or the Kodi repo? That way I can let the users know where to download the addon from.

Thanks again,

Bart
Reply
#29
It's already on my repo. I will wait for other things until I push it to the Kodi repo (~1 week). Otherwise Rechi will think that he is my personal addon approver and I don't want to annoy him.
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
#30
(2019-07-19, 11:11)sualfred Wrote: It's already on my repo. I will wait for other things until I push it to the Kodi repo (~1 week). Otherwise Rechi will think that he is my personal addon approver and I don't want to annoy him.

Great, thanks!

Regards,

Bart
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 28

Logout Mark Read Team Forum Stats Members Help
script.embuary.helper - a skin helper service / widgets alternative3