Kodi Community Forum
Release skin helper service - 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 skin helper service (/showthread.php?tid=235676)



RE: skin helper service - User 224999 - 2016-10-03

(2016-10-03, 14:21)Solo0815 Wrote: It is absolutely OK, that your script can only DL images, when they are found online. I wanted to point to the python error:
Code:
Skin Helper Service --> WebServer error in request --> [Errno 32] Broken pipe
14:15:20 186.406555 T:1749496736   ERROR: Traceback (most recent call last):
14:15:20 186.406693 T:1749496736   ERROR:   File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/WebService.py", line 64, in __init__
14:15:20 186.406876 T:1749496736   ERROR:     SimpleHTTPServer.SimpleHTTPRequestHandler.__init__(self, request, client_address, server)
14:15:20 186.406937 T:1749496736   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 657, in __init__
14:15:20 186.407089 T:1749496736   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 716, in finish
14:15:20 186.407227 T:1749496736   ERROR:   File "/usr/lib/python2.7/socket.py", line 283, in close
14:15:20 186.407349 T:1749496736   ERROR:   File "/usr/lib/python2.7/socket.py", line 307, in flush
14:15:20 186.407639 T:1749496736   ERROR: error: [Errno 32] Broken pipe
This does not look good in the logs. Can you fix it please? If no image is found, there shouldn't be a "Broken pipe" error.
BTW: I tested it also with the latest version from today and the versions before.
Thx for this awesome script

You have enabled debug logging, that way all internal exceptions are printed on the log. Disable debug logging and they won't be visible.
If you want to prevent the 404 error, just set the fallback image in the request


RE: skin helper service - User 224999 - 2016-10-04

(2016-10-03, 18:36)Leoje Wrote: Hi Marcel

I use SkinHelper.EnableAddonsLookups + Window(home).Property(SkinHelper.PVR.ClearLogo) and Window(home).Property(SkinHelper.PVR.ClearLogo) to show art on movie addons.

In this last two updates from GitHub this amazing ability don't work anymore.
Can you fix it? Please...
Thanks

It's now fixed on Git. Be aware that you need to install the new script.module.simplecache on your system.


RE: skin helper service - Leoje - 2016-10-04

(2016-10-04, 00:41)marcelveldt Wrote:
(2016-10-03, 18:36)Leoje Wrote: Hi Marcel

I use SkinHelper.EnableAddonsLookups + Window(home).Property(SkinHelper.PVR.ClearLogo) and Window(home).Property(SkinHelper.PVR.ClearLogo) to show art on movie addons.

In this last two updates from GitHub this amazing ability don't work anymore.
Can you fix it? Please...
Thanks

It's now fixed on Git. Be aware that you need to install the new script.module.simplecache on your system.


Yes. Is working...
Thank you for your amazing work...


RE: skin helper service - Solo0815 - 2016-10-04

I tried the latest skinhelper-version from github and installed simplecache. In the kodi-log there is this skinhelper related error:
Code:
Skin Helper Service --> Error in plugin.py --> 'ascii' codec can't encode character u'\xfc' in position 33: ordinal not in range(128)
18:41:21 3293.745361 T:879752096   ERROR: Traceback (most recent call last):
18:41:21 3293.745361 T:879752096   ERROR:   File "/storage/.kodi/addons/script.skin.helper.service/plugin.py", line 130, in <module>
18:41:21 3293.751953 T:879752096   ERROR:     Main()
18:41:21 3293.752197 T:879752096   ERROR:   File "/storage/.kodi/addons/script.skin.helper.service/plugin.py", line 106, in __init__
18:41:21 3293.752441 T:879752096   ERROR:     plugincontent.getPluginListing(action,limit,refresh,optionalParam,randomize)
18:41:21 3293.752441 T:879752096   ERROR:   File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/PluginContent.py", line 78, in getPluginListing
18:41:21 3293.775635 T:879752096   ERROR:     allItems = eval(action)(limit)
18:41:21 3293.775635 T:879752096   ERROR:   File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/PluginContent.py", line 187, in PVRRECORDINGS
18:41:21 3293.775879 T:879752096   ERROR:     allItems = getPVRArtForItems(allItems)
18:41:21 3293.775879 T:879752096   ERROR:   File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/PluginContent.py", line 255, in getPVRArtForItems
18:41:21 3293.776123 T:879752096   ERROR:     newitems = pool.map(getPVRArtForItem, items)
18:41:21 3293.776123 T:879752096   ERROR:   File "/usr/lib/python2.7/multiprocessing/pool.py", line 251, in map
18:41:21 3293.776367 T:879752096   ERROR:   File "/usr/lib/python2.7/multiprocessing/pool.py", line 567, in get
18:41:21 3293.776611 T:879752096   ERROR: UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 33: ordinal not in range(128)
skin-helper-debug is disabled, btw


RE: skin helper service - User 224999 - 2016-10-04

(2016-10-04, 19:13)Solo0815 Wrote: I tried the latest skinhelper-version from github and installed simplecache. In the kodi-log there is this skinhelper related error:

Hmmm, I can't reproduce this one. Does it happen all the time or was this just once ?


RE: skin helper service - Solo0815 - 2016-10-05

I get this error sometimes. Asking Google gives a relation with characters, which can't be displayed as ASCII.
https://www.python-forum.de/viewtopic.php?t=27531
http://stackoverflow.com/questions/5760936/handle-wrongly-encoded-character-in-python-unicode-string
https://forum.opsi.org/viewtopic.php?t=7907

I have to set VDR to "ISO 8859-15" because of wrong characters in "Sky DE" EPG without it. Maybe this gives you a hint for a fix?

Edit:
I cut out all characters on position 33 in EPG and removed all "known" characters with
Code:
cut -c 33 epg.data | egrep -v '[A-Za-z0-9 ,\.\(\)-:!"|]' | sed '/^$/d' > characters.txt

https://dl.dropboxusercontent.com/u/36759175/characters.txt
Almost all characters can't be displayed in UTF8, but in ISO8859-15 :o


RE: skin helper service - Guilouz - 2016-10-11

I have an issue with Skin Helper widgets.

I use this for my widgets :

plugin://script.skin.helper.service/?action=recentmovies&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)] (Container 17100)

plugin://script.skin.helper.service/?action=inprogressmovies&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)] (Container 17200)

special://skin/playlists/unwatched_movies.xsp (Container 17300)

special://skin/playlists/random_movies.xsp (Container 17400)


I use this variable :

Code:
<value condition="Control.HasFocus(17100) + Container(17100).ListItem.IsResumable">flags/widgets/widgetresume.png</value>
<value condition="Control.HasFocus(17100) + Integer.IsGreater(Container(17100).ListItem.Playcount,0)">flags/widgets/widgetwatched.png</value>
<value condition="Control.HasFocus(17200) + Container(17200).ListItem.IsResumable">flags/widgets/widgetresume.png</value>
<value condition="Control.HasFocus(17200) + Integer.IsGreater(Container(17200).ListItem.Playcount,0)">flags/widgets/widgetwatched.png</value>
<value condition="Control.HasFocus(17300) + Container(17300).ListItem.IsResumable">flags/widgets/widgetresume.png</value>
<value condition="Control.HasFocus(17300) + Integer.IsGreater(Container(17300).ListItem.Playcount,0)">flags/widgets/widgetwatched.png</value>
<value condition="Control.HasFocus(17400) + Container(17400).ListItem.IsResumable">flags/widgets/widgetresume.png</value>
<value condition="Control.HasFocus(17400) + Integer.IsGreater(Container(17400).ListItem.Playcount,0)">flags/widgets/widgetwatched.png</value>

For Skin Helper Service widgets : When I use context menu to tag an item as watched; status does not change. When I change status of an item on library, widgets are correctly updated.

For widgets from xps files : All is working, on library or on widgets directly with context menu.

Any idea ?


EDIT : Since I have updated with latest skin helper service and other addons from git (script.module.thetvdb and script.module.simplecache) this dynamic content no longer working :

plugin://script.skin.helper.service/?action=recentmovies&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

plugin://script.skin.helper.service/?action=inprogressmovies&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

plugin://script.skin.helper.service/?action=recentepisodes&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

plugin://script.skin.helper.service/?action=nextepisodes&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

plugin://script.skin.helper.service/?action=nextairedtvshows&amp;reload=$INFO[Window(Home).Property(widgetreload2)]

I have only this in log :

Code:
03:11:43 T:123145500332032  NOTICE: script.tv.show.next.aired: ### TV Show - Next Aired starting background proc (6.0.15)
03:11:43 T:123145499795456  NOTICE: Skin Helper Service --> skin helper service version 1.0.112 started
03:11:43 T:123145499795456  NOTICE: Skin Helper Service --> WebService - start helper webservice on port 52307
03:11:43 T:123145499258880  NOTICE: script.grab.fanart: Grab Fanart Service Started
03:11:43 T:123145503551488   ERROR: Skin Helper Service --> ERROR in plugin.py ! --> string index out of range
03:11:45 T:123145503014912   ERROR: Previous line repeats 5 times.
03:11:45 T:123145503014912   ERROR: GetDirectory - Error getting



RE: skin helper service - Leoje - 2016-10-11

Hi Marcel
Can you, please, create code for
Window(home).Property(SkinHelper.PVR.ClearLogo)
Window(home).Property(SkinHelper.PVR.ClearArt)
For use inside seasons and episodes addons windows.
Thanks


RE: skin helper service - Angelinas - 2016-10-11

all music art and info down for player Sad version="1.0.112" but I think is broken with version="1.0.110"
-in Kodi Krypton and instaled script.module.simplecache version="1.0.1"
, if this matter

Code:
20:02:58 T:1888   ERROR: CCurlFile::Stat - Failed: Server returned nothing (no headers, no data)(52) for http://localhost:52307/getthumb&title=Justin Timberlake - Not A Bad Thing
20:03:07 T:2176   ERROR: Skin Helper Service --> ERROR in setMusicPlayerDetails ! --> global name 'setPlayerWindowProp' is not defined

Error when play Internet stream - radio,and music from library
Script doo work find all info and art (write in script.skin.helper.service\musicartcache\) but in visualisation are all empty....
I'll also try with
Window(Home).Property(SkinHelper.Music.AlbumThumb)
Window(Home).Property(SkinHelper.Music.ArtistThumb)

Code:
<artdetails>
    <info>Justin Randall Timberlake (born January 31, 1981) is an American singer, songwriter, actor, and record producer. He appeared on the television shows Star Search and The All-New Mickey Mouse Club as a child. In the late 1990s, Timberlake rose to prominence as one of the two lead vocalists and youngest member of NSYNC,.................................
</artdetails>



RE: skin helper service - User 224999 - 2016-10-11

(2016-10-05, 21:10)Solo0815 Wrote: I have to set VDR to "ISO 8859-15" because of wrong characters in "Sky DE" EPG without it. Maybe this gives you a hint for a fix?

Yes, you should save it as utf-8 as I don't believe Kodi the json output can handle your ISO-8859-17.
Kodi expects utf-8 strings, which are in the addon translated to unicode.


RE: skin helper service - Guilouz - 2016-10-11

Hi marcel,

Dynamic content no longer working :

Code:
plugin://script.skin.helper.service/?action=recentmovies&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

plugin://script.skin.helper.service/?action=inprogressmovies&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

plugin://script.skin.helper.service/?action=recentepisodes&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

plugin://script.skin.helper.service/?action=nextepisodes&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

plugin://script.skin.helper.service/?action=nextairedtvshows&amp;reload=$INFO[Window(Home).Property(widgetreload2)]

plugin://script.skin.helper.service/?action=unairedepisodes&amp;reload=$INFO[Window(Home).Property(widgetreload2)]

I have try with latest commit 4b84ce4


RE: skin helper service - User 224999 - 2016-10-12

(2016-10-11, 00:58)Guilouz Wrote: I have an issue with Skin Helper widgets.

Both issues should now be fixed on Git, can you confirm ?


RE: skin helper service - User 224999 - 2016-10-12

(2016-10-11, 20:20)Leoje Wrote: Hi Marcel
Can you, please, create code for
Window(home).Property(SkinHelper.PVR.ClearLogo)
Window(home).Property(SkinHelper.PVR.ClearArt)
For use inside seasons and episodes addons windows.
Thanks

Already there, take a look at the documentation"--> enable artwork lookups for addons


RE: skin helper service - User 224999 - 2016-10-12

(2016-10-11, 20:25)Angelinas Wrote: all music art and info down for player Sad version="1.0.112" but I think is broken with version="1.0.110"

Now fixed on Git!


RE: skin helper service - Guilouz - 2016-10-12

(2016-10-12, 00:56)marcelveldt Wrote:
(2016-10-11, 00:58)Guilouz Wrote: I have an issue with Skin Helper widgets.

Both issues should now be fixed on Git, can you confirm ?

Yes both are fixed but there is strange things (I think it regroup in a tvshow when many episodes of a same tvshow are added in same time) with :

plugin://script.skin.helper.service/?action=recentepisodes&amp;limit=25&amp;reload=$INFO[Window(Home).Property(widgetreload)]

In my recent episodes widget I have episodes and tv shows, look :

When it's correct, it show correctly episode name and infos on top :

Image Image


Not correct, it show tv show and not episode with 1969 year :

Image Image


And this two contents not working, they show nothing (I have aired episodes today) :

plugin://script.skin.helper.service/?action=nextairedtvshows&amp;reload=$INFO[Window(Home).Property(widgetreload2)]

plugin://script.skin.helper.service/?action=unairedepisodes&amp;reload=$INFO[Window(Home).Property(widgetreload2)]