diff options
Diffstat (limited to 'bin')
-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" |