mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
utils.output: dot and dash is optional
This commit is contained in:
parent
22d387717e
commit
7c2d86375e
@ -175,7 +175,7 @@ def _formatname(output, config, extension):
|
|||||||
name = name.replace("{ext}", output[key])
|
name = name.replace("{ext}", output[key])
|
||||||
|
|
||||||
# Remove all {text} we cant replace with something
|
# Remove all {text} we cant replace with something
|
||||||
for item in re.findall("([\.\-](([^\.\-]+\w+)?\{[\w\-]+\}))", name):
|
for item in re.findall("([\.\-]?(([^\.\-]+\w+)?\{[\w\-]+\}))", name):
|
||||||
if "season" in output and output["season"] and re.search("(e\{[\w\-]+\})", name):
|
if "season" in output and output["season"] and re.search("(e\{[\w\-]+\})", name):
|
||||||
name = name.replace(re.search("(e\{[\w\-]+\})", name).group(1), "")
|
name = name.replace(re.search("(e\{[\w\-]+\})", name).group(1), "")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user