mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-05-03 03:04:27 +02:00
Bug fix
+ Fixes an error when trying to rename hls file
This commit is contained in:
parent
9f1d7d9119
commit
778d8e6f56
2
main.py
2
main.py
@ -1073,7 +1073,7 @@ def process_lecture(lecture, lecture_path, lecture_file_name, quality, access_to
|
|||||||
"aria2c", "-o", f"{temp_filepath}", f"{url}"
|
"aria2c", "-o", f"{temp_filepath}", f"{url}"
|
||||||
]).wait()
|
]).wait()
|
||||||
if ret_code == 0:
|
if ret_code == 0:
|
||||||
os.rename(temp_filepath, lecture_path)
|
# os.rename(temp_filepath, lecture_path)
|
||||||
print(" > HLS Download success")
|
print(" > HLS Download success")
|
||||||
else:
|
else:
|
||||||
download_aria(url, chapter_dir, lecture_title + ".mp4")
|
download_aria(url, chapter_dir, lecture_title + ".mp4")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user