Commit 6f6c07dc authored by Aurélio A. Heckert's avatar Aurélio A. Heckert

ignore mal formed article II

parent 7b403109
...@@ -46,9 +46,11 @@ case $category in ...@@ -46,9 +46,11 @@ case $category in
;; ;;
esac esac
baseURL='http://www.cienciaecultura.ufba.br/agenciadenoticias'
if [ \ if [ \
"$url" = "http://www.cienciaecultura.ufba.br/agenciadenoticias/noticias/ultimas/18606/" -o \ "$url" = "$baseURL/noticias/ultimas/18606/" -o \
"$url" = "http://www.cienciaecultura.ufba.br/agenciadenoticias/pesquisadores/henriette-ferreira-gomes/" \ "$url" = "$baseURL/pesquisadores/henriette-ferreira-gomes/" \
"$url" = "$baseURL/pesquisadores/katia-maria-coelho-de-carvalho-custodio-katia-de-carvalho/" \
]; then ]; then
echo '>> Link quebrado.' echo '>> Link quebrado.'
exit 0 exit 0
...@@ -173,7 +175,7 @@ echo -n '' > $imgs_json ...@@ -173,7 +175,7 @@ echo -n '' > $imgs_json
s#</div>#\n#g; s#</div>#\n#g;
' | ' |
grep '<div id="titulo-noticia">' | grep '<div id="titulo-noticia">' |
sed -r 's#.*<img[^>]* src="([^"]*)".*#\1#' sed -r 's#.*<img[^>]* src="(https?:[^"]*)".*#\1#'
fi fi
sed -r 's#<img [^>]*src="([^"]+)"[^>]*>#\n<img src="\1">\n#ig' $slug.html | sed -r 's#<img [^>]*src="([^"]+)"[^>]*>#\n<img src="\1">\n#ig' $slug.html |
......
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