Download auto subtitles too. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit a562443d0ae79d693f71bb026584145550fb02c8 | |
parent 4609be697fce889fc743e45a6563054b1ccdb51e | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Fri, 1 May 2020 19:28:53 +0200 | |
Download auto subtitles too. | |
Thanks leot for the hint! | |
Diffstat: | |
M subtitle-paste | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/subtitle-paste b/subtitle-paste | |
@@ -14,7 +14,7 @@ url="$1" | |
cd "${pastebase}" | |
tmpfile="$(mktemp -u p-XXXXXXXXXXXXX)" | |
-youtube-dl -q --write-sub --skip-download -o "${tmpfile}" "${url}" 2>/dev/null | |
+youtube-dl -q --write-auto-sub --skip-download -o "${tmpfile}" "${url}" 2>/dev… | |
ofile="$(basename $(find . -name "${tmpfile}.*"))" | |
[ -z "${ofile}" ] && exit 1 | |