This commit is contained in:
2025-01-13 18:32:09 +01:00
parent 42ab6c073a
commit a353c795c9
3 changed files with 13 additions and 9 deletions

View File

@@ -1,9 +1,11 @@
#!/bin/bash
attuale=$(<$PWD/attuale.txt)
PWD_SC="$PWD"
attuale=$(<$PWD_SC/attuale.txt)
nuovo=$(curl --no-progress-meter -L $attuale | sed -n 's/.*\(https:\/\/cdn\.streamingcommunity\.[^ ]*images[^ ]*\).*/\1/p' | grep -oP 'streamingcommunity\.\w+(\.\w+)?')
if [ "$attuale" != "$nuovo" ]; then
attuale="$nuovo"
echo "$attuale" > $PWD/attuale.txt
echo "$attuale" > $PWD_SC/attuale.txt
fi
echo -e "\n $attuale\n"