Release script.embuary.helper - a skin helper service / widgets alternative - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300) +---- Thread: Release script.embuary.helper - a skin helper service / widgets alternative (/showthread.php?tid=345471) |
RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-18 @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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-18 I already do this? If only 1 episode is left on the recently updated tv show -> use episode else -> use tv show RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-18 (2019-07-18, 16:58)sualfred Wrote: I already do this?@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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-18 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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-18 (2019-07-18, 19:02)sualfred Wrote: To understand you correctly Correct! Thanks. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-18 But you want tvshows also splitted by season? Oo RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-18 (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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-18 @bsoriano Please test this: https://github.com/sualfred/script.embuary.helper/commit/42f2206d0cbd29c3bc248478d8f009dc79c16e8e 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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-19 (2019-07-18, 21:46)sualfred Wrote: @bsoriano@sualfred , thank you so much!! 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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Mr. V - 2019-07-19 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/script.skin.helper.service/wiki/Tools-for-resource-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. This is also used for setting a skin string to change the default backgrounds. Cheers Mr. V RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-19 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). RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-19 @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. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-19 (2019-07-19, 07:34)sualfred Wrote: @bsoriano @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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-19 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. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-19 (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 |