Try to address youtube torracism by using invidio.us - annna - Annna the nice f… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit b90b5e2fbe2814c2b6681fae93e1fca5999577c2 | |
parent f871cb5ba6306b07773dd34c662fec7b59055564 | |
Author: Leonardo Taccari <[email protected]> | |
Date: Mon, 8 Jun 2020 17:14:08 +0200 | |
Try to address youtube torracism by using invidio.us | |
The title is now fetched from corresponding invidio.us URL and the | |
corresponding invidious URL is printed as well. | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-start-services | 11 ++++++----- | |
1 file changed, 6 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -80,13 +80,14 @@ annna_common() { | |
esac | |
fi | |
- if expr "${uri}" : '^https*://[^/]*youtu\(\.be\|be\..\… | |
- then | |
+ case "${uri}" in | |
+ *youtube.com/*|*youtu.be/*) | |
+ nuri="https://invidio.us/${uri#https*://*/}" | |
+ urititle="$(curl-grabtitle "${nuri}")" | |
sturi="$(subtitle-paste "${uri}")" | |
+ nuri="invidious: ${nuri}" | |
nocuri=0 | |
- fi | |
- | |
- case "${uri}" in | |
+ ;; | |
*twitter.com*) | |
nuri="$(printf "%s\n" "${uri}" | sed 's;\(mobi… | |
suri="$(screenshot-paste "${nuri}")" |