newmethod
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user