mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-11-22 11:05:25 +01:00
Download booklet if it exists
This commit is contained in:
parent
0cc107d9c3
commit
dda8687b9b
@ -33,6 +33,8 @@ def mkDir(dirn):
|
|||||||
def getDesc(u, mt):
|
def getDesc(u, mt):
|
||||||
return "{} [{}/{}]".format(mt["title"], u["bit_depth"], u["sampling_rate"])
|
return "{} [{}/{}]".format(mt["title"], u["bit_depth"], u["sampling_rate"])
|
||||||
|
|
||||||
|
def getBooklet(i, dirn):
|
||||||
|
req_tqdm(i, dirn + "/booklet.pdf", "Downloading booklet")
|
||||||
|
|
||||||
def getCover(i, dirn):
|
def getCover(i, dirn):
|
||||||
req_tqdm(i, dirn + "/cover.jpg", "Downloading cover art")
|
req_tqdm(i, dirn + "/cover.jpg", "Downloading cover art")
|
||||||
@ -67,6 +69,8 @@ def iterateIDs(client, id, path, quality, album=False):
|
|||||||
dirn = path + sanitized_title
|
dirn = path + sanitized_title
|
||||||
mkDir(dirn)
|
mkDir(dirn)
|
||||||
getCover(meta["image"]["large"], dirn)
|
getCover(meta["image"]["large"], dirn)
|
||||||
|
if "goodies" in meta:
|
||||||
|
getBooklet(meta["goodies"][0]["url"], dirn)
|
||||||
for i in meta["tracks"]["items"]:
|
for i in meta["tracks"]["items"]:
|
||||||
parse = client.get_track_url(i["id"], quality)
|
parse = client.get_track_url(i["id"], quality)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user