non è sempre "streamingcommunity" il vero streamingcommunity pt2

This commit is contained in:
2025-05-20 23:48:36 +02:00
parent fcef9ca31e
commit c3832d4968
3 changed files with 90 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ PWD_SC="$PWD"
# Segue link per vedere se è stato aggiornato...
attuale="$(cat "$PWD_SC/attuale.txt")"
nuovo=$(curl --no-progress-meter -L $attuale | grep -oP 'streaming\w+(\.\w+)?' | grep -v streamingcommunityorigiale | head -n1)
nuovo=$(curl --no-progress-meter -L $attuale | grep -oP 'streaming\w+(\.\w+)?' | grep -v "streamingcommunityoriginale" | head -n1)
# vecchio grep/sed
#nuovo=$(curl --no-progress-meter -L $attuale | sed -n 's/.*\(https:\/\/cdn\.streaming\.[^ ]*images[^ ]*\).*/\1/p' | grep -oP 'streaming\.\w+(\.\w+)?' | head -n1)
#echo -e "\n\nQUA $nuovo"