* fixed bad channel URL

merge-requests/6/head
Dominika Liberda 2021-10-27 21:25:56 +00:00
parent 11dfe8685a
commit 4cd00fc54e
1 changed files with 1 additions and 2 deletions

View File

@ -72,8 +72,7 @@ if [[ "${get_data[v]}" ]]; then
fi
fi
cd ..
#echo "http://youtube.com/watch?v=${get_data[v]}" > /dev/stderr
strings[channel_id]=$(jq -r '.channel_url' <<< "$video" | sed -s 's/http:\/\/www.youtube.com\/channel\///')
strings[channel_id]=$(jq -r '.channel_url' <<< "$video" | sed -s 's/.*\/channel\///')
strings[uploader]=$(jq -r '.uploader' <<< "$video")
strings[title]=$(jq -r '.title' <<< "$video")
if [[ ${cfg[template]} == 'default' ]]; then