From 60eee56233fa89e012d6598862c7ef6ed55ea45e Mon Sep 17 00:00:00 2001 From: Puyodead1 <14828766+Puyodead1@users.noreply.github.com> Date: Sun, 28 Nov 2021 00:04:24 -0500 Subject: [PATCH] fix: attachments having id prepended to start --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 0f3f155..6ce6ccf 100644 --- a/main.py +++ b/main.py @@ -1204,7 +1204,6 @@ def parse_new(_udemy, quality, skip_lectures, dl_assets, dl_captions, asset_type = asset.get("type") filename = asset.get("filename") download_url = asset.get("download_url") - asset_id = asset.get("id") if asset_type == "article": print( @@ -1229,7 +1228,7 @@ def parse_new(_udemy, quality, skip_lectures, dl_assets, dl_captions, elif asset_type == "audio" or asset_type == "e-book" or asset_type == "file" or asset_type == "presentation": try: download_aria(download_url, chapter_dir, - f"{asset_id}-{filename}", disable_ipv6) + filename, disable_ipv6) except Exception as e: print("> Error downloading asset: ", e) continue