mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Fixed bugs in autoProcessMusic and autoProcessMovie
This commit is contained in:
parent
c883bab8ff
commit
eeee92c830
2 changed files with 10 additions and 1 deletions
|
@ -172,6 +172,10 @@ class autoProcessMovie:
|
||||||
|
|
||||||
media_id, download_id, release_id, release_status = self.find_media_id(baseURL, download_id, dirName, nzbName) # get the CPS database movie id for this movie.
|
media_id, download_id, release_id, release_status = self.find_media_id(baseURL, download_id, dirName, nzbName) # get the CPS database movie id for this movie.
|
||||||
|
|
||||||
|
if release_status is None:
|
||||||
|
logger.error("Could not find a current status for %s on CouchPotatoServer", nzbName)
|
||||||
|
return 1
|
||||||
|
|
||||||
# failed to get a download id
|
# failed to get a download id
|
||||||
if release_status != "snatched":
|
if release_status != "snatched":
|
||||||
logger.postprocess("%s has is marked with a status of [%s] by CouchPotatoServer, skipping ...", nzbName, release_status.upper())
|
logger.postprocess("%s has is marked with a status of [%s] by CouchPotatoServer, skipping ...", nzbName, release_status.upper())
|
||||||
|
|
|
@ -88,9 +88,14 @@ class autoProcessMusic:
|
||||||
url = baseURL
|
url = baseURL
|
||||||
|
|
||||||
release_status = self.get_status(url, apikey, dirName)
|
release_status = self.get_status(url, apikey, dirName)
|
||||||
|
|
||||||
|
if release_status is None:
|
||||||
|
logger.error("Could not find a current status for %s on HeadPhones", nzbName)
|
||||||
|
return 1
|
||||||
|
|
||||||
if release_status != "Unprocessed":
|
if release_status != "Unprocessed":
|
||||||
logger.error("%s is marked with a status of %s on HeadPhones, skipping ...", nzbName, release_status)
|
logger.error("%s is marked with a status of %s on HeadPhones, skipping ...", nzbName, release_status)
|
||||||
return 1
|
return 0
|
||||||
|
|
||||||
logger.debug("Opening URL: %s", url)
|
logger.debug("Opening URL: %s", url)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue