diff --git a/CHANGES.md b/CHANGES.md index b650a522..4427e1e0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -29,6 +29,12 @@ +### 0.16.17 (2018-07-01 01:00:00 UTC) + +* Update UnRar for Windows 5.50 to 5.60 +* Fix API save show paused state and API exception raised when no indexer results + + ### 0.16.16 (2018-06-09 12:13:00 UTC) * Fix metadata mediabrowser when no actors diff --git a/lib/rarfile/UnRAR.exe b/lib/rarfile/UnRAR.exe index 9c5a18eb..30d06668 100644 Binary files a/lib/rarfile/UnRAR.exe and b/lib/rarfile/UnRAR.exe differ diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py index 2b0a479d..89a8bc78 100644 --- a/sickbeard/webapi.py +++ b/sickbeard/webapi.py @@ -2414,14 +2414,12 @@ class CMD_SickGearSearchIndexers(ApiCall): lINDEXER_API_PARMS['custom_ui'] = classes.AllShowsNoFilterListUI t = sickbeard.indexerApi(i).indexer(**lINDEXER_API_PARMS) - apiData = None - try: apiData = t[str(self.name).encode(), False] except (StandardError, Exception): - pass + continue - for curSeries in apiData: + for curSeries in (apiData or []): s = {"indexerid": int(curSeries['id']), "name": curSeries['seriesname'], "first_aired": curSeries['firstaired'], @@ -3659,10 +3657,12 @@ class CMD_SickGearShowPause(ApiCall): return _responds(RESULT_FAILURE, msg="Show not found") if self.pause: - showObj.paused = 1 + showObj.paused = True + showObj.saveToDB() return _responds(RESULT_SUCCESS, msg=str(showObj.name) + " has been paused") else: - showObj.paused = 0 + showObj.paused = False + showObj.saveToDB() return _responds(RESULT_SUCCESS, msg=str(showObj.name) + " has been unpaused") return _responds(RESULT_FAILURE, msg=str(showObj.name) + " was unable to be paused")