Adjust togglcomic opener again - plumb - Open certain URL patterns with an ad-hoc opener (plumber)
(HTM) hg clone https://bitbucket.org/iamleot/plumb
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset a5cd80659c07d990726f68e8f5728cb2e397726e
(DIR) parent 78f0bd0a35ca7d168489d5e737668adbd663343c
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 14 Jan 2019 21:13:16
Adjust togglcomic opener again
Diffstat:
openers/togglcomic | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r 78f0bd0a35ca -r a5cd80659c07 openers/togglcomic
--- a/openers/togglcomic Thu Jan 03 01:41:13 2019 +0100
+++ b/openers/togglcomic Mon Jan 14 21:13:16 2019 +0100
@@ -2,6 +2,6 @@
for u in "$@"; do
jpgurl=$(curl -gs -L "$u" |
- xmllint --html --xpath 'string(//img[contains(@class, "size-full")]/@src)' - 2>/dev/null)
+ xmllint --html --xpath 'string(//figure/img/@src)' - 2>/dev/null)
plumb "${jpgurl}"
done