+ Fixes an error when trying to rename hls file
This commit is contained in:
Puyodead1 2021-08-08 14:15:07 -04:00
parent 9f1d7d9119
commit 778d8e6f56

View File

@ -1073,7 +1073,7 @@ def process_lecture(lecture, lecture_path, lecture_file_name, quality, access_to
"aria2c", "-o", f"{temp_filepath}", f"{url}"
]).wait()
if ret_code == 0:
os.rename(temp_filepath, lecture_path)
# os.rename(temp_filepath, lecture_path)
print(" > HLS Download success")
else:
download_aria(url, chapter_dir, lecture_title + ".mp4")