mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
test fix for #410
This commit is contained in:
parent
df4001c9e4
commit
79e4e2d740
1 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,10 @@ class autoProcessComics:
|
||||||
|
|
||||||
replaceExtensions(dirName)
|
replaceExtensions(dirName)
|
||||||
|
|
||||||
|
clean_name, ext = os.path.splitext(inputName)
|
||||||
|
if len(ext) == 4: # we assume this was a standrard extension.
|
||||||
|
inputName = clean_name
|
||||||
|
|
||||||
params = {}
|
params = {}
|
||||||
params['nzb_folder'] = dirName
|
params['nzb_folder'] = dirName
|
||||||
if remote_path:
|
if remote_path:
|
||||||
|
@ -60,7 +64,7 @@ class autoProcessComics:
|
||||||
|
|
||||||
for line in r.iter_lines():
|
for line in r.iter_lines():
|
||||||
if line: logger.postprocess("%s" % (line), section)
|
if line: logger.postprocess("%s" % (line), section)
|
||||||
if "Post Processing SUCCESSFULL!" in line: success = True
|
if "Post Processing SUCCESSFUL!" in line: success = True
|
||||||
|
|
||||||
if not r.status_code in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
|
if not r.status_code in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
|
||||||
logger.error("Server returned status %s" % (str(r.status_code)), section)
|
logger.error("Server returned status %s" % (str(r.status_code)), section)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue