newmethod

This commit is contained in:
2025-01-11 16:01:17 +01:00
parent c9cbf60335
commit 663407634e
3 changed files with 15 additions and 4 deletions

View File

@@ -1,9 +1,16 @@
#!/bin/bash
giusto=$(curl -L https://www.giardiniblog.it/streamingcommunity-nuovo-link/ | grep -oP '(?<=<strong>).*?(?=</strong></span></p>)' | grep -oP 'https://streamingcommunity.*')
attuale=$(<attuale.txt)
formatted="${giusto#/*}"
formatted="${formatted%/}"
nuovo=$(curl -L $attuale | sed -n 's/.*\(https:\/\/cdn\.streamingcommunity\.[^ ]*images[^ ]*\).*/\1/p' | grep -oP 'streamingcommunity\.\w+(\.\w+)?')
if [ "$attuale" != "$nuovo" ]; then
attuale="$nuovo"
echo "$attuale" > attuale.txt
fi
formatted="https.//$(<attuale.txt)"
cat <<- _EOF > /var/www/html/scommunity/index.html
<!DOCTYPE html>