mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 02:34:25 +02:00
Merge branch 'master' into feat_aria2c
This commit is contained in:
commit
e6dcde0335
@ -1,8 +1,12 @@
|
||||
# Udemy Downloader with DRM support
|
||||
|
||||
[](https://forthebadge.com)
|
||||
[](https://forthebadge.com)
|
||||
[](https://forthebadge.com)
|
||||
[](https://forthebadge.com)
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
# NOTE
|
||||
|
||||
|
@ -6,8 +6,8 @@ from pysrt.srttime import SubRipTime
|
||||
|
||||
def convert(directory, filename):
|
||||
index = 0
|
||||
vtt_filepath = os.path.join(directory, filename + ".vtt")
|
||||
srt_filepath = os.path.join(directory, filename + ".srt")
|
||||
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