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

ignore broken pic (ups)

parent ee12b9dc
......@@ -175,9 +175,9 @@ echo -n '' > $imgs_json
sed -r 's#<img [^>]*src="([^"]+)"[^>]*>#\n<img src="\1">\n#ig' $slug.html |
egrep '<img src="https?://www.cienciaecultura.ufba.br/([^"]+)">' |
grep -v 'http://urbanself-fp7.eu/wp/uploads/prof-dr-angelo-serpa.jpg' | # ignore broken pic
sed -r 's#<img src="([^"]+)">#\1#ig'
) | uniq |
grep -v 'prof-dr-angelo-serpa.jpg' | # ignore broken pic
while read img_url; do
img_file=$( echo $img_url | sed 's#.*wp-content/uploads/##; s#/#--#g; s#[^-.a-z0-9]#x#gi' )
mime="image/$( echo $img_file | tr [A-Z] [a-z] | sed -r 's#.*\.##; s#jpg#jpeg#' )"
......
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