mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
pass through remote_path for nzbDrone. fixes #393
This commit is contained in:
parent
f850a37020
commit
62ea41e7b2
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue