commit a539589fa5a6036f02cb9cf5ab304e1bae2a86d4 parent 170ab29aca28ddeebd466a44e907f8583e7006a9 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Fri, 20 Dec 2024 09:12:14 +0100 fix: some domains do not have a sub Diffstat:
M | fetch_favicon.sh | | | 2 | +- |
M | run.sh | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fetch_favicon.sh b/fetch_favicon.sh @@ -12,7 +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' | \ + echo "$URLS" | sed -E -e 's/https:\/\/([^\.]*\.*)([^\.]+\.[^\/]+).*$/\2/g' | \ sort | uniq ` 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:\/\/([^\.]*\.*)([^\.]+\.[^\/]+)[^\"]*(\"[^>]*>)-->/\2/g' \ -i "$HTML" # Insert feeds list