Skip to content

Commit 4e6b554

Browse files
committed
Actually fix rescan and rehash for real.
There were a few issues, most of them my fault. This is what happens when Python exists stupidly yet people insist on using it
1 parent e8cb57e commit 4e6b554

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/nakamoritools/nakamoritools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def mark_watch_status(params):
250250
if file_id != 0:
251251
sync_offset(file_id, 0)
252252

253-
if addon.getSetting('log_spam') == 'true':
253+
if addon.getSetting('spamLog') == 'true':
254254
xbmc.log('file_d: ' + str(file_id), xbmc.LOGWARNING)
255255
xbmc.log('epid: ' + str(episode_id), xbmc.LOGWARNING)
256256
xbmc.log('anime_id: ' + str(anime_id), xbmc.LOGWARNING)
@@ -466,6 +466,8 @@ def get_json(url_in, direct=False):
466466
cache.add_cache(url_in, json.dumps(body))
467467
else:
468468
body = get_data(url_in, None, "json")
469+
if str(body.get('code', '0')) != '200':
470+
raise HTTPError(url_in, body.get('code', '0'), body.get('message', ''), None, None)
469471
except HTTPError as err:
470472
body = err.code
471473
return body

0 commit comments

Comments
 (0)