mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
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:
parent
f92f8f3952
commit
b9c3ccb71d
8 changed files with 14 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue