Kodi Community Forum

Full Version: skin helper service
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2016-08-06, 08:54)robwebset Wrote: [ -> ]Hope all is well. Is it OK to make a small suggestion - what do you think about making a change to the addon version number for script.module.musicbrainz?

Could I maybe suggest 0.6.0 - as this would match the python-musicbrainzngs version numbers so make it easy to see which version was in the bundle - then the final digit could be bumped in those cases where the kodi module changes without the python-musicbrainzngs version number changing.

Great idea, will do so right away.

Did you have time to test it ? If it's all okay I can submit it to the repo.
(2016-08-09, 01:42)mklopez Wrote: [ -> ]Hello all. I'm running 16.1 on Windows 7. Since a few days ago I'm getting errors from this service. This entry appears repeatedly in the Kodi log:
The error goes away if I uninstall any skins that use the service, but as soon as I install them again it returns.
I've searched for PluginContent but I can't seem to find a way to reinstall/restore it to my install.
Apologies if this has been asked before, but I have searched the forum without finding it. Any help would be appreciated.

In that case the addon is missing files on your Kodi setup.
You will have to reinstall it to fix it.

If still needed, here is a download link to manually install by zip:

http://mirrors.kodi.tv/addons/jarvis/scr...1.0.90.zip
(2016-08-10, 00:15)Mr. V Wrote: [ -> ]To clarify is there any chance we can get these two listitems added for pvr widgets to help with coding visibility conditions.
ListItem.IsRecording
ListItem.HasTimer

Sorry, that is not possible. Those properties are set by Kodi internally and can not be set by the script.
(2016-08-10, 06:04)VikkiXavier Wrote: [ -> ]@marcelveldt, can you add this feature to your addon so that skin helper service can grab reviews from critics/top critics at rotten tomatoes or any other review aggregator sites so that the reviews can be directly read in Kodi itself

I'd be happy to add that but as far as I'm aware there is no API providing that info.
Correct me if I'm wrong off course
(2016-08-10, 23:53)manfeed Wrote: [ -> ]Hi, I'm trying to use the option...
RunScript(script.skin.helper.service,action=stripstring,splitchar=[splitter text],string=[your string],output=[your window prop])
...and I don't know how to make it work when the splitchar is " " (one blank space), I have tried other characters and it works great; is there any special way to pass that character?
Thanks!

Well, the space is translated by Kodi to a blank string.
You might want to try to pass a double space as parameter or the url encoded equivalent: %20
If that all fails, I have just submitted a small workaround to the code that lets you use [SPACE] to tell the script to split on a blank space.
(2016-08-16, 03:11)djhifi Wrote: [ -> ]I have a request, regarding automation. Is it possible in the future, to implement a way that the script scans all the database and fetches animated posters for previous entrances?

I have 5000+ movies and growing, the simple thought of manually pulling the context menu to check for individual animated posters on 95% of the collection....gives me nightmares.

This is already implemented. If the video database is updated (e.g. when a new movie is added), the script will check all movies in the background and precache the animated art.
Hi Marcel,

I use $INFO[Window(Home).Property(SkinHelper.Player.Music.DiscArt)]

Cdart are working but when my album have 2 discs, it always display disc 1
(2016-08-16, 09:56)marcelveldt Wrote: [ -> ]
(2016-08-06, 08:54)robwebset Wrote: [ -> ]Hope all is well. Is it OK to make a small suggestion - what do you think about making a change to the addon version number for script.module.musicbrainz?

Could I maybe suggest 0.6.0 - as this would match the python-musicbrainzngs version numbers so make it easy to see which version was in the bundle - then the final digit could be bumped in those cases where the kodi module changes without the python-musicbrainzngs version number changing.

Great idea, will do so right away.

Did you have time to test it ? If it's all okay I can submit it to the repo.

That would be good - thanks.

Afraid I haven't tested it directly, I've got loads on at the moment - was thinking of a "nice to have" option and when you wrote the module I thought "Great!" - but afraid I wouldn't get to it for a while.

What I had a look at looked really good - and if you are already using it yourself, I'm confident it'll work for everyone Smile

Thanks, Rob
Hey Marcel,

Is it possible that properties won't be cleared for some cases?

$INFO[Window(Home).Property(SkinHelper.Music.Albums)] is visible in DialogMusicInfo but as soon as the textviewer is active, the property is going to be cleared even if the info dialog stays visible in the background
Found an issue with the cast info property. Only happens for few movies in my DB.

Code:
DEBUG: Keyboard: scancode: 0x17, sym: 0x0069, unicode: 0x0069, modifier: 0x0
19:16:32 T:13788   DEBUG: CInputManager::OnKey: i (0xf049) pressed, action is Info
19:16:32 T:13788   DEBUG: ------ Window Init (DialogFullScreenInfo.xml) ------
19:16:32 T:13788    INFO: Loading skin file: DialogFullScreenInfo.xml, load type: KEEP_IN_MEMORY
19:16:32 T:13788   DEBUG: CDirectoryProvider[plugin://script.skin.helper.service/?action=getcast&movie=Bernard & Bianca - Die M√§usepolizei&downloadthumbs=true]: refreshing..
19:16:32 T:3736   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Skin Helper Service('plugin://script.skin.helper.service/','7','?action=getcast&movie=Bernard & Bianca - Die M√§usepolizei&downloadthumbs=true')
19:16:32 T:17256   DEBUG: Thread LanguageInvoker start, auto delete: false
19:16:32 T:17256    INFO: initializing python engine.
19:16:32 T:17256   DEBUG: CPythonInvoker(17, D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py): start processing
19:16:32 T:17256   DEBUG: -->Python Interpreter Initialized<--
19:16:32 T:17256   DEBUG: CPythonInvoker(17, D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py): the source file to load is "D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py"
19:16:32 T:17256   DEBUG: CPythonInvoker(17, D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py): setting the Python path to D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service;D:\Kodi\Kodi Krypton\addons\script.module.pil\lib;D:\Kodi\Kodi Krypton\portable_data\addons\script.module.beautifulsoup\lib;D:\Kodi\Kodi Krypton\portable_data\addons\script.module.requests\lib;D:\Kodi\Kodi Krypton\portable_data\addons\script.module.simplejson\lib;D:\Kodi\Kodi Krypton\system\python\DLLs;D:\Kodi\Kodi Krypton\system\python\Lib;D:\Kodi\Kodi Krypton\python27.zip;D:\Kodi\Kodi Krypton\system\python\lib\plat-win;D:\Kodi\Kodi Krypton\system\python\lib\lib-tk;D:\Kodi\Kodi Krypton;D:\Kodi\Kodi Krypton\system\python;D:\Kodi\Kodi Krypton\system\python\lib\site-packages
19:16:32 T:17256   DEBUG: CPythonInvoker(17, D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py): entering source directory D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service
19:16:32 T:17256   DEBUG: CPythonInvoker(17, D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py): instantiating addon using automatically obtained id of "script.skin.helper.service" dependent on version 2.13.0 of the xbmc.python api
19:16:33 T:13788   DEBUG: Keyboard: scancode: 0x17, sym: 0x0069, unicode: 0x0000, modifier: 0x0
19:16:33 T:17256   DEBUG: CVideoDatabase::RunQuery took 0 ms for 0 items query: select * from movie_view  WHERE ((movie_view.c00 LIKE 'Bernard '))
19:16:33 T:9940   DEBUG: [script.trakt] kodiUtilities: getMovieDetailsFromKodi(): {u'moviedetails': {u'movieid': 369, u'title': u'Bernard & Bianca - Die M\xe4usepolizei', u'lastplayed': u'2016-08-18 19:16:00', u'label': u'Bernard & Bianca - Die M\xe4usepolizei', u'imdbnumber': u'tt0076618', u'file': u'smb://192.168.2.250/video/movies/hdd3/Bernard & Bianca - Die M\xe4usepolizei (1977)/Bernard & Bianca - Die M\xe4usepolizei (1977) h264-720p DTS-6ch.mkv', u'year': 1977, u'playcount': 0}}
19:16:33 T:9940   DEBUG: [script.trakt] scrobbler: scrobble()
19:16:33 T:9940    INFO: [script.trakt] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api-v2launch.trakt.tv
19:16:33 T:17256   ERROR: Skin Helper Service --> Error in plugin.py --> eval() arg 1 must be a string or code object
19:16:33 T:17256   ERROR: Traceback (most recent call last):
19:16:33 T:17256   ERROR:   File "D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py", line 175, in <module>
19:16:33 T:17256   ERROR:     Main()
19:16:33 T:17256   ERROR:   File "D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py", line 76, in __init__
19:16:33 T:17256   ERROR:     plugincontent.getCast(movie,tvshow,movieset,episode,downloadthumbs)
19:16:33 T:17256   ERROR:   File "D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\resources\lib\PluginContent.py", line 1319, in getCast
19:16:33 T:17256   ERROR:     allCast = eval(tmdbdetails.get("cast"))
19:16:33 T:17256   ERROR: TypeError: eval() arg 1 must be a string or code object
19:16:33 T:17256    INFO: CPythonInvoker(17, D:\Kodi\Kodi Krypton\portable_data\addons\script.skin.helper.service\plugin.py): script successfully run
19:16:34 T:17256    INFO: Python script stopped
19:16:34 T:17256   DEBUG: Thread LanguageInvoker 17256 terminating

Debug Log
http://pastebin.com/n4K3yQDc
(2016-08-16, 10:06)marcelveldt Wrote: [ -> ]
(2016-08-10, 06:04)VikkiXavier Wrote: [ -> ]@marcelveldt, can you add this feature to your addon so that skin helper service can grab reviews from critics/top critics at rotten tomatoes or any other review aggregator sites so that the reviews can be directly read in Kodi itself

I'd be happy to add that but as far as I'm aware there is no API providing that info.
Correct me if I'm wrong off course

I guess there is:

http://developer.rottentomatoes.com/docs...ie_Reviews
Hi,

I probably found a bug in skin helper widgets for TV Shows

I assume that for TV Shows
listitem.year
should contain the year of the TV Shows Season first aired?

watch gallery


1st row = next episode widget:
As you can see in my 1st Screenshot, Better Call Saul is selected (S02E05) but the Year is displayed as 1969.
According to my assumption Year should be 2016 for this episode, but it isn't.
Whatever TV Show I select in First Row, the Year is always 1969


2nd row = random episode
In my 2n Screenshot I selected POI. The random episode selected by the Widget is S04E15.
Season 4 of POI aired 2015, so the Year should be 2015 according to my assumption. But its the Year POI Season 01 came out.
However in the Random Episode Widget at least the Year shown is related to the selected TV Show.
e.g If I select Leverage the Year shown is 2008 (e.g. S04E18 shows year = 2008 (the Year Leverage came out) ). Although it should be 2011 (Season 4 first aired.)

Guilouz said, that it is probably a skin helper issue?

Here is my original post
With so many people implementing metacritic, popcorn and rotten tomatoes on their mods, can you implement a method to update those ratings without a need to rescrape the entire database?

Much like Rating Update Addon (for imdb)
Hi there -

I'm using Kodi 16.1, and currently use the Arctic Zephyr skin (Jarvis version). It looks like this 'skin helper service' addon came with the skin.

However, I'm finding that Kodi will hang on exit due to the 'skin helper service'. These are my logs when I try to exit:
http://pastebin.com/9c93Z8yy

I also disabled Arctic Zephyr and disabled 'skin helper service' and I suddently am able to exit Kodi just fine. Is there an issue with this addon that just needs to get fixed? Or am I doing something wrong?
Hi Marcel,
It's possible make skinhelper find same artwork for artist with 'The' and without 'The'?
For example:
The Prodigy -> Prodigy
The Offspring -> Offspring

thanks for your amazing work..