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.
(2017-03-09, 04:10)scott967 Wrote: [ -> ]
(2017-03-08, 20:28)wags1 Wrote: [ -> ]Follow-up to post on skin settings import/export problem. I just did an export followed by an import on one of my FireTV boxes. Here are the log entries:

first for the export -
13:19:41.710 T:18446744072362651184 WARNING: FileNFS::OpenForWrite() called with overwriting enabled! - //Aeonmq7 Skinbackup (2017-03-08 13.19.36).zip
It completed the write of the backup file to my NAS - backup file name, as can be seen above, is Aeonmq7 Skinbackup (2017-03-08 13.19.36).zip

I then tried to do an import and point it at the file that I just created. It appears to work but nothing actually is restored and the following error is in the log -
13:20:21.431 T:18446744072373624832 ERROR: Skin Helper Backup --> ERROR in __main__ ! --> [Errno 2] No such file or directory: u'/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/userdata/profiles/Mark/addon_data/script.skin.helper.skinbackup/skinbackup-2017-03-08 13:20.zip'

It looks like when the restore function is getting the path/filename from the select dialog, it is getting an extra slash from the full android path.

scott s.
.
I think the problem is more than that. The file I am pointing to to restore is on my NAS, where I exported the settings file to, nowhere near where the script is trying to get the file. And the file name it us using is something made up...it looks like there is something seriously wrong with the code.
(2017-03-09, 05:58)wags1 Wrote: [ -> ]
(2017-03-09, 04:10)scott967 Wrote: [ -> ]
(2017-03-08, 20:28)wags1 Wrote: [ -> ]Follow-up to post on skin settings import/export problem. I just did an export followed by an import on one of my FireTV boxes. Here are the log entries:

first for the export -
13:19:41.710 T:18446744072362651184 WARNING: FileNFS::OpenForWrite() called with overwriting enabled! - //Aeonmq7 Skinbackup (2017-03-08 13.19.36).zip
It completed the write of the backup file to my NAS - backup file name, as can be seen above, is Aeonmq7 Skinbackup (2017-03-08 13.19.36).zip

I then tried to do an import and point it at the file that I just created. It appears to work but nothing actually is restored and the following error is in the log -
13:20:21.431 T:18446744072373624832 ERROR: Skin Helper Backup --> ERROR in __main__ ! --> [Errno 2] No such file or directory: u'/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/userdata/profiles/Mark/addon_data/script.skin.helper.skinbackup/skinbackup-2017-03-08 13:20.zip'

It looks like when the restore function is getting the path/filename from the select dialog, it is getting an extra slash from the full android path.

scott s.
.
I think the problem is more than that. The file I am pointing to to restore is on my NAS, where I exported the settings file to, nowhere near where the script is trying to get the file. And the file name it us using is something made up...it looks like there is something seriously wrong with the code.

Some additional details regarding this problem. Here are the pertinent excerpts from the debug log. I can poste the link to the full debug log if needed. One additional data point. I am only seeing this problem on my FireTV boxes where I am using a memory card. My FireTV stick works fine so I am guessing that the Skin Helper Service Backup code is not handling things correctly when a memory card is in use.

7014256 DEBUG: CNFSFile::Open - opened volume1/Kodi/Aeonmq7 Skinbackup (2017-03-09 13.23.31).zip
13:30:47.502 T:18446744072377014256 DEBUG: CNFSFile::Close closing file volume1/Kodi/Aeonmq7 Skinbackup (2017-03-09 13.23.31).zip
13:30:47.544 T:18446744072377014256 DEBUG: Skin Helper Backup --> START UNZIP of file /storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/userdata/profiles/Mark/addon_data/script.skin.helper.skinbackup/skinbackup-2017-03-09 13:30.zip to path /storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/userdata/profiles/Mark/addon_data/script.skin.helper.skinbackup/temp/
13:30:47.547 T:18446744072377014256 DEBUG: Skin Helper Backup --> Traceback (most recent call last):
File "/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/addons/script.skin.helper.skinbackup/default.py", line 30, in __init__
getattr(self, action)()
File "/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/addons/script.skin.helper.skinbackup/default.py", line 65, in restore
backuprestore.restore(silent)
File "/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/addons/script.skin.helper.skinbackup/resources/lib/backuprestore.py", line 102, in restore
unzip_fromfile(zip_temp, temp_path)
File "/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/addons/script.skin.helper.skinbackup/resources/lib/utils.py", line 145, in unzip_fromfile
zip_file = zipfile.ZipFile(zip_path, 'r')
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/zipfile.py", line 756, in __init__
IOError: [Errno 2] No such file or directory: u'/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/userdata/profiles/Mark/addon_data/script.skin.helper.skinbackup/skinbackup-2017-03-09 13:30.zip'
13:30:47.547 T:18446744072377014256 ERROR: Skin Helper Backup --> ERROR in __main__ ! --> [Errno 2] No such file or directory: u'/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/userdata/profiles/Mark/addon_data/script.skin.helper.skinbackup/skinbackup-2017-03-09 13:30.zip'
13:30:47.563 T:18446744072377014256 INFO: CPythonInvoker(26, /storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/addons/script.skin.helper.skinbackup/default.py): script successfully run
13:30:47.575 T:18446744072377014256 INFO: Python script stopped
Hi,

I'm currently running krypton on a fire tv box and its taking around 4 minutes to close when i click to quit.

I've narrowed it down to skin helper service as when I disable this addon it closes in around 6 seconds.

I have uploaded a debug log in hope that a bug fix can be pushed.

I am using the latest version and the latest version of aeon nox silvo.

any help would be appreciated.


Edit: it would appear that both helper service and helper widgets are causing this issue as my close down time is excessive with either enabled or both enabled.
(2017-03-09, 04:10)scott967 Wrote: [ -> ]
(2017-03-08, 20:28)wags1 Wrote: [ -> ]Follow-up to post on skin settings import/export problem. I just did an export followed by an import on one of my FireTV boxes. Here are the log entries:

first for the export -
13:19:41.710 T:18446744072362651184 WARNING: FileNFS::OpenForWrite() called with overwriting enabled! - //Aeonmq7 Skinbackup (2017-03-08 13.19.36).zip
It completed the write of the backup file to my NAS - backup file name, as can be seen above, is Aeonmq7 Skinbackup (2017-03-08 13.19.36).zip

I then tried to do an import and point it at the file that I just created. It appears to work but nothing actually is restored and the following error is in the log -
13:20:21.431 T:18446744072373624832 ERROR: Skin Helper Backup --> ERROR in __main__ ! --> [Errno 2] No such file or directory: u'/storage/sdcard1/Android/data/org.xbmc.kodi/files//.kodi/userdata/profiles/Mark/addon_data/script.skin.helper.skinbackup/skinbackup-2017-03-08 13:20.zip'

It looks like when the restore function is getting the path/filename from the select dialog, it is getting an extra slash from the full android path.

scott s.
.

Looks like you were correct. Now that I looked at the full debug log that extra slash seems to be the problem. Looks like the script copies the zip file into local storage before it unzips it.

Hey Marcel - any chance to get a fixed pushed on this? Export is working fine but import is not. Thanks!
(2017-02-23, 23:00)the_bo Wrote: [ -> ]This doesn't seem to be fixed in latest version. Have reset cache. Still only showing last year of set.

Sorry, my mistake. Fixed in next update.
(2017-02-24, 00:36)Blurayx Wrote: [ -> ]I decided to installed jarvis with Titan Version: 3.7.23. As you can see from the screen shot, The various artist fanart works when kodi can not find artist data. This does not happen with krypton or Jarvis:Titan BETA
various artist fanart stop working
Where does this image come from ? There is no such thing as a "various artists fanart image" provided by skinhelper.
Is that image located in your media folders or did you set it in the skin as a global background image perhaps ?


(2017-02-24, 00:36)Blurayx Wrote: [ -> ]I've also notice in the passed few weeks, when I set fanart to Download to my folders it doesn't work.

You mean for music artwork ? Can you can test it again with the latest version ?
(2017-02-24, 13:18)biau Wrote: [ -> ]As you can see, even if the menu entry use node filtering to open only adult tv shows the widgets provides also kids tv show.
Using tags this is what I get

I've just fixed the tags listing for widgets. Available in next update
(2017-02-25, 13:19)LeeH1988 Wrote: [ -> ]HI I am currently trying to make my own custom view on a skin I am modding for myself (my favourite bits from a few different skins), I am trying to work out how I can use the skin helper service to show artwork (i.e clearlogo & discart). I've looked through your view and includes variable xml's for Titan but can't seem to get the same result. I have looked on your skin helper settings on GitHub, and read that you need to enable the extended artwork scraper using Skin.SetBool(SkinHelper.EnableExtendedArt). How can I do this, and how can get the artwork retrieved to show in the view I am trying to make. I am a total novice, but I am picking things up slowly.... Any help would be appreciated. Thanks

All skinhelper features are enabled with skin settings. So, to use a fteaure, you must enable it.
For the artwork lookups you indeed use Skin.SetBool(SkinHelper.EnableExtendedArt)

After that, you can retrieve the artwork (outside any itemlayout/focusedlayout of containers) with for example:
$INFO[Window(Home).Property(SkinHelper.ListItem.Art.ClearLogo)]

You will first have to read the skinning manual to better learn about skin settings and infolabels before you go advanced with implementing something like this.
(2017-02-25, 20:09)woodside Wrote: [ -> ]Seems to have been fixed with latest update and all is well. Thanks.

OK, great! Thanks for reporting back
marcelveldt, I believe that the <onload>SetProperty(SkinHelper.WidgetContainer,510)</onload> (301 in my case) doesn't work for music. i'm using the tracklist and MusicArt from skinhelper and on the widgets it doesn't appear. On tvshows and movies all is working as it should

Thanks and keep up the good work

EDIT-the animated artwork it still on the widgets, just show the first frame
(2017-02-26, 03:27)woodside Wrote: [ -> ]been getting this error sometimes since last update...

There was an error in the code for multi-artist songs, I've just fixed this. Available in next update
(2017-02-27, 21:49)Jonhenman Wrote: [ -> ]Hi, I've tried using next aired episodes as a widget on different skins (currently using titan) but the next aired date seems to default to a random date in 1905. I asked about this in estuary mod forum but apparently the dates will only come up using the 'preset' TV shows widget on that skin. I'd like to have next aired at the top of my TV shows widgets if possible.

Yes, it's a known issue, on Krypton only the dates get all mesed up for the widgets provided by the skinhelper widgets addon.
Will be fixed asap.
(2017-02-28, 14:27)heula Wrote: [ -> ]
(2017-02-23, 14:35)marcelveldt Wrote: [ -> ]
(2017-02-21, 11:46)heula Wrote: [ -> ]In Krypton (kodi-17.0-Krypton) my widgets for Live TV channels and recent recordings are not working. Also last added music albums widget is not working.
No problem in Jarvis.

1. Did you allow the system some time to startup and fill the cache ?
2. Is your PVR guide properly filled with EPG data ?
3. You will need to provide a Kodi logfile if you want me to support with your issue.

Updated to 17.1 RC no change.

Question 1 - Yes
Question 2 - Yes
Question 3 - Kodi log

You will need to re-assign your widgets to your menu.
(2017-03-01, 23:21)Angelinas Wrote: [ -> ]Marcel stil have this isue , after manual or auto search art for artis when Artist have "&" in name that error is block all helper script.
Artist name "Angels & Airwaves" open three different selectdialog (I hit each time button "cancel" when open new dialogselect) and have same error in

Fixed just now, new version will be posted to the repo asap.

(2017-03-01, 23:21)Angelinas Wrote: [ -> ]One more for widgets top250 TVShows

Will also be fixed in next update
(2017-03-02, 07:18)VikkiXavier Wrote: [ -> ]Skin helper seem not able to read Hyperlinks... So in case of most biographies plot outlines are not showing up. Please fix this.

That screenshot is from extendedinfo script, has nothing to do with skinhelper