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:
LecygneNoir 2020-12-25 09:59:23 +01:00
parent 42ee7d761b
commit 230ac545c4
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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):