From 0fd785ca92429406e2db93dc420007ab5c20916f Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Tue, 21 Jun 2022 00:21:08 +0000 Subject: [PATCH] * mmmm move smth to ytdlp? --- webroot/channel.shs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webroot/channel.shs b/webroot/channel.shs index bc20e80..e7e15c7 100644 --- a/webroot/channel.shs +++ b/webroot/channel.shs @@ -3,15 +3,15 @@ declare -A strings if [[ "${params[id]}" ]]; then - data=$(haruhi-dl --ie-key YoutubeChannel -J --flat-playlist "https://www.youtube.com/channel/${params[id]}") + data=$(yt-dlp -J --flat-playlist "https://www.youtube.com/channel/${params[id]}") elif [[ "${params[user]}" ]]; then - data=$(haruhi-dl --ie-key YoutubeChannel -J --flat-playlist "https://www.youtube.com/user/${params[user]}") + data=$(yt-dlp -J --flat-playlist "https://www.youtube.com/user/${params[user]}") elif [[ "${params[c]}" ]]; then - data=$(haruhi-dl --ie-key YoutubeChannel -J --flat-playlist "https://www.youtube.com/c/${params[c]}") + data=$(yt-dlp -J --flat-playlist "https://www.youtube.com/c/${params[c]}") elif [[ "${get_data[id]}" ]]; then - data=$(haruhi-dl --ie-key YoutubeChannel -J --flat-playlist "https://www.youtube.com/channel/${get_data[id]}") + data=$(yt-dlp -J --flat-playlist "https://www.youtube.com/channel/${get_data[id]}") elif [[ "${get_data[name]}" ]]; then - data=$(haruhi-dl --ie-key YoutubeChannel -J --flat-playlist "https://www.youtube.com/user/${get_data[name]}") + data=$(yt-dlp -J --flat-playlist "https://www.youtube.com/user/${get_data[name]}") else echo "Please specify either id or name" return