pub / newsplanet

Planet-Style Newsfeed generated with perlanet
git clone https://src.jayvii.de/pub/newsplanet.git
Home | Log | Files | Exports | Refs | README | RSS

commit c08fa3bec35364ac171e85965cdec784faaa7b88
parent a539589fa5a6036f02cb9cf5ab304e1bae2a86d4
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Fri, 20 Dec 2024 09:15:55 +0100

fix: revert domain restriction

Diffstat:
Mfetch_favicon.sh | 3+--
Mrun.sh | 2+-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/fetch_favicon.sh b/fetch_favicon.sh @@ -12,8 +12,7 @@ URLS=`grep -E "^\s*-*\ web:" "$CONFIG" | sed -e 's/^.*web:\ //g'` # get domains DOMAINS=` - echo "$URLS" | sed -E -e 's/https:\/\/([^\.]*\.*)([^\.]+\.[^\/]+).*$/\2/g' | \ - sort | uniq + echo "$URLS" | sed -E -e 's/https:\/\/([^\/]*).*$/\2/g' | sort | uniq ` # Ensure directory exists diff --git a/run.sh b/run.sh @@ -44,7 +44,7 @@ sed -E -e "s/<\!--MANIFEST-->/\"$MANIFEST\"/" -i "$HTML" # insert feed domain sed -E \ - -e 's/<\!--IMG\ src=\"https:\/\/([^\.]*\.*)([^\.]+\.[^\/]+)[^\"]*(\"[^>]*>)-->/\2/g' \ + -e 's/<\!--IMG\ src=\"https:\/\/([^\/]+)[^\"]*(\"[^>]*>)-->/\1/g' \ -i "$HTML" # Insert feeds list