From 191f207035e2a954c512a5853c6784e8e76a965f Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 28 Apr 2018 14:51:57 -0500 Subject: [PATCH] Update konachan image url filter to choose png over jpg --- lib/profiles/konachan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/profiles/konachan.sh b/lib/profiles/konachan.sh index 4e7337d..8692572 100644 --- a/lib/profiles/konachan.sh +++ b/lib/profiles/konachan.sh @@ -11,7 +11,7 @@ konachan_id_filter() { sed -e 's#^.*/post/show/\([0-9]\+\)\($\|/.*$\)#\1#' } konachan_image_url_filter() { - sed -e '/id="\(png\|highres\)"/!d;' | sort -b | tail -n 1 | sed -e 's/^.*href="\([^"]*\)".*$/\1/i; /^\/\//s/^/https:/' + sed -e '/id="\(png\|highres\)"/!d;' | sed -e 's/^.*href="\([^"]*\)".*$/\1/i; /^\/\//s/^/https:/' | sort -b | head -n 1 } konachan_image_tags_filter() { sed -e '/id="tag-sidebar"/,/<\/ul>/!d; s/<\/li>/&\n/g' | sed -e '/class="tag-link/!d; s/\([^?]\)<\/a>.*$/\1/; s/^.*>//; s/ /_/g' -- 2.42.0