zipfile script
#1
Hi Community,

What Am I missing here please

Code:
import xbmc
import zipfile

targetzip = xbmc.translatePath('special://home/userdata/addon_data/plugin.program.tester/test.zip')
extractto = xbmc.translatePath('special://home/userdata/addon_data/plugin.program.tester/')

zip = ZipFile(targetzip)
zip.extractall(extractto)

thanks for the help in advance

Huh
Reply
#2
it might help to check the log for errors and post them as well ;-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
thanks Ronie,

I went through the log, and got It Sorted out.

As regarding

Code:
Notification(header,message[,time,image])

I cant seen to get the Red Cross icon to change to a green tick. I have saved a tick image.png and linked to it in the code but it refuses to change.

does It have to be a jpg or will it only accept built in icons, if so, how can I reference the image to a tick instead of a cross

Thanks

simontfs
Reply
#4
You need to use a full path to your image.
Anyway, Kodi provides at least 3 ways to display a pop-up message. One of them is a xbmcgui.Dialog methods:
Code:
xbmcgui.Dialog().notification(header, message, icon, duration)
And here a custom icon does work.
Reply

Logout Mark Read Team Forum Stats Members Help
zipfile script0