Spaces:
Running
Running
Update download_subtitles.sh
Browse files- download_subtitles.sh +3 -8
download_subtitles.sh
CHANGED
@@ -1,13 +1,8 @@
|
|
1 |
#!/bin/bash
|
2 |
|
|
|
3 |
video_url=$1
|
4 |
uuid_dir=$(uuidgen)
|
5 |
-
|
6 |
-
|
7 |
-
cd $uuid_dir
|
8 |
-
yt-dlp --write-auto-subs --sub-lang en --convert-subs srt --skip-download $video_url
|
9 |
-
yt-dlp --write-subs --sub-lang en --convert-subs srt --skip-download $video_url
|
10 |
-
ls
|
11 |
-
cd ..
|
12 |
-
ls
|
13 |
echo $uuid_dir
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# https://www.youtube.com/watch?v=-v6M_MEbkbI
|
4 |
video_url=$1
|
5 |
uuid_dir=$(uuidgen)
|
6 |
+
yt-dlp --write-auto-subs --sub-lang en --convert-subs srt --skip-download -P "home:$uuid_dir" $video_url
|
7 |
+
yt-dlp --write-subs --sub-lang en --convert-subs srt --skip-download -P "home:$uuid_dir" $video_url
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
echo $uuid_dir
|