Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def dl(inp,img):
|
|
45 |
inp_out=inp_out.replace("/","_").replace(".","_").replace("=","_").replace("?","_")
|
46 |
|
47 |
#os.system(f'yt-dlp "{inp}" --trim-filenames 160 -o "{uid}/{inp_out}.mp4" -S res,mp4 --recode mp4')
|
48 |
-
os.system(f'yt-dlp --skip-download --write-auto-subs --sub-lang en --convert-subs
|
49 |
f = open(f"{uid}/{inp_out}.en.srt")
|
50 |
ft=f.read()
|
51 |
print(ft)
|
|
|
45 |
inp_out=inp_out.replace("/","_").replace(".","_").replace("=","_").replace("?","_")
|
46 |
|
47 |
#os.system(f'yt-dlp "{inp}" --trim-filenames 160 -o "{uid}/{inp_out}.mp4" -S res,mp4 --recode mp4')
|
48 |
+
os.system(f'yt-dlp --skip-download --write-subs --write-auto-subs --sub-lang en --sub-format ttml --convert-subs srt "{inp}" -o "{uid}/{inp_out}"')
|
49 |
f = open(f"{uid}/{inp_out}.en.srt")
|
50 |
ft=f.read()
|
51 |
print(ft)
|