Merge branch 'master' into feat_aria2c

This commit is contained in:
Puyodead1 2021-05-28 23:04:56 -04:00
commit e6dcde0335
3 changed files with 185 additions and 911 deletions

View File

@ -1,8 +1,12 @@
# Udemy Downloader with DRM support
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/designed-in-ms-paint.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/approved-by-george-costanza.svg)](https://forthebadge.com)
![GitHub forks](https://img.shields.io/github/forks/Puyodead1/udemy-downloader?style=for-the-badge)
![GitHub Repo stars](https://img.shields.io/github/stars/Puyodead1/udemy-downloader?style=for-the-badge)
![GitHub](https://img.shields.io/github/license/Puyodead1/udemy-downloader?style=for-the-badge)
![GitHub top language](https://img.shields.io/github/languages/top/Puyodead1/udemy-downloader?style=for-the-badge)
![Codacy grade](https://img.shields.io/codacy/grade/e14b03f576ab4b1897624dcdf6dd9557?style=for-the-badge)
# NOTE

1084
main.py

File diff suppressed because it is too large Load Diff

View File

@ -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):