mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
Merge branch 'clinton-hall/dev'
Conflicts: autoProcess/nzbToMediaEnv.py
This commit is contained in:
commit
9969eaa47a
9 changed files with 119 additions and 130 deletions
|
@ -130,12 +130,11 @@ def processEpisode(dirName, nzbName=None, failed=False, clientAgent=None, inputC
|
|||
# auto-detect fork type
|
||||
fork, params = autoFork()
|
||||
|
||||
if (not fork in SICKBEARD_TORRENT) or (clientAgent in ['nzbget','sabnzbd'] and not nzbExtractionBy == "Destination"):
|
||||
if nzbName != "Manual Run" and (not fork in SICKBEARD_TORRENT or (clientAgent in ['nzbget','sabnzbd'] and not nzbExtractionBy == "Destination")):
|
||||
process_all_exceptions(nzbName.lower(), dirName)
|
||||
nzbName, dirName = converto_to_ascii(nzbName, dirName)
|
||||
|
||||
if nzbName != "Manual Run" and not fork in SICKBEARD_TORRENT:
|
||||
# Now check if movie files exist in destination:
|
||||
# Now check if movie files exist in destination. Eventually extraction may be done here if nzbExtractionBy == TorrentToMedia
|
||||
video = int(0)
|
||||
for dirpath, dirnames, filenames in os.walk(dirName):
|
||||
for file in filenames:
|
||||
|
@ -176,6 +175,12 @@ def processEpisode(dirName, nzbName=None, failed=False, clientAgent=None, inputC
|
|||
else:
|
||||
del params[param]
|
||||
|
||||
if param is "process":
|
||||
params["process"] = None
|
||||
|
||||
if param is "process_method":
|
||||
params["process_method"] = None
|
||||
|
||||
if nzbName != None:
|
||||
params['nzbName'] = nzbName
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue