mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-11-22 19:15:25 +01:00
Improve interactive behavior
This commit is contained in:
parent
ead1cbf106
commit
607b0d2795
19
main.py
19
main.py
@ -117,18 +117,21 @@ def interactive(Qz, path, limit, tracks=True):
|
|||||||
|
|
||||||
title = (
|
title = (
|
||||||
"Select [space] the item(s) you want to download "
|
"Select [space] the item(s) you want to download "
|
||||||
"(one or more)\nPress Ctrl + c to quit\n"
|
"(zero or more)\nPress Ctrl + c to quit\n"
|
||||||
)
|
)
|
||||||
Selected = pick(
|
Selected = pick(
|
||||||
start.Total, title, multiselect=True, min_selection_count=1
|
start.Total, title, multiselect=True, min_selection_count=0
|
||||||
)
|
)
|
||||||
Albums.append(Selected)
|
if len(Selected) > 0:
|
||||||
|
Albums.append(Selected)
|
||||||
|
|
||||||
y_n = pick(
|
y_n = pick(
|
||||||
["Yes", "No"],
|
["Yes", "No"],
|
||||||
"Items were added to queue to be downloaded. Keep searching?",
|
"Items were added to queue to be downloaded. Keep searching?",
|
||||||
)
|
)
|
||||||
if y_n[0][0] == "N":
|
if y_n[0][0] == "N":
|
||||||
|
break
|
||||||
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
desc = (
|
desc = (
|
||||||
|
Loading…
Reference in New Issue
Block a user