mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-05-16 13:37:05 +02:00
Revert "Merge branch 'master' into feat_aria2c"
This reverts commit e6dcde0335e8fdd7278dc72e9233034a5efc2748, reversing changes made to 1ad4f1eddee0e34d028e3e74bf331a92a8388a36.
This commit is contained in:
parent
e6dcde0335
commit
9f3bda6c6c
@ -1,12 +1,8 @@
|
|||||||
# 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, f"{filename}.vtt")
|
vtt_filepath = os.path.join(directory, filename + ".vtt")
|
||||||
srt_filepath = os.path.join(directory, f"{filename}.srt")
|
srt_filepath = os.path.join(directory, 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