From 271a426a8c4c7f61db97af2b4a3a972e54d9d113 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sun, 20 Aug 2023 14:10:12 -0400 Subject: [PATCH] fix #175 --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9654b19..a324cc8 100644 --- a/main.py +++ b/main.py @@ -1639,7 +1639,10 @@ def parse_new(udemy: Udemy, udemy_object: dict): for lecture in chapter.get("lectures"): clazz = lecture.get("_class") - if clazz == "quiz" and dl_quizzes: + if clazz == "quiz": + # skip the quiz if we dont want to download it + if not dl_quizzes: + continue process_quiz(udemy, lecture, chapter_dir) continue