114 lines
1.9 KiB
Plaintext
114 lines
1.9 KiB
Plaintext
supported_sites=(
|
|
"apple_podcasts"
|
|
"castro_fm"
|
|
"chirbit"
|
|
"deviantart"
|
|
"google_podcasts"
|
|
"fyyd"
|
|
"invidious"
|
|
"nitter"
|
|
"player_fm"
|
|
"pocketcasts"
|
|
"reddit"
|
|
"soundcloud"
|
|
"tumblr"
|
|
"vimeo"
|
|
"youtube"
|
|
)
|
|
|
|
apple_podcasts=(
|
|
"podcasts.apple.com"
|
|
"itunes.apple.com/*/podcast"
|
|
)
|
|
|
|
castro_fm=("castro.fm")
|
|
|
|
chirbit=(
|
|
"chirbit.com"
|
|
"chirb.it"
|
|
)
|
|
|
|
deviantart=("deviantart.com")
|
|
|
|
fyyd=("fyyd.de/podcast/")
|
|
|
|
google_podcasts=("podcasts.google.com")
|
|
|
|
invidious=(
|
|
"invidio.us"
|
|
"kgg2m7yk5aybusll.onion"
|
|
"axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion"
|
|
"invidious.snopyta.org"
|
|
"vid.wxzm.sx"
|
|
"invidiou.sh"
|
|
"tube.poal.co"
|
|
"yt.elukerio.org"
|
|
"invidious.drycat.fr"
|
|
"yt.lelux.fi"
|
|
"watch.nettohikari.com"
|
|
"fz253lmuao3strwbfbmx46yu7acac2jz27iwtorgmbqlkurlclmancad.onion"
|
|
"qklhadlycap4cnod.onion"
|
|
"c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion"
|
|
"invidious.l4qlywnpwqsluw65ts7md3khrivpirse744un3x7mlskqauz5pyuzgqd.onion"
|
|
)
|
|
|
|
nitter=(
|
|
"nitter.net"
|
|
"nitter.snopyta.org"
|
|
"nitter.42l.fr"
|
|
"nitter.nixnet.xyz"
|
|
"nitter.lelux.fi"
|
|
"nitter.pro"
|
|
"nitter.13ad.de"
|
|
"nitter.drycat.fr"
|
|
"3nzoldnxplag42gqjs23xvghtzf6t6yzssrtytnntc6ppc7xxuoneoad.onion"
|
|
"nitter.l4qlywnpwqsluw65ts7md3khrivpirse744un3x7mlskqauz5pyuzgqd.onion"
|
|
"nitteruacegiyzybcc2xej3obcti3dlysz5l5jns7ob4gict6tcualid.onion"
|
|
)
|
|
|
|
player_fm=("player.fm/series/")
|
|
|
|
pocketcasts=("pca.st")
|
|
|
|
reddit=("reddit.com")
|
|
|
|
soundcloud=("soundcloud.com")
|
|
|
|
tumblr=("tumblr.com")
|
|
|
|
vimeo=("vimeo.com")
|
|
|
|
youtube=(
|
|
"youtube.com"
|
|
"youtu.be"
|
|
"yt.be"
|
|
"youtube-nocookie.com"
|
|
"youtubeeducation.com"
|
|
"youtubegaming.com"
|
|
"ytimg.com"
|
|
)
|
|
|
|
shopt -s nocasematch
|
|
|
|
match_found="false"
|
|
|
|
for possible_site in ${supported_sites[@]}
|
|
do
|
|
declare -n possible_domains="$possible_site"
|
|
for domain in ${possible_domains[@]}
|
|
do
|
|
if [[ "$url" == *$domain* ]]
|
|
then
|
|
site="$possible_site"
|
|
match_found="true"
|
|
break
|
|
fi
|
|
done
|
|
if [[ $match_found == "true" ]]
|
|
then
|
|
break
|
|
fi
|
|
done
|
|
|
|
shopt -u nocasematch
|