diff options
author | Phillip Berndt <pberndt@spline.de> | 2018-07-23 21:39:57 +0200 |
---|---|---|
committer | Phillip Berndt <pberndt@spline.de> | 2018-07-23 21:39:57 +0200 |
commit | f7b1e6f7d0770ac35ee4e15c833667474d3d99b4 (patch) | |
tree | e255b3d615d3789a86b6b99cb8bac8382559d1d0 | |
parent | b0bdcbd3f96621b1e145d0cefa33d0f1d87f5e68 (diff) | |
download | comics-f7b1e6f7d0770ac35ee4e15c833667474d3d99b4.tar.gz comics-f7b1e6f7d0770ac35ee4e15c833667474d3d99b4.tar.bz2 comics-f7b1e6f7d0770ac35ee4e15c833667474d3d99b4.zip |
Fix extrafabolous/smbc
-rwxr-xr-x | bin/comics/extrafabulous | 2 | ||||
-rwxr-xr-x | bin/comics/smbc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/comics/extrafabulous b/bin/comics/extrafabulous index 46f1604..d8ec9b6 100755 --- a/bin/comics/extrafabulous +++ b/bin/comics/extrafabulous @@ -26,7 +26,7 @@ if [ -z $URL ]; then fi echo URL $URL gefunden -URL=$(wget -O - "$URL" | sed -nre 's#.*<img src="(http://extrafabulouscomics.com/wp-content/[^"]+)".+#\1#p') +URL=$(wget -O - "$URL" | sed -nre 's#.*<meta property="og:image" content="([^"]+)".+#\1#p') if [ -z $URL ]; then echo "Comic URL nicht gefunden!!" diff --git a/bin/comics/smbc b/bin/comics/smbc index 6b6fcb4..ead78e4 100755 --- a/bin/comics/smbc +++ b/bin/comics/smbc @@ -25,7 +25,7 @@ echo Symlink: $SYM if [ -n "$SYM" ]; then - IMG=$(wget ${wget_args} -O - "http://www.smbc-comics.com/comic/${SYM}" | sed -nre 's#.+src="(http://www.smbc-comics.com/comics/[^"]+).+#\1#p') + IMG=$(wget ${wget_args} -O - "http://www.smbc-comics.com/comic/${SYM}" | sed -nre 's#.+src="(https?://www.smbc-comics.com/comics/[^"]+).+#\1#p') if [ -n "$IMG" ]; then wget ${wget_args} -O "$day.png" "$IMG" |