mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
don't pass None values. Fixes https://github.com/RuudBurger/CouchPotatoServer/issues/3725
This commit is contained in:
parent
2c20a5eddf
commit
22342a4c31
1 changed files with 20 additions and 19 deletions
|
@ -246,11 +246,12 @@ class autoProcessMovie:
|
||||||
logger.postprocess("Deleting failed files and folder %s" % dirName, section)
|
logger.postprocess("Deleting failed files and folder %s" % dirName, section)
|
||||||
rmDir(dirName)
|
rmDir(dirName)
|
||||||
|
|
||||||
if not download_id:
|
if not release_id and not media_id:
|
||||||
logger.error("Could not find a downloaded movie in the database matching %s, exiting!" % inputName,
|
logger.error("Could not find a downloaded movie in the database matching %s, exiting!" % inputName,
|
||||||
section)
|
section)
|
||||||
return [1, "%s: Failed to post-process - Failed download not found in %s" % (section, section) ]
|
return [1, "%s: Failed to post-process - Failed download not found in %s" % (section, section) ]
|
||||||
|
|
||||||
|
if release_id:
|
||||||
logger.postprocess("Setting failed release %s to ignored ..." % (inputName), section)
|
logger.postprocess("Setting failed release %s to ignored ..." % (inputName), section)
|
||||||
|
|
||||||
url = baseURL + "/release.ignore"
|
url = baseURL + "/release.ignore"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue