added option no_extract_failed. Fixes #1129

This commit is contained in:
clinton-hall 2016-11-08 20:14:25 +10:30
parent dcd99da19e
commit c94731bcbb
11 changed files with 47 additions and 8 deletions

View file

@ -51,8 +51,12 @@ class autoProcessMusic(object):
ssl = int(cfg.get("ssl", 0))
web_root = cfg.get("web_root", "")
remote_path = int(cfg.get("remote_path", 0))
extract = int(cfg.get("extract", 0))
protocol = "https://" if ssl else "http://"
status = int(status)
if status == 1 and core.NOEXTRACTFAILED:
extract = 0
else:
extract = int(cfg.get("extract", 0))
url = "{0}{1}:{2}{3}/api".format(protocol, host, port, web_root)
if not server_responding(url):