Verified Commit 5b3566ad authored by Valo's avatar Valo
Browse files

added sad workaround for new 4chan server infrastructure

parent dcc567bf
......@@ -3,7 +3,7 @@
#8format: 48chdl https://8ch.net/.../res/.../...
case "$@" in
(*'4chan.org'*) DIRNAME=$(echo "$@" | sed -r 's/.+s\.(4chan).+g\/(.+)\/.+d\/(.+.)/\1\/\2\/\3/') ; wget -P "$DIRNAME" -nd -r -l 1 -H -D i.4cdn.org -A png,gif,jpg,jpeg,webm "$@" ;;
(*'4chan.org'*) DIRNAME=$(echo "$@" | sed -r 's/.+s\.(4chan).+g\/(.+)\/.+d\/(.+.)/\1\/\2\/\3/') ; wget -P "$DIRNAME" -nd -r -l 1 -H -D 4chan.org -A png,gif,jpg,jpeg,webm "$@" ;;
(*'8ch.net'*) DIRNAME=$(echo "$@" | sed -r 's/.+\/(8ch).+(\/.+\/).+\/(.+)\..+/\1an\2\3/') ; wget -P "$DIRNAME" -nd -r -l 1 -H -D media.8ch.net -A png,gif,jpg,jpeg,webm "$@" ;;
esac
rm -f $DIRNAME/*s\.* #delete all thumbnails
......
Supports Markdown
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