diff --git a/webroot/yt/channel.shs b/webroot/yt/channel.shs index e5acca3..cd9d3fe 100644 --- a/webroot/yt/channel.shs +++ b/webroot/yt/channel.shs @@ -4,11 +4,11 @@ meta[title]=$title source templates/head.sh if [[ ${get_data[id]} ]]; then - data=$(youtube-dl -j --flat-playlist https://www.youtube.com/channel/${get_data[id]}) + data=$(haruhi-dl -j --flat-playlist https://www.youtube.com/channel/${get_data[id]}) elif [[ ${get_data[name]} ]]; then - data=$(youtube-dl -j --flat-playlist https://www.youtube.com/user/${get_data[name]}) + data=$(haruhi-dl -j --flat-playlist https://www.youtube.com/user/${get_data[name]}) else - echo "Please specify either `id` or `name`" + echo "Please specify either id or name" return fi diff --git a/webroot/yt/fav.shs b/webroot/yt/fav.shs index b6092c5..a09fc56 100644 --- a/webroot/yt/fav.shs +++ b/webroot/yt/fav.shs @@ -1,7 +1,7 @@ #!/bin/bash if session_verify ${cookies[sh_session]} && [[ ${get_data[v]} != '' ]]; then - title=$(youtube-dl -e "https://youtube.com/watch?v=${get_data[v]}") + title=$(haruhi-dl -e "https://youtube.com/watch?v=${get_data[v]}") if [[ $(cat storage/faves | grep -F "$title" | grep "$(echo ${cookies[username]} | sed -E "s/\r//")") == '' ]]; then echo "$(session_get_username ${cookies[sh_session]}):${get_data[v]}:$title" >> storage/faves fi diff --git a/webroot/yt/playlist.shs b/webroot/yt/playlist.shs index 5dd353a..10fe96a 100644 --- a/webroot/yt/playlist.shs +++ b/webroot/yt/playlist.shs @@ -4,7 +4,7 @@ meta[title]=$title source templates/head.sh if [[ ${get_data[id]} ]]; then - data=$(youtube-dl -j --flat-playlist https://www.youtube.com/playlist?list=${get_data[id]}) + data=$(haruhi-dl -j --flat-playlist https://www.youtube.com/playlist?list=${get_data[id]}) else echo "Please specify either `id`" return diff --git a/webroot/yt/subscribe.shs b/webroot/yt/subscribe.shs index 5021315..ba91381 100644 --- a/webroot/yt/subscribe.shs +++ b/webroot/yt/subscribe.shs @@ -2,7 +2,7 @@ if session_verify ${cookies[sh_session]} && [[ ${get_data[id]} != '' ]]; then title=$(curl https://www.youtube.com/feeds/videos.xml?channel_id=${get_data[id]} | grep title | head -n 1 | sed -s 's/