From ca286ac735ff6157179344689e0f87f1ede370ef Mon Sep 17 00:00:00 2001 From: Pawel Kolaczynski Date: Sun, 26 Jul 2020 12:30:30 +0200 Subject: [PATCH] Tweaked convert and download a bit --- convert.sh | 4 +++- download.sh | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) mode change 100644 => 100755 convert.sh mode change 100644 => 100755 download.sh diff --git a/convert.sh b/convert.sh old mode 100644 new mode 100755 index 50b8aca..d768097 --- a/convert.sh +++ b/convert.sh @@ -7,4 +7,6 @@ for filename in ../subs/*; do in="${file}.vtt" out="${file}.srt" ffmpeg -i $in $out - done + done + +rm ../subs.*vtt diff --git a/download.sh b/download.sh old mode 100644 new mode 100755 index 2c111c4..a30d343 --- a/download.sh +++ b/download.sh @@ -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 \ No newline at end of file