mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-12-22 15:24:40 +01:00
Fix string formatting on folder names
This commit is contained in:
parent
9cec3fccfb
commit
b7224d5515
@ -1,2 +1,2 @@
|
||||
from .cli import main
|
||||
from .qopy import Client
|
||||
from .cli import main
|
||||
|
@ -92,7 +92,7 @@ def qobuz_dl_args(
|
||||
"-n",
|
||||
"--number",
|
||||
metavar="int",
|
||||
default=default_limit,
|
||||
default=1,
|
||||
help="number of results to download (default: 1)",
|
||||
)
|
||||
add_common_arg(lucky)
|
||||
|
@ -143,7 +143,11 @@ def download_id_by_type(client, item_id, path, quality, album=False, embed_art=F
|
||||
if album:
|
||||
meta = client.get_album_meta(item_id)
|
||||
try:
|
||||
album_title = "{} ({})".format(meta["title"], meta["version"])
|
||||
album_title = (
|
||||
("{} ({})".format(meta["title"], meta["version"]))
|
||||
if meta["version"]
|
||||
else meta["title"]
|
||||
)
|
||||
except KeyError:
|
||||
album_title = meta["title"]
|
||||
print("\nDownloading: {}\n".format(album_title))
|
||||
@ -188,7 +192,11 @@ def download_id_by_type(client, item_id, path, quality, album=False, embed_art=F
|
||||
if "sample" not in parse and parse["sampling_rate"]:
|
||||
meta = client.get_track_meta(item_id)
|
||||
try:
|
||||
track_title = "{} ({})".format(meta["title"], meta["version"])
|
||||
track_title = (
|
||||
("{} ({})".format(meta["title"], meta["version"]))
|
||||
if meta["version"]
|
||||
else meta["title"]
|
||||
)
|
||||
except KeyError:
|
||||
track_title = meta["title"]
|
||||
print("\nDownloading: {}\n".format(track_title))
|
||||
|
Loading…
Reference in New Issue
Block a user