Merge Nightly (#1783)

* Add Failed to SickGear fork detection (#1772)

* Fix for failed passed as 2,3 from SAB (#1777)

* Fix DB import (#1779)

* Sqlite3.row handling fix
* Fix import error in Python3

* make nzbToWatcher.py executable. #1780

* Update to V12.1.07 (#1782)
This commit is contained in:
Clinton Hall 2020-09-23 16:08:32 +12:00 committed by GitHub
commit b9c3ccb71d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 14 additions and 12 deletions

View file

@ -97,7 +97,7 @@ class Authentication:
req_param['_sid'] = self._sid
if method is 'get':
if method == 'get':
url = ('%s%s' % (self._base_url, api_path)) + '?api=' + api_name
response = requests.get(url, req_param)
@ -106,7 +106,7 @@ class Authentication:
else:
return response
elif method is 'post':
elif method == 'post':
url = ('%s%s' % (self._base_url, api_path)) + '?api=' + api_name
response = requests.post(url, req_param)
@ -121,4 +121,4 @@ class Authentication:
@property
def base_url(self):
return self._base_url
return self._base_url