You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Freeze at Merging video and audio, this might take a minute when downloading lectures that have backtick in their chapter/lecture name.
[12:18:31] [udemy-downloader] [handle_segments:1249] INFO: > Lecture Tracks Downloaded
[12:18:31] [udemy-downloader] [handle_segments:1260] INFO: KID for video file is: xxx
[12:18:31] [udemy-downloader] [handle_segments:1267] INFO: KID for audio file is: xxx
[12:18:31] [udemy-downloader] [handle_segments:1306] INFO: > Merging video and audio, this might take a minute...
Replace backticks like this fix the problem:
> git diff main.py
diff --git a/main.py b/main.py
index affcdc8..08d965e 100644
--- a/main.py
+++ b/main.py
@@ -1191,6 +1191,7 @@ def mux_process(
transcode = "-hwaccel cuda -hwaccel_output_format cuda" if use_nvenc else ""
audio_decryption_arg = f"-decryption_key {audio_key}" if audio_key is not None else ""
video_decryption_arg = f"-decryption_key {video_key}" if video_key is not None else ""
+ video_title = video_title.replace("`","")
if os.name == "nt":
if use_h265:
@@ -1608,7 +1609,7 @@ def parse_new(udemy: Udemy, udemy_object: dict):
os.mkdir(course_dir)
for chapter in udemy_object.get("chapters"):
- chapter_title = chapter.get("chapter_title")
+ chapter_title = chapter.get("chapter_title").replace("`","")
chapter_index = chapter.get("chapter_index")
chapter_dir = os.path.join(course_dir, chapter_title)
if not os.path.exists(chapter_dir):
Expected Result
Handle names with backtick and merge files properly.
Branch
master/main
What operating systems are you seeing the problem on?
Linux/Unix
Relevant log output
No response
Other information
No response
The text was updated successfully, but these errors were encountered:
What happened?
Freeze at
Merging video and audio, this might take a minute
when downloading lectures that have backtick in their chapter/lecture name.Replace backticks like this fix the problem:
Expected Result
Branch
master/main
What operating systems are you seeing the problem on?
Linux/Unix
Relevant log output
No response
Other information
No response
The text was updated successfully, but these errors were encountered: