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

|
||||||
|

|
||||||

|

|
||||||

|
|
||||||

|
|
||||||
|
|
||||||
# NOTE
|
# NOTE
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ from pysrt.srttime import SubRipTime
|
|||||||
|
|
||||||
def convert(directory, filename):
|
def convert(directory, filename):
|
||||||
index = 0
|
index = 0
|
||||||
vtt_filepath = os.path.join(directory, filename + ".vtt")
|
vtt_filepath = os.path.join(directory, f"{filename}.vtt")
|
||||||
srt_filepath = os.path.join(directory, filename + ".srt")
|
srt_filepath = os.path.join(directory, f"{filename}.srt")
|
||||||
srt = open(srt_filepath, "w")
|
srt = open(srt_filepath, "w")
|
||||||
|
|
||||||
for caption in WebVTT().read(vtt_filepath):
|
for caption in WebVTT().read(vtt_filepath):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user