mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 10:54:26 +02:00
Remove unused variable and update some strings
This commit is contained in:
parent
88c32ea55d
commit
f6ea730215
7
main.py
7
main.py
@ -1089,14 +1089,15 @@ def parse_new(_udemy, quality, skip_lectures, dl_assets, dl_captions,
|
|||||||
|
|
||||||
if dl_assets:
|
if dl_assets:
|
||||||
assets = lecture.get("assets")
|
assets = lecture.get("assets")
|
||||||
print("> Processing {} assets for lecture...".format(
|
print("> Processing {} asset(s) for lecture...".format(
|
||||||
len(assets)))
|
len(assets)))
|
||||||
|
|
||||||
for asset in assets:
|
for asset in assets:
|
||||||
asset_type = asset.get("type")
|
asset_type = asset.get("type")
|
||||||
filename = asset.get("filename")
|
filename = asset.get("filename")
|
||||||
download_url = asset.get("download_url")
|
download_url = asset.get("download_url")
|
||||||
ext = asset.get("extension")
|
|
||||||
|
print(asset_type)
|
||||||
|
|
||||||
if asset_type == "article":
|
if asset_type == "article":
|
||||||
print(
|
print(
|
||||||
@ -1127,7 +1128,7 @@ def parse_new(_udemy, quality, skip_lectures, dl_assets, dl_captions,
|
|||||||
|
|
||||||
subtitles = lecture.get("subtitles")
|
subtitles = lecture.get("subtitles")
|
||||||
if dl_captions and subtitles:
|
if dl_captions and subtitles:
|
||||||
print("Processing {} captions...".format(len(subtitles)))
|
print("Processing {} caption(s)...".format(len(subtitles)))
|
||||||
for subtitle in subtitles:
|
for subtitle in subtitles:
|
||||||
lang = subtitle.get("language")
|
lang = subtitle.get("language")
|
||||||
if lang == caption_locale or caption_locale == "all":
|
if lang == caption_locale or caption_locale == "all":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user