Commit 5cc7e3fe authored by Aurélio A. Heckert's avatar Aurélio A. Heckert

FUUUUU!!! Evento sem data!

parent 959fa4c8
......@@ -21,9 +21,16 @@ case $category in
;;
evento)
splitRE='.*<span class="tema-item">(\s*[0-9].*?)</span>.*<a class="titulo-item" href="([^"]+)">(.*?)</a>.*'
url=$( echo $item | sed -r "s#$splitRE#\2#")
ev_date=$(echo $item|sed -r "s#$splitRE#\1#" | sed -r "s#<[^>]+>##g; s#^\s|\s\$##g; s#'#’#g; s# e outubro# de outubro#")
title=$(echo $item | sed -r "s#$splitRE#\3#" | sed -r "s#<[^>]+>##g; s#^\s|\s\$##g; s#'#’#g")
if (echo $item | egrep -q "$splitRE"); then
url=$( echo $item | sed -r "s#$splitRE#\2#")
ev_date=$(echo $item|sed -r "s#$splitRE#\1#" | sed -r "s#<[^>]+>##g; s#^\s|\s\$##g; s#'#’#g; s# e outubro# de outubro#")
title=$(echo $item | sed -r "s#$splitRE#\3#" | sed -r "s#<[^>]+>##g; s#^\s|\s\$##g; s#'#’#g")
else
splitRE='.*<a class="titulo-item" href="([^"]+)">(.*?)</a>.*'
url=$( echo $item | sed -r "s#$splitRE#\1#")
title=$(echo $item | sed -r "s#$splitRE#\2#" | sed -r "s#<[^>]+>##g; s#^\s|\s\$##g; s#'#’#g")
ev_date='1 de janeiro de 1999'
fi
tema=evento
;;
*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment