mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
improve passing of download_id
This commit is contained in:
parent
ded99d40f1
commit
3b076a5cfa
15 changed files with 93 additions and 42 deletions
|
@ -170,7 +170,13 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
|
||||
if inputCategory == cpsCategory:
|
||||
Logger.info("MAIN: Calling CouchPotatoServer to post-process: %s", inputName)
|
||||
result = autoProcessMovie.process(outputDestination, inputName, status, clientAgent, inputHash)
|
||||
if clientAgent == 'utorrent' and inputHash != '':
|
||||
download_id = 'uTorrent_' + inputHash
|
||||
elif clientAgent == 'transmission' and inputHash != '':
|
||||
download_id = 'Transmission_' + inputHash
|
||||
else:
|
||||
download_id = inputHash
|
||||
result = autoProcessMovie.process(outputDestination, inputName, status, clientAgent, download_id)
|
||||
elif inputCategory == sbCategory:
|
||||
Logger.info("MAIN: Calling Sick-Beard to post-process: %s", inputName)
|
||||
result = autoProcessTV.processEpisode(outputDestination, inputName, status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue