Tweaked convert and download a bit

This commit is contained in:
Pawel Kolaczynski
2020-07-26 12:30:30 +02:00
parent 911861dbd8
commit ca286ac735
2 changed files with 8 additions and 6 deletions

4
convert.sh Normal file → Executable file
View 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
View 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