mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Fix incompatible types in assignment
This commit is contained in:
parent
054ac04474
commit
baef434332
2 changed files with 2 additions and 4 deletions
|
@ -158,12 +158,11 @@ def process(
|
|||
else:
|
||||
logger.debug(f'path: {dir_name}', section)
|
||||
data = {'name': 'Rename', 'path': dir_name}
|
||||
data = json.dumps(data)
|
||||
try:
|
||||
logger.debug(f'Opening URL: {url} with data: {data}', section)
|
||||
r = requests.post(
|
||||
url,
|
||||
data=data,
|
||||
data=json.dumps(data),
|
||||
headers=headers,
|
||||
stream=True,
|
||||
verify=False,
|
||||
|
|
|
@ -429,7 +429,6 @@ def process(
|
|||
}
|
||||
if not download_id:
|
||||
data.pop('downloadClientId')
|
||||
data = json.dumps(data)
|
||||
url = core.utils.common.create_url(scheme, host, port, route)
|
||||
try:
|
||||
if section == 'SickBeard':
|
||||
|
@ -509,7 +508,7 @@ def process(
|
|||
logger.debug(f'Opening URL: {url} with data: {data}', section)
|
||||
r = requests.post(
|
||||
url,
|
||||
data=data,
|
||||
data=json.dumps(data),
|
||||
headers=headers,
|
||||
stream=True,
|
||||
verify=False,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue