mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 09:29:16 +02:00
Patch incorrect loading of NFO keys, breaking the match when the key contains -, and add example for auto-originalDate in NFO
This commit is contained in:
parent
42ee7d761b
commit
230ac545c4
2 changed files with 4 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
||||||
# Some generic options for your videos
|
# Some generic options for your videos
|
||||||
cca = True
|
cca = True
|
||||||
privacy = private
|
privacy = private
|
||||||
disable-comments = True
|
disable-comments = False
|
||||||
channel = DefaultChannel
|
channel = DefaultChannel
|
||||||
channelCreate = True
|
channelCreate = True
|
||||||
|
auto-originalDate = True
|
|
@ -200,7 +200,7 @@ def parseNFO(options):
|
||||||
if nfo:
|
if nfo:
|
||||||
# We need to check all options and replace it with the nfo value if not defined (None or False)
|
# We need to check all options and replace it with the nfo value if not defined (None or False)
|
||||||
for key, value in options.items():
|
for key, value in options.items():
|
||||||
key = key.replace("-", "")
|
key = key.replace("--", "")
|
||||||
try:
|
try:
|
||||||
# get string options
|
# get string options
|
||||||
if value is None and nfo.get('video', key):
|
if value is None and nfo.get('video', key):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue