mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 11:38:30 -07:00
HeadPhones api does not return json
This commit is contained in:
parent
0aa0696a02
commit
65a9c86ae0
1 changed files with 2 additions and 2 deletions
|
@ -89,9 +89,9 @@ def process(dirName, nzbName=None, status=0):
|
||||||
Logger.error("Unable to open URL: %s", str(e))
|
Logger.error("Unable to open URL: %s", str(e))
|
||||||
return 1 # failure
|
return 1 # failure
|
||||||
|
|
||||||
result = json.load(urlObj)
|
result = urlObj.readlines()
|
||||||
Logger.info("HeaPhones returned %s", result)
|
Logger.info("HeaPhones returned %s", result)
|
||||||
if result == "OK":
|
if result[0] == "OK":
|
||||||
Logger.info("%s started on HeadPhones for %s", command, nzbName)
|
Logger.info("%s started on HeadPhones for %s", command, nzbName)
|
||||||
else:
|
else:
|
||||||
Logger.error("%s has NOT started on HeadPhones for %s. Exiting", command, nzbName)
|
Logger.error("%s has NOT started on HeadPhones for %s. Exiting", command, nzbName)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue