diff options
Diffstat (limited to 'odin')
-rw-r--r-- | odin/strm/download_youtube | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/odin/strm/download_youtube b/odin/strm/download_youtube index 37f493a7..46e904cf 100644 --- a/odin/strm/download_youtube +++ b/odin/strm/download_youtube | |||
@@ -139,8 +139,9 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}" | |||
139 | title=$(grep -E '^Subject' "${message}" | head -n 1 | cut -d ' ' -f 2-) | 139 | title=$(grep -E '^Subject' "${message}" | head -n 1 | cut -d ' ' -f 2-) |
140 | fi | 140 | fi |
141 | 141 | ||
142 | filename="${dir}/${title}-${extractor}.${videoId}.${from}.${fileExtension}" | 142 | filename="${title}-${extractor}.${videoId}.${from}.${fileExtension}" |
143 | filename=$(tr $'\n\0\/' ' ' <<<${filename} | tr -d $'!') | 143 | filename=$(tr $'\n\0\/' ' ' <<<${filename} | tr -d $'!' | awk '{$1=$1};1') |
144 | filename="${dir}/${filename}" | ||
144 | 145 | ||
145 | printf "%s\n%s via %s: %s\nExpecting ā%sā\n" ${title} ${videoId} ${extractor} ${format} ${filename:t} | 146 | printf "%s\n%s via %s: %s\nExpecting ā%sā\n" ${title} ${videoId} ${extractor} ${format} ${filename:t} |
146 | 147 | ||