Posts: 17,383
Joined: Aug 2007
Reputation:
582
Hitcher
Team-Kodi Member
Posts: 17,383
Many thanks. This is going to save me a hell of a lot of time coding my customisable home widgets.
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
ok. Could you put that on the github issues list so I dont have to keep track of forum posts?
Posts: 3,532
Joined: Oct 2013
Reputation:
357
@hitcher:
FYI and if you didn't noticed it yet, script.favourites supports this by extracting the path of a favourite. U could use this in the meantime. Works well.
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
Posts: 17,383
Joined: Aug 2007
Reputation:
582
Hitcher
Team-Kodi Member
Posts: 17,383
2015-05-21, 21:14
(This post was last modified: 2015-05-21, 21:41 by Hitcher.)
Thanks, I did try using the skin shortcuts script to just select the shortcut but that of course adds the ActivateWindow tags which I don't want for content.
EDIT: Works perfectly for what I need right now.
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
btw did you guys try "Skin.SetPath(NAME_OF_STRING,addons://sources/video/)" or something similar?
Posts: 8,283
Joined: Jul 2014
@
phil65, if you need any help; For some of the requests here I already did some coding in my skin's helper script, so I can share this with you for the toolbox script in order to other skinners can benefit from it if you want.
Looking at the request to provide the content's path to set a widget. This might be something to be added to the skinshortcuts scripts ?
Most of the code is already in there, I think it's an easy change and can add it in if you want. That way you can provide both your own defined widgets from skinshortcuts or let the user choose from a library path/location.
Posts: 1,585
Joined: Nov 2007
Reputation:
44
wyrm
Skilled Skinner
Posts: 1,585
phil65,
The designer of a side project that I am working on has asked if I can provide a circular progress type indicator to show items like "number of watched movies out of total movies in library". While providing the require info in a circular manner will be a PITA, I think I have that side covered. What I don't have is a way to get a percentage of two $INFO's to feed to my code to make this happen.
How do you feel about the idea of a function that is fed two $INFO's and returns a skin string or window.property with the percentage of one $INFO from the other?
Wyrm (AppTV)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions
here if you can't access skin settings.
FAQ's located at :-
http://kodi.wiki/view/Add-on:AppTV
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
would be possible. Something like script.toolbox(info=getpercentage,string=NAME_OF_STRING,total=TOTAL_AMOUNT,part=PART_AMOUNT)?