added check for key in vfs.py - Thanks Martijn!

This commit is contained in:
robweber 2012-07-26 12:48:14 -05:00
parent 9ac69e10db
commit 934f9b63e8
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.xbmcbackup" <addon id="script.xbmcbackup"
name="XBMC Backup" version="0.1.0" provider-name="robweber"> name="XBMC Backup" version="0.1.1" provider-name="robweber">
<requires> <requires>
<import addon="xbmc.python" version="2.0"/> <import addon="xbmc.python" version="2.0"/>
</requires> </requires>

View File

@ -37,3 +37,7 @@ added enable/disable logging toggle in settings
[b]Version 0.1.0[/b] [b]Version 0.1.0[/b]
removed transparency from icon.png removed transparency from icon.png
[b]Version 0.1.1[/b]
added check for key in vfs.py - Thanks Martijn!

View File

@ -101,7 +101,7 @@ def listdir(path, extra_metadata=False):
jsonobject = json.loads(json_response) jsonobject = json.loads(json_response)
if jsonobject['result']['files']: if jsonobject.has_key('result') and jsonobject['result']['files']:
for item in jsonobject['result']['files']: for item in jsonobject['result']['files']: