mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
remove duplicate parameters.
This commit is contained in:
parent
9d3f039a64
commit
88b101856e
4 changed files with 3 additions and 13 deletions
|
@ -19,10 +19,6 @@ def external_script(outputDestination, torrentName, torrentLabel, settings):
|
|||
nzbtomedia.USER_SCRIPT = settings["user_script_path"]
|
||||
except:
|
||||
nzbtomedia.USER_SCRIPT = None
|
||||
try:
|
||||
nzbtomedia.USER_SCRIPT_VIDEO_CHECK = int(settings["video_corruption_check"])
|
||||
except:
|
||||
nzbtomedia.USER_SCRIPT_VIDEO_CHECK = 0
|
||||
try:
|
||||
nzbtomedia.USER_SCRIPT_PARAM = settings["user_script_param"]
|
||||
if isinstance(nzbtomedia.USER_SCRIPT_PARAM, str): nzbtomedia.USER_SCRIPT_PARAM = nzbtomedia.USER_SCRIPT_PARAM.split(',')
|
||||
|
@ -42,7 +38,7 @@ def external_script(outputDestination, torrentName, torrentLabel, settings):
|
|||
except:
|
||||
nzbtomedia.USER_SCRIPT_RUNONCE = 1
|
||||
|
||||
if nzbtomedia.USER_SCRIPT_VIDEO_CHECK:
|
||||
if nzbtomedia.CHECK_MEDIA:
|
||||
for video in listMediaFiles(outputDestination, media=True, audio=False, meta=False, archives=False):
|
||||
if transcoder.isVideoGood(video, 0):
|
||||
import_subs(video)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue