Adapt to new random0 page

This commit is contained in:
Jeremy Gardais 2020-01-10 09:41:31 +01:00
parent b13444dc8b
commit 49a803c336
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# Description: Get a quot from http://danstonchat.com # Description: Get a quot from http://danstonchat.com
if [ $(command -v lynx) ]; then if [ $(command -v lynx) ]; then
lynx --dump --display_charset=utf8 http://danstonchat.com/random.html | awk '$4~"commentaires" && $0!~"RSS" { getline; while ($4!~"#") { print $0; getline;}; exit}' lynx --dump --display_charset=utf8 http://danstonchat.com/random0.html | awk '$0~"Ajouter une quote.*Betamod" && $0!~"Score" { getline; while ($0!~"Score") { print $0; getline;}; exit }'
else else
printf '%b' "Please install lynx package.\n" printf '%b' "Please install lynx package.\n"
fi fi