This repository has been archived on 2021-11-29. You can view files and clone it, but cannot push or open issues or pull requests.
rsstube-bash-old/scripts/page-extractors/invidious

12 lines
357 B
Plaintext
Raw Normal View History

2021-11-28 19:00:00 -05:00
determine_protocol
get_domain
instance="${protocol}${domain}"
channel=`echo $content | grep -Pzo '(?<=<div class="h-box"> <a href=").*?(?=" style="display:block;width:fit-content;width:-moz-fit-content"> <div class="channel-profile">)' | head -1 | tr '\0' '\n'`
channel="${channel##/}"
if [[ -n $channel ]]
then
page_ext="${instance}/feed/${channel}"
fi