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