channel: fix yt-dlp jq expansion

merge-requests/6/head
Dominika Liberda 2022-12-05 11:13:59 +00:00
parent 964c410a7e
commit 0f5dfdc63f
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ if [[ ${cfg[template]} == 'default' ]]; then
fi
IFS=$'\n'
video_title=($(jq -r '.entries[].title' <<< $data))
video_id=($(jq -r '.entries[].id' <<< $data))
video_title=($(jq -r 'if .entries[].channel_follower_count != null then .entries[].entries[] else .entries[] end | .title' <<< $data))
video_id=($(jq -r 'if .entries[].channel_follower_count != null then .entries[].entries[] else .entries[] end | .id' <<< $data))
strings[subscribe]="$(html_encode "$title")"