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-10-13, 00:15)marcelveldt Wrote: [ -> ]
(2016-10-12, 06:18)Leoje Wrote: [ -> ]Not work for seasons and episodes containers inside addons...
Work for series container on addons.
What i miss??

This is now fixed on git

Thank you. It's working...
(2016-10-13, 09:50)xodiuser Wrote: [ -> ]With the latest git version, there are two "Skin Helper Service" icons are added to the Video Addons and Music Addons. Is this expected? I didn't see them before. It should be just background service, shouldn't be in there.

This is only temporary and only on Git not on the repo version.
I'm rewriting large parts of the skinhelper and splitting up some stuff into seperated addons, for example the colorpicker is now a seperate addon.
The whole widgets part is going to be a seperated addon too.

This all is going to help me to better maintain the code and it's better for users. Skins are able to only use the features they use instead of having to include the entire skinhelper package.

BTW: Stuff is going to be backwards compatible so it won't break skins. For example if you use script.skin.helper.service to get the colorpicker it will auto redirect to the new addon.
(2016-10-13, 16:16)the_bo Wrote: [ -> ]Is there option to cache rottentomates and IMDb ratings and data when viewing library offline then only refreshing ratings when online?
Currently browsing offline shows blank ratings for all movies.

Yes, this was just added a few days ago and will be in next update of the script.
Marcel,I found new bug (error,when you "Fix Studios")

https://github.com/marcelveldt/script.sk...abd55aL557

with this changes MovieSet Art & Info are broken.
Please fix this Smile
(2016-10-16, 21:35)Angelinas Wrote: [ -> ]Marcel,I found new bug (error,when you "Fix Studios")

https://github.com/marcelveldt/script.sk...abd55aL557

with this changes MovieSet Art & Info are broken.
Please fix this Smile

Better to not use the git version because i'm currently rewriting parts of the script.
There's unfinished/unstable code on Git now.

It will all be fixed within a few days, I'll let you know.
(2016-10-16, 22:32)marcelveldt Wrote: [ -> ]It will all be fixed within a few days, I'll let you know.
Tnx
I'll stay on version="1.0.115"
(2016-10-13, 19:02)marcelveldt Wrote: [ -> ]The whole widgets part is going to be a seperated addon too.
Hi Marcel, really looking forward to this.
A couple of suggestions/requests regarding your dynamic content provider:
  • think about maybe splitting recentmedia into recentepisodes and recentmovies
  • when an item is played, it doesn't disappear from the recentmedia list (until kodi restart) even though the reload parameter is specified as per your github info, bug?
  • when a new TV series (multiple episodes of the same show) is added, it completely populates the recents list. Can you make it so that only one entry from a series is displayed (either the first or the last episode, and only unwatched of course)?
  • I would love the recent widgets to truly take into account what is "recent" (ie to be able to specify with a parameter the number of days that videos should be regarded as recent ... eg only from the past 7 days). No other widget is able to do this, they all just display that last added as opposed to actually recent. Considering that all videos have a dateadded value, this should be doable?

Thanks for you ongoing work on this! It is really appreciated.
Does anyone know a code snippet, which gets the channel logo from a recording, when the recording is playing?
Window(Home).Property(SkinHelper.PVR.ChannelLogo)
does work in DialogPVRInfo, but not in FullscreenInfo Confused
(2016-10-19, 15:45)Solo0815 Wrote: [ -> ]Does anyone know a code snippet, which gets the channel logo from a recording, when the recording is playing?
Window(Home).Property(SkinHelper.PVR.ChannelLogo)
does work in DialogPVRInfo, but not in FullscreenInfo Confused

Please wait a few days. a very big update is coming up, providing a lot more features ;-)
Hi marcel, I have many error with latest git version (latest skin helper service and all other addons) :

Code:
21:03:23 T:123145355452416   DEBUG: RunQuery took 86 ms for 870 items query: select * from movie_view  WHERE ((movie_view.playCount IS NULL OR movie_view.playCount = 0))
21:03:23 T:123145360896000   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named utils
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/service.py", line 4, in <module>
                                                from resources.lib.utils import WINDOW, log_msg, ADDON_VERSION, log_exception
                                            ImportError: No module named utils
                                            -->End of Python script error report<--

21:03:23 T:123145374310400    INFO: initializing python engine.
21:03:23 T:123145374310400   DEBUG: CPythonInvoker(12, /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py): start processing
21:03:23 T:123145359822848   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named utils
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py", line 3, in <module>
                                                from resources.lib.plugin_content import PluginContent
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/plugin_content.py", line 5, in <module>
                                                from utils import log_msg, try_encode, normalize_string, timedelta, getCleanImage, KODI_VERSION, process_method_on_list,WINDOW,log_exception
                                            ImportError: No module named utils
                                            -->End of Python script error report<--
21:03:23 T:123145359822848    INFO: Python script stopped
21:03:23 T:123145359822848   DEBUG: Thread LanguageInvoker 123145359822848 terminating
21:03:23 T:123145364115456   ERROR: GetDirectory - Error getting plugin://script.skin.helper.service/?action=nextepisodes&limit=25&reload=
21:03:23 T:123145373773824   DEBUG: -->Python Interpreter Initialized<--
21:03:23 T:123145373773824   DEBUG: CPythonInvoker(11, /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py): the source file to load is "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py"
21:03:23 T:123145374310400   DEBUG: -->Python Interpreter Initialized<--
21:03:23 T:123145374310400   DEBUG: CPythonInvoker(12, /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py): the source file to load is "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py"

21:03:23 T:123145374310400   DEBUG: CPythonInvoker(12, /Users/Cyril/Library/Application Support/Kodi/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
21:03:23 T:123145373773824   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named utils
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py", line 3, in <module>
                                                from resources.lib.plugin_content import PluginContent
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/plugin_content.py", line 5, in <module>
                                                from utils import log_msg, try_encode, normalize_string, timedelta, getCleanImage, KODI_VERSION, process_method_on_list,WINDOW,log_exception
                                            ImportError: No module named utils
                                            -->End of Python script error report<--
21:03:23 T:123145373773824    INFO: Python script stopped
21:03:23 T:123145373773824   DEBUG: Thread LanguageInvoker 123145373773824 terminating
21:03:23 T:123145374310400   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named utils
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py", line 3, in <module>
                                                from resources.lib.plugin_content import PluginContent
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/plugin_content.py", line 5, in <module>
                                                from utils import log_msg, try_encode, normalize_string, timedelta, getCleanImage, KODI_VERSION, process_method_on_list,WINDOW,log_exception
                                            ImportError: No module named utils
                                            -->End of Python script error report<--
21:03:23 T:123145374310400    INFO: Python script stopped
21:03:23 T:123145374310400   DEBUG: Thread LanguageInvoker 123145374310400 terminating
21:03:23 T:123145363578880   ERROR: GetDirectory - Error getting plugin://script.skin.helper.service/?action=nextairedtvshows&reload=
21:03:23 T:123145355452416   ERROR: GetDirectory - Error getting plugin://script.skin.helper.service/?action=unairedepisodes&reload=

Plugin content not working.

Window(Home).Property(SkinHelper.ListItemDuration.Hours) and Window(Home).Property(SkinHelper.ListItemDuration.Minutes) not working.

Normal ?
(2016-10-19, 21:15)Guilouz Wrote: [ -> ]Hi marcel, I have many error with latest git version (latest skin helper service and all other addons) :

Code:
21:03:23 T:123145355452416   DEBUG: RunQuery took 86 ms for 870 items query: select * from movie_view  WHERE ((movie_view.playCount IS NULL OR movie_view.playCount = 0))
21:03:23 T:123145360896000   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named utils
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/service.py", line 4, in <module>
                                                from resources.lib.utils import WINDOW, log_msg, ADDON_VERSION, log_exception
                                            ImportError: No module named utils
                                            -->End of Python script error report<--

21:03:23 T:123145374310400    INFO: initializing python engine.
21:03:23 T:123145374310400   DEBUG: CPythonInvoker(12, /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py): start processing
21:03:23 T:123145359822848   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named utils
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py", line 3, in <module>
                                                from resources.lib.plugin_content import PluginContent
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/plugin_content.py", line 5, in <module>
                                                from utils import log_msg, try_encode, normalize_string, timedelta, getCleanImage, KODI_VERSION, process_method_on_list,WINDOW,log_exception
                                            ImportError: No module named utils
                                            -->End of Python script error report<--
21:03:23 T:123145359822848    INFO: Python script stopped
21:03:23 T:123145359822848   DEBUG: Thread LanguageInvoker 123145359822848 terminating
21:03:23 T:123145364115456   ERROR: GetDirectory - Error getting plugin://script.skin.helper.service/?action=nextepisodes&limit=25&reload=
21:03:23 T:123145373773824   DEBUG: -->Python Interpreter Initialized<--
21:03:23 T:123145373773824   DEBUG: CPythonInvoker(11, /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py): the source file to load is "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py"
21:03:23 T:123145374310400   DEBUG: -->Python Interpreter Initialized<--
21:03:23 T:123145374310400   DEBUG: CPythonInvoker(12, /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py): the source file to load is "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py"

21:03:23 T:123145374310400   DEBUG: CPythonInvoker(12, /Users/Cyril/Library/Application Support/Kodi/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
21:03:23 T:123145373773824   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named utils
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py", line 3, in <module>
                                                from resources.lib.plugin_content import PluginContent
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/plugin_content.py", line 5, in <module>
                                                from utils import log_msg, try_encode, normalize_string, timedelta, getCleanImage, KODI_VERSION, process_method_on_list,WINDOW,log_exception
                                            ImportError: No module named utils
                                            -->End of Python script error report<--
21:03:23 T:123145373773824    INFO: Python script stopped
21:03:23 T:123145373773824   DEBUG: Thread LanguageInvoker 123145373773824 terminating
21:03:23 T:123145374310400   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named utils
                                            Traceback (most recent call last):
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/plugin.py", line 3, in <module>
                                                from resources.lib.plugin_content import PluginContent
                                              File "/Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/plugin_content.py", line 5, in <module>
                                                from utils import log_msg, try_encode, normalize_string, timedelta, getCleanImage, KODI_VERSION, process_method_on_list,WINDOW,log_exception
                                            ImportError: No module named utils
                                            -->End of Python script error report<--
21:03:23 T:123145374310400    INFO: Python script stopped
21:03:23 T:123145374310400   DEBUG: Thread LanguageInvoker 123145374310400 terminating
21:03:23 T:123145363578880   ERROR: GetDirectory - Error getting plugin://script.skin.helper.service/?action=nextairedtvshows&reload=
21:03:23 T:123145355452416   ERROR: GetDirectory - Error getting plugin://script.skin.helper.service/?action=unairedepisodes&reload=

Plugin content not working.

Window(Home).Property(SkinHelper.ListItemDuration.Hours) and Window(Home).Property(SkinHelper.ListItemDuration.Minutes) not working.

Normal ?

I have the same issue.
(2016-10-19, 21:15)Guilouz Wrote: [ -> ]Hi marcel, I have many error with latest git version (latest skin helper service and all other addons) :

Please, please, please READ THE FORUM POSTS Big Grin

I am reworking the entire skinhelper so keep away of the git version, stick with older version for now.

I will post here on this forum as soon as I'm ready with the refactoring
Is there any possibilty to get all albums for a selected artist like for movieset ?

Like Window(Home).Property(SkinHelper.MovieSet.X.Poster) for example
Thank you
(2016-10-21, 12:37)telexxingou Wrote: [ -> ]Is there any possibilty to get all albums for a selected artist like for movieset ?

Like Window(Home).Property(SkinHelper.MovieSet.X.Poster) for example
Thank you

I imagine that you mean something like this...

http://forum.kodi.tv/showthread.php?tid=203196

...it would be great if skin helper script would return that information too...Nod
(2016-10-21, 16:49)manfeed Wrote: [ -> ]
(2016-10-21, 12:37)telexxingou Wrote: [ -> ]Is there any possibilty to get all albums for a selected artist like for movieset ?

Like Window(Home).Property(SkinHelper.MovieSet.X.Poster) for example
Thank you

I imagine that you mean something like this...

http://forum.kodi.tv/showthread.php?tid=203196

...it would be great if skin helper script would return that information too...Nod

Thank you !!! exactly what i want Wink
you're right...in skin helper script would be great Wink