fix link multipli

This commit is contained in:
2025-03-09 19:28:29 +01:00
parent b911d0fcab
commit 7f1f4fd518
7 changed files with 3 additions and 293 deletions

View File

@@ -7,7 +7,7 @@ PWD_SC="$PWD"
# Segue link per vedere se è stato aggiornato...
attuale="$(cat "$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+)?')
nuovo=$(curl --no-progress-meter -L $attuale | sed -n 's/.*\(https:\/\/cdn\.streamingcommunity\.[^ ]*images[^ ]*\).*/\1/p' | grep -oP 'streamingcommunity\.\w+(\.\w+)?' | head -n1)
# Se il nuovo link è diverso dal nuovo, allora...
if [ "$attuale" != "$nuovo" ]; then