mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-05-02 00:44:25 +02:00
Fix: caption files having duplicated file extension
This commit is contained in:
parent
4d428ea89d
commit
1fa5bdba90
3
main.py
3
main.py
@ -1008,8 +1008,7 @@ def process_caption(caption, lecture_title, lecture_dir, keep_vtt, tries=0):
|
|||||||
else:
|
else:
|
||||||
print(f"> Downloading caption: '%s'" % filename)
|
print(f"> Downloading caption: '%s'" % filename)
|
||||||
try:
|
try:
|
||||||
download_aria(caption.get("download_url"), lecture_dir,
|
download_aria(caption.get("download_url"), lecture_dir, filename)
|
||||||
filename + caption.get("extension"))
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if tries >= 3:
|
if tries >= 3:
|
||||||
print(
|
print(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user