mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 02:54:28 +02:00
fix source code assets not being downloaded
This commit is contained in:
parent
68e4ffb787
commit
a461f5fc86
2
main.py
2
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: "
|
"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)
|
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:
|
try:
|
||||||
ret_code = download_aria(download_url, chapter_dir, filename)
|
ret_code = download_aria(download_url, chapter_dir, filename)
|
||||||
logger.debug(f" > Download return code: {ret_code}")
|
logger.debug(f" > Download return code: {ret_code}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user