pass through remote_path for nzbDrone. fixes #393

This commit is contained in:
clinton-hall 2014-05-18 16:08:29 +09:30
commit 62ea41e7b2

View file

@ -162,7 +162,10 @@ class autoProcessTV:
url1 = "%s%s:%s%s/api/missing" % (protocol, host, port, web_root)
headers = {"X-Api-Key": apikey}
params = {'sortKey': 'series.title', 'page': 1, 'pageSize': 1, 'sortDir': 'asc'}
data = json.dumps({"name": "DownloadedEpisodesScan", "path": dirName})
if remote_path:
data = json.dumps({"name": "DownloadedEpisodesScan", "path": os.path.join(remote_path, os.path.basename(dirName))})
else:
data = json.dumps({"name": "DownloadedEpisodesScan", "path": dirName})
logger.debug("Opening URL: %s" % (url),section)