channel: fix yt-dlp jq expansion
This commit is contained in:
parent
964c410a7e
commit
0f5dfdc63f
|
@ -25,8 +25,8 @@ if [[ ${cfg[template]} == 'default' ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
video_title=($(jq -r '.entries[].title' <<< $data))
|
video_title=($(jq -r 'if .entries[].channel_follower_count != null then .entries[].entries[] else .entries[] end | .title' <<< $data))
|
||||||
video_id=($(jq -r '.entries[].id' <<< $data))
|
video_id=($(jq -r 'if .entries[].channel_follower_count != null then .entries[].entries[] else .entries[] end | .id' <<< $data))
|
||||||
|
|
||||||
strings[subscribe]="$(html_encode "$title")"
|
strings[subscribe]="$(html_encode "$title")"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue