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

2
convert.sh Normal file → Executable file
View File

@ -8,3 +8,5 @@ for filename in ../subs/*; do
out="${file}.srt" out="${file}.srt"
ffmpeg -i $in $out ffmpeg -i $in $out
done done
rm ../subs.*vtt

10
download.sh Normal file → Executable file
View File

@ -1,12 +1,12 @@
#!/bin/bash #!/bin/bash
url=$1 mkdir ../subs
mkdir ../original
#download subs #download subs
cd ../subs #cd ../subs
youtube-dl --write-auto-sub --skip-download $url #youtube-dl --write-auto-sub --yes-playlist --skip-download -o '%(playlist_index)s' $1
# download videos # download videos
cd ../original cd ../original
youtube-dl -f 22 $url youtube-dl -f 22 --yes-playlist -o '%(playlist_index)s' $1