Browse Source

Merge branch 'hotfix/0.20.18'

tags/release_0.20.18^0 release_0.20.18
JackDandy 5 years ago
parent
commit
67cbe5bf22
  1. 7
      CHANGES.md
  2. BIN
      lib/rarfile/UnRAR.exe
  3. 6
      sickbeard/clients/download_station.py

7
CHANGES.md

@ -1,4 +1,9 @@
### 0.20.17 (2019-12-25 01:40:00 UTC)
### 0.20.18 (2019-12-30 12:15:00 UTC)
* Update UnRar for Windows 5.71 to 5.80 x64
### 0.20.17 (2019-12-25 01:40:00 UTC)
* Fix Synology DownloadStation test dev mode

BIN
lib/rarfile/UnRAR.exe

Binary file not shown.

6
sickbeard/clients/download_station.py

@ -37,6 +37,10 @@ class DownloadStationAPI(GenericClient):
self.url = self.url_base + 'DownloadStation/task.cgi'
self._errmsg = None
self._testmode = False
self._auth_version = None
self._auth_path = None
self._task_version = None
self._task_path = None
common_errors = {
-1: 'Could not get a response', 100: 'Unknown error', 101: 'Invalid parameter',
@ -112,6 +116,7 @@ class DownloadStationAPI(GenericClient):
tasks = self._client_request(('list', 'getinfo')[getinfo], t_id=rid,
t_params=dict(additional='detail,file,transfer'))['data']['tasks']
else:
# noinspection PyUnresolvedReferences
tasks = (filter(lambda d: d.get('id') == rid, self._testdata), self._testdata)[not rid]
result += tasks and (isinstance(tasks, list) and tasks or (isinstance(tasks, dict) and [tasks])) \
or ([], [{'error': True, 'id': rid}])[err]
@ -274,6 +279,7 @@ class DownloadStationAPI(GenericClient):
:rtype: string or bool
"""
if self._testmode:
# noinspection PyUnresolvedReferences
return self._testid
tasks = self._tinf()

Loading…
Cancel
Save