From 4cd00fc54e7c44f8e8e73e379f95ce54171c0aed Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Wed, 27 Oct 2021 21:25:56 +0000 Subject: [PATCH] * fixed bad channel URL --- webroot/watch.shs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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