Browse Source

Patch incorrect loading of NFO keys, breaking the match when the key contains -, and add example for auto-originalDate in NFO

pull/52/head
LecygneNoir 3 years ago
parent
commit
230ac545c4
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      prismedia/samples/nfo.txt
  2. +1
    -1
      prismedia/utils.py

+ 3
- 2
prismedia/samples/nfo.txt View File

@ -4,6 +4,7 @@
# Some generic options for your videos
cca = True
privacy = private
disable-comments = True
disable-comments = False
channel = DefaultChannel
channelCreate = True
channelCreate = True
auto-originalDate = True

+ 1
- 1
prismedia/utils.py View File

@ -200,7 +200,7 @@ def parseNFO(options):
if nfo:
# 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():
key = key.replace("-", "")
key = key.replace("--", "")
try:
# get string options
if value is None and nfo.get('video', key):

Loading…
Cancel
Save