Skip to content

Commit 85f8979

Browse files
committed
update/fix demjson
1 parent 1bbee2e commit 85f8979

File tree

9 files changed

+24
-19
lines changed

9 files changed

+24
-19
lines changed

addon.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
</addon>
2121
<addon id="plugin.video.amazon"
2222
name="Amazon"
23-
version="1.4.6"
23+
version="1.4.7"
2424
provider-name="Sandmann79 + BlueCop + Romans I XVI">
2525
<requires>
2626
<import addon="xbmc.python" version="2.1.0"/>
2727
<import addon="script.module.beautifulsoup" version="3.2.1"/>
28-
<import addon="script.module.demjson" version="2.2.2"/>
28+
<import addon="script.module.demjson" version="2.2.3"/>
2929
<import addon="script.module.mechanize" version="0.2.6"/>
3030
<import addon="script.module.amazon.database" version="0.0.9"/>
3131
</requires>
@@ -76,7 +76,7 @@
7676
</addon>
7777
<addon id="script.module.demjson"
7878
name="demjson"
79-
version="2.2.2"
79+
version="2.2.3"
8080
provider-name="deron.meranda.us">
8181
<requires>
8282
<import addon="xbmc.python" version="2.1.0"/>

addon.xml.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a2cf9e06a5887b8a2c11397aa914ccf3
1+
0a133649f6dd5d58c6ba424a92ec61bd

plugin.video.amazon/addon.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<addon id="plugin.video.amazon"
33
name="Amazon"
4-
version="1.4.6"
4+
version="1.4.7"
55
provider-name="Sandmann79 + BlueCop + Romans I XVI">
66
<requires>
77
<import addon="xbmc.python" version="2.1.0"/>
88
<import addon="script.module.beautifulsoup" version="3.2.1"/>
9-
<import addon="script.module.demjson" version="2.2.2"/>
9+
<import addon="script.module.demjson" version="2.2.3"/>
1010
<import addon="script.module.mechanize" version="0.2.6"/>
1111
<import addon="script.module.amazon.database" version="0.0.9"/>
1212
</requires>
689 KB
Binary file not shown.

plugin.video.amazon/resources/lib/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
import xbmc
1717
import urlparse
1818
import base64
19-
import demjson
2019
import binascii
2120
import hmac
2221
import time
2322
import hashlib
23+
try: from demjson import demjson
24+
except: import demjson
2425

2526
addon = xbmcaddon.Addon()
2627
__plugin__ = addon.getAddonInfo('name')

script.module.demjson/addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<addon id="script.module.demjson"
33
name="demjson"
4-
version="2.2.2"
4+
version="2.2.3"
55
provider-name="deron.meranda.us">
66
<requires>
77
<import addon="xbmc.python" version="2.1.0"/>

script.module.demjson/lib/demjson.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
__author__ = "Deron Meranda <http://deron.meranda.us/>"
121121
__homepage__ = "http://deron.meranda.us/python/demjson/"
122122

123-
__date__ = "2014-06-25"
124-
__version__ = "2.2.2"
125-
__version_info__ = ( 2, 2, 2 ) # Will be converted into a namedtuple below
123+
__date__ = "2014-11-12"
124+
__version__ = "2.2.3"
125+
__version_info__ = ( 2, 2, 3 ) # Will be converted into a namedtuple below
126126

127127
__credits__ = """Copyright (c) 2006-2014 Deron E. Meranda <http://deron.meranda.us/>
128128
@@ -6000,7 +6000,7 @@ def _lintcheck( self, filename, output_filename,
60006000
fp.close()
60016001
except IOError, err:
60026002
self.stderr.write('%s: %s\n' % (pfx, str(err)) )
6003-
return False
6003+
return self.SUCCESS_FAIL
60046004
if verbose:
60056005
verbose_fp = self.stdout
60066006

@@ -6255,13 +6255,17 @@ def main( self, argv ):
62556255

62566256
for fn in args:
62576257
try:
6258-
if not self._lintcheck( fn, output_filename=output_filename,
6259-
verbose=verbose,
6260-
reformat=reformat,
6261-
show_stats=show_stats,
6262-
input_encoding=input_encoding,
6263-
output_encoding=output_encoding,
6264-
jsonopts=jsonopts ):
6258+
rc = self._lintcheck( fn, output_filename=output_filename,
6259+
verbose=verbose,
6260+
reformat=reformat,
6261+
show_stats=show_stats,
6262+
input_encoding=input_encoding,
6263+
output_encoding=output_encoding,
6264+
jsonopts=jsonopts )
6265+
if rc != self.SUCCESS_OK:
6266+
# Warnings or errors should result in failure. If
6267+
# checking multiple files, do not change a
6268+
# previous error back to ok.
62656269
success = False
62666270
except KeyboardInterrupt, err:
62676271
sys.stderr.write("\njsonlint interrupted!\n")
-53.7 KB
Binary file not shown.
53.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)