summaryrefslogtreecommitdiff
path: root/odin/strm
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-06 14:37:22 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-06 14:37:22 +0200
commit0ab64fe6ef3182019f5e9090a966b270cfd1cca1 (patch)
tree990a24e849c18ff2d042fa271870f8e866c30158 /odin/strm
parent6d4bee5d17d4ffbfde73eb7d493b39c9a741637b (diff)
downloadnixos-0ab64fe6ef3182019f5e9090a966b270cfd1cca1.tar
nixos-0ab64fe6ef3182019f5e9090a966b270cfd1cca1.tar.gz
nixos-0ab64fe6ef3182019f5e9090a966b270cfd1cca1.tar.bz2
nixos-0ab64fe6ef3182019f5e9090a966b270cfd1cca1.tar.xz
nixos-0ab64fe6ef3182019f5e9090a966b270cfd1cca1.zip
Diffstat (limited to 'odin/strm')
-rwxr-xr-xodin/strm/download_youtube4
1 files changed, 2 insertions, 2 deletions
diff --git a/odin/strm/download_youtube b/odin/strm/download_youtube
index 33e9a454..41d532cc 100755
--- a/odin/strm/download_youtube
+++ b/odin/strm/download_youtube
@@ -116,7 +116,7 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}"
116 typeset -a args 116 typeset -a args
117 args=(--no-playlist --add-metadata --newline --mark-watched -f ${formatString}) 117 args=(--no-playlist --add-metadata --newline --mark-watched -f ${formatString})
118 118
119 youtube-dl ${args} --get-filename -o $'%(extractor)s\n%(id)s\n%(format)s\n%(title)s\n%(ext)s' -- ${url} | { 119 @youtube-dl@/bin/youtube-dl ${args} --get-filename -o $'%(extractor)s\n%(id)s\n%(format)s\n%(title)s\n%(ext)s' -- ${url} | {
120 oldIFS=${IFS} 120 oldIFS=${IFS}
121 export IFS= 121 export IFS=
122 122
@@ -156,7 +156,7 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}"
156 fi 156 fi
157 fi 157 fi
158 158
159 youtube-dl $args -o "${filename:r}.%(ext)s" -- ${url} 2>&1 </dev/null | stdbuf -o0 tr '\r' '\n' 159 @youtube-dl@/bin/youtube-dl $args -o "${filename:r}.%(ext)s" -- ${url} 2>&1 </dev/null | stdbuf -o0 tr '\r' '\n'
160 ytResult=$? 160 ytResult=$?
161 161
162 if [[ ! -e ${filename} && -n ${filename} ]]; then 162 if [[ ! -e ${filename} && -n ${filename} ]]; then