mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 02:34:25 +02:00
path
This commit is contained in:
parent
86fa241ded
commit
134652d6e6
@ -6,8 +6,8 @@ from pysrt.srttime import SubRipTime
|
||||
|
||||
def convert(directory, filename):
|
||||
index = 0
|
||||
vtt_filepath = f"%s\\%s.vtt" % (directory, filename)
|
||||
srt_filepath = f"%s\\%s.srt" % (directory, filename)
|
||||
vtt_filepath = os.path.join(directory, f"{filename}.vtt")
|
||||
srt_filepath = os.path.join(directory, f"{filename}.srt")
|
||||
srt = open(srt_filepath, "w")
|
||||
|
||||
for caption in WebVTT().read(vtt_filepath):
|
||||
|
Loading…
x
Reference in New Issue
Block a user