mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
fixed "and" in condition checks.
This commit is contained in:
parent
030b5575d7
commit
270a5df2e0
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def get_status(myOpener, baseURL, movie_id, clientAgent, download_id):
|
|||
clients = [item for item in clientAgentlist if item.lower() == clientAgent.lower()]
|
||||
clientAgent = clients[0]
|
||||
if len(clients) == 1: # ok.. a unique entry for download_id and clientAgent ;)
|
||||
release_status = [item["status"]["identifier"] for item in result["movie"]["releases"] if "download_id" in item["info"] item["info"]["download_id"] == download_id and item["info"]["download_downloader"] == clientAgent][0]
|
||||
release_status = [item["status"]["identifier"] for item in result["movie"]["releases"] if "download_id" in item["info"] and item["info"]["download_id"] == download_id and item["info"]["download_downloader"] == clientAgent][0]
|
||||
Logger.debug("Found a single release for download_id: %s and clientAgent: %s. Release status is: %s", download_id, clientAgent, release_status)
|
||||
else: # doesn't matter. only really used as secondary confirmation of movie status change. Let's continue.
|
||||
Logger.debug("Found several releases for download_id: %s and clientAgent: %s. Cannot determine the release status", download_id, clientAgent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue