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.
Hi Marcel,

I'm getting an error with the Skin.SetString stuff (actually doesn't work anymore), here's part of the log :

PHP Code:
12:43:30 T:3480   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <class 'xml.parsers.expat.ExpatError'>
                                            
Error Contentsmismatched tagline 623column 2
                                            Traceback 
(most recent call last):
                                              
File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\default.py"line 269in <module>
                                                
Main()
                                              
File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\default.py"line 59in __init__
                                                setSkinSetting
(setting,windowHeader)
                                              
File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\resources\lib\MainModule.py"line 295in setSkinSetting
                                                doc 
parsesettings_file )
                                              
File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\minidom.py"line 1918in parse
                                                
return expatbuilder.parse(file)
                                              
File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\expatbuilder.py"line 924in parse
                                                result 
builder.parseFile(fp)
                                              
File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\expatbuilder.py"line 207in parseFile
                                                parser
.Parse(buffer0)
                                            
ExpatErrormismatched tagline 623column 2
                                            
-->End of Python script error report<--
12:43:30 T:6560  NOTICEmetahandlerNo SQLite rows requiring update 

EDIT :

Also have this one :

PHP Code:
13:03:30 T:11140  NOTICESkin Helper Service --> skin helper service version 1.0.32 started
13
:03:30 T:11140  NOTICESkin Helper Service --> WebService start helper webservice on port 52307
13
:03:30 T:11140   ERRORSkin Helper Service --> Error in setSkinVersion --> mismatched tagline 623column 2
13
:03:30 T:11140   ERRORTraceback (most recent call last):
13:03:30 T:11140   ERROR:   File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\resources\lib\Utils.py"line 225in setSkinVersion
13
:03:30 T:11140   ERROR:     correctSkinSettings()
13:03:30 T:11140   ERROR:   File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\resources\lib\Utils.py"line 232in correctSkinSettings
13
:03:30 T:11140   ERROR:     doc parsesettings_file )
13:03:30 T:11140   ERROR:   File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\minidom.py"line 1918in parse
13
:03:30 T:11140   ERROR:     return expatbuilder.parse(file)
13:03:30 T:11140   ERROR:   File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\expatbuilder.py"line 924in parse
13
:03:30 T:11140   ERROR:     result builder.parseFile(fp)
13:03:30 T:11140   ERROR:   File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\dom\expatbuilder.py"line 207in parseFile
13
:03:31 T:11140   ERROR:     parser.Parse(buffer0)
13:03:31 T:11140   ERRORExpatErrormismatched tagline 623column 2 
@Jayz2K there is an error in your xml
(2016-02-03, 15:57)marcelveldt Wrote: [ -> ]@Jayz2K there is an error in your xml

Indeed ... found a missing bracket in a condition. Was the code already so sensitive ? Not sure I changed something since a while but good to know where to search now if I get error again.
So it's fixed, no more errors. Thanks Smile
Did you fix the Google lookup in getthumb Marcel ?
(2016-02-03, 21:23)Jayz2K Wrote: [ -> ]Did you fix the Google lookup in getthumb Marcel ?

yeah but it is not great... I managed to parse the google images page but only the preview thumbs, not the larger image.
It works ok for a small preview thumb but not for large images.
(2016-02-03, 21:50)marcelveldt Wrote: [ -> ]
(2016-02-03, 21:23)Jayz2K Wrote: [ -> ]Did you fix the Google lookup in getthumb Marcel ?

yeah but it is not great... I managed to parse the google images page but only the preview thumbs, not the larger image.
It works ok for a small preview thumb but not for large images.
That's what I thought. Seen some commits and gave it a try. Noticed also some relevance problems but I probably need to clear the cache (or maybe not taking channel name sometimes ?). But scrapped pictures display really much faster on my side Smile Is it using Google.com or localisation for searches (trying to manually search doesn't sort the pictures I get with the script ...)
Hey Marcel,

for Sets it's possilbe to call arts like this "Window(Home).Property(SkinHelper.MovieSet.X.FanArt)".
Any chance to get this feature for the genre libary node? As far as I understand the JSON queries correctly, it could be done in similar way by using Genres as filter option instead of the Set value.

This would help to display fake thumbs like this:
http://i.imgur.com/rDVCFec.jpg

Edit:
Args, forgot that the window properties are only working for the focused item. Damn.
(2016-02-03, 22:01)Jayz2K Wrote: [ -> ]That's what I thought. Seen some commits and gave it a try. Noticed also some relevance problems but I probably need to clear the cache (or maybe not taking channel name sometimes ?). But scrapped pictures display really much faster on my side Smile Is it using Google.com or localisation for searches (trying to manually search doesn't sort the pictures I get with the script ...)

Hmm it was still using english google.com, just changed it to use localized google.
BTW, the manual search in context menu allows you to pick for size version
(2016-02-02, 23:23)marcelveldt Wrote: [ -> ]
(2016-02-02, 00:48)Guilouz Wrote: [ -> ]Here error logs:

Thanks, issue should now be fixed on Git

It's working now but color theme does not change itself on time.
(2016-02-04, 20:22)Guilouz Wrote: [ -> ]It's working now but color theme does not change itself on time.

Any errors in the log?
(2016-02-04, 20:33)marcelveldt Wrote: [ -> ]
(2016-02-04, 20:22)Guilouz Wrote: [ -> ]It's working now but color theme does not change itself on time.

Any errors in the log?

Yes

Code:
12:26:45 T:123145303990272   ERROR: /Users/Cyril/Library/Application Support/Kodi/addons/script.skin.helper.service/resources/lib/ColorThemes.py:14: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
12:26:45 T:140735277076480   ERROR: Control 3 in window 13000 has been asked to focus, but it can't
12:26:45 T:123145303990272   ERROR: GetDirectory - Error getting /Users/Cyril/Library/Application Support/Kodi/addons/skin.eminence.2.mod/extras/skinthemes/

I have create 2 color themes, one for day, one for night and they are located in /Users/Cyril/Library/Application Support/Kodi/userdata/addon_data/skin.eminence.2.mod/themes/
(2016-02-03, 22:06)marcelveldt Wrote: [ -> ]
(2016-02-03, 22:01)Jayz2K Wrote: [ -> ]That's what I thought. Seen some commits and gave it a try. Noticed also some relevance problems but I probably need to clear the cache (or maybe not taking channel name sometimes ?). But scrapped pictures display really much faster on my side Smile Is it using Google.com or localisation for searches (trying to manually search doesn't sort the pictures I get with the script ...)

Hmm it was still using english google.com, just changed it to use localized google.
BTW, the manual search in context menu allows you to pick for size version

Just made some quick tests. Works on my side but sadly, picture quality is really a problem :/
Really nice from you to try to fix that but IMO, what we're getting with thumbs are too low res. The youtube results appear much better.
Hi Marcel,

I noticed a couple of errors in the log:

Code:
08:44:39 T:6856   ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
08:44:39 T:6856   ERROR: Skin Helper Service --> ERROR in BackgroundsUpdater ! --> argument "value" for method "setProperty" must be unicode or str
08:44:39 T:6856   ERROR: Traceback (most recent call last):
08:44:39 T:6856   ERROR:   File "C:\Users\Ian\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\BackgroundsUpdater.py", line 54, in run
08:44:39 T:6856   ERROR:     self.UpdateBackgrounds()
08:44:39 T:6856   ERROR:   File "C:\Users\Ian\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\BackgroundsUpdater.py", line 517, in UpdateBackgrounds
08:44:39 T:6856   ERROR:     self.setImageFromPath("SkinHelper.AllMusicBackground","musicdb://artists/")
08:44:39 T:6856   ERROR:   File "C:\Users\Ian\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\BackgroundsUpdater.py", line 258, in setImageFromPath
08:44:39 T:6856   ERROR:     else: WINDOW.setProperty(windowProp + "." + key, value)
08:44:39 T:6856   ERROR: TypeError: argument "value" for method "setProperty" must be unicode or str


Code:
08:44:50 T:6856   ERROR: Skin Helper Service --> ERROR in getArtworkFromCacheFile special://profile/addon_data/script.skin.helper.service/pvrthumbs/100% Big Chart Hitlist\pvrdetails.xml  --> no element found: line 1, column 0
08:44:50 T:6856   ERROR: Traceback (most recent call last):
08:44:50 T:6856   ERROR:   File "C:\Users\Ian\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\ArtworkUtils.py", line 496, in getArtworkFromCacheFile
08:44:50 T:6856   ERROR:     root = xmltree.fromstring(f.read())
08:44:50 T:6856   ERROR:   File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\etree\ElementTree.py", line 1301, in XML
08:44:50 T:6856   ERROR:     return parser.close()
08:44:50 T:6856   ERROR:   File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\etree\ElementTree.py", line 1654, in close
08:44:50 T:6856   ERROR:     self._raiseerror(v)
08:44:50 T:6856   ERROR:   File "C:\Program Files (x86)\Kodi\system\python\Lib\xml\etree\ElementTree.py", line 1506, in _raiseerror
08:44:50 T:6856   ERROR:     raise err
08:44:50 T:6856   ERROR: ParseError: no element found: line 1, column 0

Cheers
(2016-02-07, 11:05)im85288 Wrote: [ -> ]I noticed a couple of errors in the log:

Should now be fixed on Git.
(2016-02-05, 13:31)Guilouz Wrote: [ -> ]I have create 2 color themes, one for day, one for night and they are located in /Users/Cyril/Library/Application Support/Kodi/userdata/addon_data/skin.eminence.2.mod/themes/

It should now be fixed on Git, can you confirm ?