mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fix flake8 E126 continuation line over-indented for hanging indent
This commit is contained in:
parent
90090d7e02
commit
87e813f062
1 changed files with 6 additions and 3 deletions
|
@ -42,7 +42,8 @@ def auto_fork(section, input_category):
|
||||||
logger.info('Attempting to verify {category} fork'.format
|
logger.info('Attempting to verify {category} fork'.format
|
||||||
(category=input_category))
|
(category=input_category))
|
||||||
url = '{protocol}{host}:{port}{root}/api/rootfolder'.format(
|
url = '{protocol}{host}:{port}{root}/api/rootfolder'.format(
|
||||||
protocol=protocol, host=host, port=port, root=web_root)
|
protocol=protocol, host=host, port=port, root=web_root
|
||||||
|
)
|
||||||
headers = {'X-Api-Key': apikey}
|
headers = {'X-Api-Key': apikey}
|
||||||
try:
|
try:
|
||||||
r = requests.get(url, headers=headers, stream=True, verify=False)
|
r = requests.get(url, headers=headers, stream=True, verify=False)
|
||||||
|
@ -65,10 +66,12 @@ def auto_fork(section, input_category):
|
||||||
|
|
||||||
if apikey:
|
if apikey:
|
||||||
url = '{protocol}{host}:{port}{root}/api/{apikey}/?cmd=help&subject=postprocess'.format(
|
url = '{protocol}{host}:{port}{root}/api/{apikey}/?cmd=help&subject=postprocess'.format(
|
||||||
protocol=protocol, host=host, port=port, root=web_root, apikey=apikey)
|
protocol=protocol, host=host, port=port, root=web_root, apikey=apikey
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
url = '{protocol}{host}:{port}{root}/home/postprocess/'.format(
|
url = '{protocol}{host}:{port}{root}/home/postprocess/'.format(
|
||||||
protocol=protocol, host=host, port=port, root=web_root)
|
protocol=protocol, host=host, port=port, root=web_root
|
||||||
|
)
|
||||||
|
|
||||||
# attempting to auto-detect fork
|
# attempting to auto-detect fork
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue