mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 01:44:25 +02:00
bug fix?
This commit is contained in:
parent
fdf8cde414
commit
b5741b2373
3
main.py
3
main.py
@ -1861,7 +1861,6 @@ def main():
|
||||
|
||||
if clazz == "chapter":
|
||||
lecture_counter = 0
|
||||
lectures = []
|
||||
chapter_index = entry.get("object_index")
|
||||
chapter_title = "{0:02d} - ".format(chapter_index) + sanitize_filename(entry.get("title"))
|
||||
|
||||
@ -1870,6 +1869,7 @@ def main():
|
||||
counter += 1
|
||||
elif clazz == "lecture":
|
||||
lecture_counter += 1
|
||||
lectures = []
|
||||
lecture_id = entry.get("id")
|
||||
if len(udemy_object["chapters"]) == 0:
|
||||
# dummy chapters to handle lectures without chapters
|
||||
@ -1891,6 +1891,7 @@ def main():
|
||||
udemy_object["chapters"][counter]["lecture_count"] = len(lectures)
|
||||
elif clazz == "quiz":
|
||||
lecture_counter += 1
|
||||
lectures = []
|
||||
lecture_id = entry.get("id")
|
||||
if len(udemy_object["chapters"]) == 0:
|
||||
# dummy chapters to handle lectures without chapters
|
||||
|
Loading…
x
Reference in New Issue
Block a user