Adapt to new random0 page
This commit is contained in:
		
							parent
							
								
									b13444dc8b
								
							
						
					
					
						commit
						49a803c336
					
				|  | @ -3,7 +3,7 @@ | |||
| # Description:            Get a quot from http://danstonchat.com | ||||
| 
 | ||||
| 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 | ||||
|   printf '%b' "Please install lynx package.\n" | ||||
| fi | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue