summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorPeter2020-09-30 00:08:13 +0100
committerPeter2020-09-30 00:08:13 +0100
commit0533f96e65479636db4ade2db473f7b9890dea07 (patch)
tree8505ee4f7223e8271b995fe9e3e6c131206100c5 /.local
parent8a8ee085cf34cf815b2e25bf75f5df497d18ad7b (diff)
downloaddotfiles-0533f96e65479636db4ade2db473f7b9890dea07.tar.gz
dotfiles-0533f96e65479636db4ade2db473f7b9890dea07.tar.bz2
dotfiles-0533f96e65479636db4ade2db473f7b9890dea07.zip
Better implementation
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/comicviewer2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/comicviewer b/.local/bin/comicviewer
index b828b36..79df576 100755
--- a/.local/bin/comicviewer
+++ b/.local/bin/comicviewer
@@ -10,7 +10,7 @@ elif [[ $input =~ Buttersafe ]]; then grab | awk -F\" '/\/comics\// {print $2}'
elif [[ $input =~ dilbert.com ]]; then grab | awk -F\" '/data-image/ {print $2}' | viewer
elif [[ $input =~ explosm.net ]]; then grab | awk -F\" '/main-comic/ {print $4}' | cut -f1 -d\? | sed -e 's/^/"https:/' -e 's/$/"/' | viewer
elif [[ $input =~ extrafabulouscomics.com ]]; then grab | tr "\"" "\n" | awk -F\? '/uploads/ && /?/ {print $1}' | viewer
-elif [[ $input =~ loadingartist.com ]]; then grab | awk -F\" '/uploads/ {print $8}' | viewer
+elif [[ $input =~ loadingartist.com ]]; then grab | tr "\"" "\n" | awk '/uploads/ && /wp-content/' | viewer
elif [[ $input =~ PoorlyDrawnLines ]]; then grab | awk -F"src" '/wp-block-image/ {print $2}' | cut -f2 -d\" | viewer
elif [[ $input =~ satwcomic ]]; then grab | awk -F\" '/art/ && /core/ {print $4}' | viewer
elif [[ $input =~ theoatmeal.com ]]; then grab | awk -F\" '/comics/ && /img src/ {print $2}' | viewer