Fix skip music video when mp4decrypt is not present

This commit is contained in:
R. M
2023-08-25 03:44:36 -03:00
parent 04719f7587
commit ee434e767e
+4 -3
View File
@@ -358,9 +358,10 @@ def main(
for i, url in enumerate(download_queue, start=1):
for j, track in enumerate(url, start=1):
if track["type"] == "music-videos" and not mp4decrypt_path:
logger.info(
f'Downloading "{track["attributes"]["name"]}" (track {j}/{len(url)} from URL {i}/{len(download_queue)})'
)
continue
logger.info(
f'Downloading "{track["attributes"]["name"]}" (track {j}/{len(url)} from URL {i}/{len(download_queue)})'
)
try:
track_id = track["id"]
webplayback = dl.get_webplayback(track_id)