(2015-09-11, 01:51)marcelveldt Wrote: Both requests are now added to the code, available on Git.
I didn't really test it so please do so ;-)
Thanks Marcel
Well, made some quick tests. Don't know if that's me or some tunes in the script but I get none of the new backup options to work.
I tried this with import :
Code:
<onclick>RunScript(script.skin.helper.service,action=restore,silent=extras\ColorShemes\KOver_ColorScheme_Default.zip)</onclick>
Returns this in log :
Code:
09:32:01 T:7528 NOTICE: Skin Helper Service --> ERROR while restoring backup ! --> [Errno 2] No such file or directory: u'C:\\Users\\jerome.MTLSA\\AppData\\Roaming\\Kodi\\cache\\KOVER_COLORSCHEME_DEFAULT.ZIP'
DialogBusy.xml is stuck there and the log stops here
I tried export the same way :
Code:
<onclick condition="StringCompare(Container(9400).ListItem.Property(NumTemp),MODEL1)">RunScript(script.skin.helper.service, action=backup, filter=MODEL1, silent=C:\test\test.zip)</onclick>
Returns this
Code:
09:56:41 T:8332 ERROR: XFILE::CDirectory::GetDirectory - Error getting zip://C%3a%5cTEST%5cTEST.ZIP/
09:56:41 T:8332 NOTICE: Skin Helper Service --> ERROR while creating backup ! --> [Errno 22] invalid mode ('wb') or filename: u'C:\\Users\\Jayz2K\\AppData\\Roaming\\Kodi\\cache\\C:\\TEST\\TEST.ZIP.zip'
09:56:41 T:8332 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: [Errno 22] invalid mode ('wb') or filename: u'C:\\Users\\Jayz2K\\AppData\\Roaming\\Kodi\\cache\\C:\\TEST\\TEST.ZIP.zip'
Traceback (most recent call last):
File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\default.py", line 132, in <module>
Main()
File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\default.py", line 119, in __init__
backup.backup(filter,silent,promptfilename.lower())
File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\resources\lib\BackupRestore.py", line 143, in backup
zip(temp_path,zip_temp)
File "C:\Users\Jayz2K\AppData\Roaming\Kodi\addons\script.skin.helper.service-master\resources\lib\BackupRestore.py", line 267, in zip
zf = zipfile.ZipFile("%s.zip" % (dst), "w", zipfile.ZIP_DEFLATED)
File "C:\Program Files (x86)\Kodi\system\python\Lib\zipfile.py", line 756, in __init__
self.fp = open(file, modeDict[mode])
IOError: [Errno 22] invalid mode ('wb') or filename: u'C:\\Users\\Jayz2K\\AppData\\Roaming\\Kodi\\cache\\C:\\TEST\\TEST.ZIP.zip'
-->End of Python script error report<--
And for export name entry prompt, It backups the normal way without the DialogKeyboard.xml opening for prompt.
I also activated the DebugInfo and I don't see it opening during all the process.
Here's the code :
Code:
<onclick condition="StringCompare(Container(9400).ListItem.Property(NumTemp),MODEL1)">RunScript(script.skin.helper.service, action=backup, filter=MODEL1, promptfilename=true)</onclick>
Hope that helps