invidious: allow HTTP URLs too

This commit is contained in:
Lucas 2020-06-07 14:02:36 +00:00
parent 5fad16dbbd
commit b37356c964

View File

@ -31,11 +31,11 @@ api()
known_site() known_site()
{ {
printf "%s\n" "$1" | grep -Eq \ printf "%s\n" "$1" | grep -Eq \
-e "^https://(www\.)?youtube\.com/" \ -e "^https?://(www\.)?youtube\.com/" \
-e "^https://youtu\.be/" \ -e "^https?://youtu\.be/" \
-e "^https://(www\.)?invidio\.us/" \ -e "^https?://(www\.)?invidio\.us/" \
-e "^https://invidious\.snopyta\.org/" \ -e "^https?://invidious\.snopyta\.org/" \
-e "^https://yewtu\.be/" -e "^https?://yewtu\.be/"
} }
get_id_path() get_id_path()