hermanda commited on
Commit
19f1cf0
·
verified ·
1 Parent(s): 0f5fe1a

Update download_subtitles.sh

Browse files
Files changed (1) hide show
  1. 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
- mkdir $uuid_dir
6
- echo $uuid_dir
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