mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-05-28 07:30:15 +02:00
Revert "bug fix?"
This reverts commit 0ab68cb95f97f05c5ef62309c5775ab4280efd58.
This commit is contained in:
parent
b5741b2373
commit
f9634168d4
3
main.py
3
main.py
@ -1861,6 +1861,7 @@ 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"))
|
||||
|
||||
@ -1869,7 +1870,6 @@ 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,7 +1891,6 @@ 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