forked from scossa/StreamingCommunity
newmethod
This commit is contained in:
1
attuale.txt
Normal file
1
attuale.txt
Normal file
@@ -0,0 +1 @@
|
||||
streamingcommunity.ooo
|
||||
@@ -1 +1,4 @@
|
||||
giusto=$(curl -L https://www.giardiniblog.it/streamingcommunity-nuovo-link/ | grep -oP '(?<=<strong>).*?(?=</strong></span></p>)' | grep -oP 'https://streamingcommunity.*') ; echo -e "\n$giusto\n"
|
||||
attuale=$(<attuale.txt)
|
||||
nuovo=$(curl -L $attuale | grep -oP '(?<=<strong>).*?(?=</strong></span></p>)' | grep -oP 'https://streamingcommunity.*')
|
||||
echo "$nuovo" > attuale.txt
|
||||
echo -e "\n$nuovo\n"
|
||||
|
||||
@@ -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