From 38f58213f440a244cea7dc0971d6a739c54ceb0d Mon Sep 17 00:00:00 2001 From: Puyodead1 <14828766+Puyodead1@users.noreply.github.com> Date: Mon, 27 Sep 2021 08:32:57 -0400 Subject: [PATCH] remove asset id from start of file name --- udemy_downloader/UdemyDownloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/udemy_downloader/UdemyDownloader.py b/udemy_downloader/UdemyDownloader.py index 7b4830e..8b8a0b5 100644 --- a/udemy_downloader/UdemyDownloader.py +++ b/udemy_downloader/UdemyDownloader.py @@ -275,13 +275,13 @@ def process_lecture(lecture, lecture_path, lecture_file_name, chapter_dir): # continue elif asset_type == "video": print( - "If you're seeing this message, that means that you reached a secret area that I haven't finished! jk I haven't implemented handling for this asset type, please report this at https://github.com/Puyodead1/udemy-downloader/issues so I can add it. When reporting, please provide the following information: " + "If you're seeing this message, that means that you reached an asset type that I haven't implemented handling for, please report this at https://github.com/Puyodead1/udemy-downloader/issues so I can add it. When reporting, please provide the following information: " ) print("AssetType: Video; AssetData: ", asset) 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}") + filename) except Exception as e: print("> Error downloading asset: ", e) continue