mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
don't check status for manage.scan. Fixes #653
This commit is contained in:
parent
79672b575f
commit
90734d3fab
1 changed files with 8 additions and 4 deletions
|
@ -211,10 +211,6 @@ class autoProcessMovie:
|
||||||
video2 = "%s.cp(%s)%s" % (videoName, imdbid, videoExt)
|
video2 = "%s.cp(%s)%s" % (videoName, imdbid, videoExt)
|
||||||
logger.debug('Renaming: %s to: %s' % (video, video2))
|
logger.debug('Renaming: %s to: %s' % (video, video2))
|
||||||
os.rename(video, video2)
|
os.rename(video, video2)
|
||||||
if method == "manage":
|
|
||||||
command = "/manage.update"
|
|
||||||
else:
|
|
||||||
command = "/renamer.scan"
|
|
||||||
|
|
||||||
params = {}
|
params = {}
|
||||||
if download_id:
|
if download_id:
|
||||||
|
@ -225,6 +221,12 @@ class autoProcessMovie:
|
||||||
if remote_path:
|
if remote_path:
|
||||||
params['media_folder'] = remoteDir(dirName)
|
params['media_folder'] = remoteDir(dirName)
|
||||||
|
|
||||||
|
if method == "manage":
|
||||||
|
command = "/manage.update"
|
||||||
|
params = {}
|
||||||
|
else:
|
||||||
|
command = "/renamer.scan"
|
||||||
|
|
||||||
url = "%s%s" % (baseURL, command)
|
url = "%s%s" % (baseURL, command)
|
||||||
|
|
||||||
logger.debug("Opening URL: %s with PARAMS: %s" % (url, params), section)
|
logger.debug("Opening URL: %s with PARAMS: %s" % (url, params), section)
|
||||||
|
@ -243,6 +245,8 @@ class autoProcessMovie:
|
||||||
return [1, "%s: Failed to post-process - Server returned status %s" % (section, str(r.status_code)) ]
|
return [1, "%s: Failed to post-process - Server returned status %s" % (section, str(r.status_code)) ]
|
||||||
elif result['success']:
|
elif result['success']:
|
||||||
logger.postprocess("SUCCESS: Finished %s scan for folder %s" % (method, dirName), section)
|
logger.postprocess("SUCCESS: Finished %s scan for folder %s" % (method, dirName), section)
|
||||||
|
if method == "manage":
|
||||||
|
return [0, "%s: Successfully post-processed %s" % (section, inputName) ]
|
||||||
else:
|
else:
|
||||||
logger.error("FAILED: %s scan was unable to finish for folder %s. exiting!" % (method, dirName),
|
logger.error("FAILED: %s scan was unable to finish for folder %s. exiting!" % (method, dirName),
|
||||||
section)
|
section)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue