From 5d01e567563eace78e2275b14e693b89a5c7489e Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 6 Nov 2023 15:56:17 -0500 Subject: [PATCH] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 284a85f..87fbc74 100644 --- a/main.py +++ b/main.py @@ -1574,7 +1574,7 @@ def parse_new(udemy: Udemy, udemy_object: dict): if extension == "html": # if the html content is None or an empty string, skip it so we dont save empty html files if parsed_lecture.get("html_content") != None and parsed_lecture.get("html_content") != "": - html_content = parsed_lecture.get("html_content").encode("ascii", "ignore").decode("utf8") + html_content = parsed_lecture.get("html_content").encode("ascii", "ignore").decode("ascii") lecture_path = os.path.join(chapter_dir, "{}.html".format(sanitize_filename(lecture_title))) try: with open(lecture_path, encoding="utf8", mode="w") as f: