Tweaked convert and download a bit
This commit is contained in:
4
convert.sh
Normal file → Executable file
4
convert.sh
Normal file → Executable file
@ -7,4 +7,6 @@ for filename in ../subs/*; do
|
||||
in="${file}.vtt"
|
||||
out="${file}.srt"
|
||||
ffmpeg -i $in $out
|
||||
done
|
||||
done
|
||||
|
||||
rm ../subs.*vtt
|
||||
|
||||
10
download.sh
Normal file → Executable file
10
download.sh
Normal file → Executable file
@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
url=$1
|
||||
mkdir ../subs
|
||||
mkdir ../original
|
||||
|
||||
#download subs
|
||||
cd ../subs
|
||||
youtube-dl --write-auto-sub --skip-download $url
|
||||
#cd ../subs
|
||||
#youtube-dl --write-auto-sub --yes-playlist --skip-download -o '%(playlist_index)s' $1
|
||||
|
||||
# download videos
|
||||
cd ../original
|
||||
youtube-dl -f 22 $url
|
||||
|
||||
youtube-dl -f 22 --yes-playlist -o '%(playlist_index)s' $1
|
||||
Reference in New Issue
Block a user