mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-29 19:24:28 +02:00
This commit is contained in:
parent
d8b5d3ca0e
commit
f321791819
@ -9,7 +9,7 @@ def convert(directory, filename):
|
||||
index = 0
|
||||
vtt_filepath = os.path.join(directory, filename + ".vtt")
|
||||
srt_filepath = os.path.join(directory, filename + ".srt")
|
||||
srt = open(srt_filepath, mode="w", errors="ignore")
|
||||
srt = open(srt_filepath, mode='w', encoding='utf8', errors='ignore')
|
||||
|
||||
for caption in WebVTT().read(vtt_filepath):
|
||||
index += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user