diff --git a/webroot/watch.shs b/webroot/watch.shs index 4841e45..2cb0e29 100755 --- a/webroot/watch.shs +++ b/webroot/watch.shs @@ -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