* fix in comment fetching logic

merge-requests/6/head
Dominika Liberda 2022-04-25 21:12:09 +00:00
parent 78fae081ad
commit 717fb5da7d
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ fi
if [[ "${get_data[cont]}" == '' ]]; then # tactical replies, INCOMING
vid="$(curl -b cookiejar_ -H "Cookie: CONSENT=YES+1337" -s "https://www.youtube.com/watch?v=${get_data[v]}" -c cookiejar_)"
cont="$(grep -Poh 'token":"Eg0S.*?"' <<< "$vid" | sed -E 's/token"://;s/"//g')" #'
cont="$(grep -Poh 'token":"Eg0S.*?"' <<< "$vid" | sed -E 's/token"://;s/"//g' | head -n1)" #'
else
cont="${get_data[cont]}"
fi