Sanitize filenames
This commit is contained in:
parent
c8e2f1fa1c
commit
d8f0172e95
1 changed files with 4 additions and 3 deletions
|
@ -14,9 +14,10 @@ class Config:
|
||||||
self.cookies_dir = Path(os.getenv('COOKIES_DIR') or 'cookies')
|
self.cookies_dir = Path(os.getenv('COOKIES_DIR') or 'cookies')
|
||||||
|
|
||||||
self.tmpl = os.path.join(
|
self.tmpl = os.path.join(
|
||||||
# `artists.0` instead of `artist`, because the latter can contain "feat. ..."
|
# 1. `artists.0` instead of `artist`, because the latter can contain "feat. ..."
|
||||||
os.getenv('ALBUM_PATH_TMPL') or 'music/%(artists.0)s/%(album)s',
|
# 2. as for %(field)S, see https://git.dc09.ru/DarkCat09/musicdlp/issues/3#issuecomment-210
|
||||||
os.getenv('TRACK_FILE_TMPL') or '%(track)s.%(ext)s',
|
os.getenv('ALBUM_PATH_TMPL') or 'music/%(artists.0)S/%(album)S',
|
||||||
|
os.getenv('TRACK_FILE_TMPL') or '%(track)S.%(ext)s',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Proxy URL for yt_proxied downloader (can be used for geo-restricted content)
|
# Proxy URL for yt_proxied downloader (can be used for geo-restricted content)
|
||||||
|
|
Loading…
Add table
Reference in a new issue