mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-11-22 02:55:25 +01:00
Remove useless loop
This commit is contained in:
parent
b3688429de
commit
5bf5ddf40a
@ -43,7 +43,7 @@ def get_format(client, item_dict, quality, is_track_id=False):
|
||||
return "MP3"
|
||||
track_dict = item_dict
|
||||
if not is_track_id:
|
||||
track_dict = [i for i in item_dict["tracks"]["items"]][0]
|
||||
track_dict = item_dict["tracks"]["items"][0]
|
||||
|
||||
try:
|
||||
new_track_dict = client.get_track_url(track_dict["id"], quality)
|
||||
|
Loading…
Reference in New Issue
Block a user