From a461f5fc8628603962b1a0733c0c55ff0da7e3d5 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 16 Oct 2023 22:20:19 -0400 Subject: [PATCH] fix source code assets not being downloaded --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index cafa291..70ebec9 100644 --- a/main.py +++ b/main.py @@ -1791,7 +1791,7 @@ def parse_new(udemy: Udemy, udemy_object: dict): "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: " ) logger.warning("AssetType: Video; AssetData: ", asset) - elif asset_type == "audio" or asset_type == "e-book" or asset_type == "file" or asset_type == "presentation" or asset_type == "ebook": + elif asset_type == "audio" or asset_type == "e-book" or asset_type == "file" or asset_type == "presentation" or asset_type == "ebook" or asset_type == "source_code": try: ret_code = download_aria(download_url, chapter_dir, filename) logger.debug(f" > Download return code: {ret_code}")