Output youtube-dl to /dev/null. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 79e15a537b78539badd5860d9be45c84906e1c9b | |
parent 57726e0f7ff167940380738fe63f552184355bd2 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 19 Apr 2020 22:20:45 +0200 | |
Output youtube-dl to /dev/null. | |
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}" | |
+youtube-dl -q --write-sub --skip-download -o "${tmpfile}" "${url}" 2>/dev/null | |
ofile="$(basename $(find . -name "${tmpfile}.*"))" | |
[ -z "${ofile}" ] && exit 1 | |