Commit bdd8be31 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: parse data-file= too

parent 9d21a86e
...@@ -405,7 +405,7 @@ make_fileurl() ...@@ -405,7 +405,7 @@ make_fileurl()
get_urls() get_urls()
{ {
# cat html, divide to lines by tags and cut off hrefs only # cat html, divide to lines by tags and cut off hrefs only
scat $URL | sed -e 's|<|<\n|g' | \ scat $URL | sed -e 's|<|<\n|g' -e 's|data-file=|href=|g' | \
grep -i -o -E 'href="(.+)"' | cut -d'"' -f2 grep -i -o -E 'href="(.+)"' | cut -d'"' -f2
} }
......
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