mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 14:13:33 -07:00
Fix import error in Python3
This commit is contained in:
parent
97397379ce
commit
734e7a241e
1 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,7 @@ class Authentication:
|
||||||
|
|
||||||
req_param['_sid'] = self._sid
|
req_param['_sid'] = self._sid
|
||||||
|
|
||||||
if method is 'get':
|
if method == 'get':
|
||||||
url = ('%s%s' % (self._base_url, api_path)) + '?api=' + api_name
|
url = ('%s%s' % (self._base_url, api_path)) + '?api=' + api_name
|
||||||
response = requests.get(url, req_param)
|
response = requests.get(url, req_param)
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ class Authentication:
|
||||||
else:
|
else:
|
||||||
return response
|
return response
|
||||||
|
|
||||||
elif method is 'post':
|
elif method == 'post':
|
||||||
url = ('%s%s' % (self._base_url, api_path)) + '?api=' + api_name
|
url = ('%s%s' % (self._base_url, api_path)) + '?api=' + api_name
|
||||||
response = requests.post(url, req_param)
|
response = requests.post(url, req_param)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue