mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
formatname: fix tilde so it actually works
This commit is contained in:
parent
4527edd962
commit
08a85a97e9
@ -143,14 +143,14 @@ def formatname(output, config):
|
||||
# Add subfolder with name movies
|
||||
name = pathlib.Path("movies") / name.name
|
||||
if config.get("output") and pathlib.Path(config.get("output")).expanduser().is_dir():
|
||||
name = pathlib.Path(config.get("output")) / name.name
|
||||
name = pathlib.Path(config.get("output")).expanduser() / name.name
|
||||
elif config.get("path") and pathlib.Path(config.get("path")).expanduser().is_dir():
|
||||
name = pathlib.Path(config.get("path")) / name.name
|
||||
name = pathlib.Path(config.get("path")).expanduser() / name.name
|
||||
elif config.get("output"):
|
||||
if output["ext"]:
|
||||
name = pathlib.Path(f"{config.get('output')}.{output['ext']}")
|
||||
name = pathlib.Path(f"{config.get('output')}.{output['ext']}").expanduser()
|
||||
else:
|
||||
name = pathlib.Path(config.get("output"))
|
||||
name = pathlib.Path(config.get("output")).expanduser()
|
||||
return name
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user