Tweaked convert and download a bit
This commit is contained in:
2
convert.sh
Normal file → Executable file
2
convert.sh
Normal file → Executable 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
10
download.sh
Normal file → Executable 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
|
||||||
|
|
||||||
Reference in New Issue
Block a user