mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
fix memory issues.
This commit is contained in:
parent
d12be2fa82
commit
d1e4b062e6
1 changed files with 9 additions and 5 deletions
|
@ -468,26 +468,30 @@ def initialize(section=None):
|
||||||
ACODEC3_ALLOW = transcode_defaults[DEFAULTS]['ACODEC3_ALLOW']
|
ACODEC3_ALLOW = transcode_defaults[DEFAULTS]['ACODEC3_ALLOW']
|
||||||
ABITRATE3 = transcode_defaults[DEFAULTS]['ABITRATE3']
|
ABITRATE3 = transcode_defaults[DEFAULTS]['ABITRATE3']
|
||||||
SCODEC = transcode_defaults[DEFAULTS]['SCODEC']
|
SCODEC = transcode_defaults[DEFAULTS]['SCODEC']
|
||||||
transcode_defaults = {} # clear memory
|
transcode_defaults = {} # clear memory
|
||||||
|
|
||||||
if VEXTENSION in allow_subs:
|
if VEXTENSION in allow_subs:
|
||||||
ALLOWSUBS = 1
|
ALLOWSUBS = 1
|
||||||
if not VCODEC_ALLOW and VCODEC: VCODEC_ALLOW.extend([VCODEC])
|
if not VCODEC_ALLOW and VCODEC: VCODEC_ALLOW.extend([VCODEC])
|
||||||
for codec in VCODEC_ALLOW:
|
for codec in VCODEC_ALLOW:
|
||||||
if codec in codec_alias:
|
if codec in codec_alias:
|
||||||
VCODEC_ALLOW.extend(codec_alias[codec])
|
extra = [ item for item in codec_alias[codec] if item not in VCODEC_ALLOW ]
|
||||||
|
VCODEC_ALLOW.extend(extra)
|
||||||
if not ACODEC_ALLOW and ACODEC: ACODEC_ALLOW.extend([ACODEC])
|
if not ACODEC_ALLOW and ACODEC: ACODEC_ALLOW.extend([ACODEC])
|
||||||
for codec in ACODEC_ALLOW:
|
for codec in ACODEC_ALLOW:
|
||||||
if codec in codec_alias:
|
if codec in codec_alias:
|
||||||
ACODEC_ALLOW.extend(codec_alias[codec])
|
extra = [ item for item in codec_alias[codec] if item not in ACODEC_ALLOW ]
|
||||||
|
ACODEC_ALLOW.extend(extra)
|
||||||
if not ACODEC2_ALLOW and ACODEC2: ACODEC2_ALLOW.extend([ACODEC2])
|
if not ACODEC2_ALLOW and ACODEC2: ACODEC2_ALLOW.extend([ACODEC2])
|
||||||
for codec in ACODEC2_ALLOW:
|
for codec in ACODEC2_ALLOW:
|
||||||
if codec in codec_alias:
|
if codec in codec_alias:
|
||||||
ACODEC2_ALLOW.extend(codec_alias[codec])
|
extra = [ item for item in codec_alias[codec] if item not in ACODEC2_ALLOW ]
|
||||||
|
ACODEC2_ALLOW.extend(extra)
|
||||||
if not ACODEC3_ALLOW and ACODEC3: ACODEC3_ALLOW.extend([ACODEC3])
|
if not ACODEC3_ALLOW and ACODEC3: ACODEC3_ALLOW.extend([ACODEC3])
|
||||||
for codec in ACODEC3_ALLOW:
|
for codec in ACODEC3_ALLOW:
|
||||||
if codec in codec_alias:
|
if codec in codec_alias:
|
||||||
ACODEC3_ALLOW.extend(codec_alias[codec])
|
extra = [ item for item in codec_alias[codec] if item not in ACODEC3_ALLOW ]
|
||||||
|
ACODEC3_ALLOW.extend(extra)
|
||||||
codec_alias = {} # clear memory
|
codec_alias = {} # clear memory
|
||||||
|
|
||||||
PASSWORDSFILE = CFG["passwords"]["PassWordFile"]
|
PASSWORDSFILE = CFG["passwords"]["PassWordFile"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue