diff --git a/attuale.txt b/attuale.txt index a80c868..7c2c096 100644 --- a/attuale.txt +++ b/attuale.txt @@ -1 +1 @@ -streamingcommunity.hiphop +streamingunity.to diff --git a/make_index.sh b/make_index.sh index 996f8ba..d8a29dd 100755 --- a/make_index.sh +++ b/make_index.sh @@ -7,7 +7,9 @@ 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+)?' | head -n1) +nuovo=$(curl --no-progress-meter -L $attuale grep -oP 'streamingcommunity\w+(\.\w+)?' | grep -v streamingcommunityorigiale | head -n1) +#vecchio curl +#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 diff --git a/show_link.sh b/show_link.sh index e82829f..6845254 100755 --- a/show_link.sh +++ b/show_link.sh @@ -5,7 +5,10 @@ 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+)?' | head -n1) +nuovo=$(curl --no-progress-meter -L $attuale | grep -oP 'streaming\w+(\.\w+)?' | grep -v streamingcommunityorigiale | 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" # Se il nuovo link è diverso dal nuovo, allora... if [ "$attuale" != "$nuovo" ]; then