From 66f6b0816352c631f9c98e7ba9894264098226a0 Mon Sep 17 00:00:00 2001 From: Peter B Date: Thu, 23 Jan 2014 20:23:24 -0500 Subject: [PATCH] Added MrLovenstein Comic --- dosagelib/plugins/m.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) mode change 100644 => 100755 dosagelib/plugins/m.py diff --git a/dosagelib/plugins/m.py b/dosagelib/plugins/m.py old mode 100644 new mode 100755 index 9750b5bd1..7b84fd9c6 --- a/dosagelib/plugins/m.py +++ b/dosagelib/plugins/m.py @@ -128,6 +128,22 @@ class Misfile(_BasicScraper): help = 'Index format: yyyy-mm-dd' +class MrLovenstein(_BasicScraper): + url = 'http://www.mrlovenstein.com/' + rurl = escape(url) + stripUrl = url + 'comic/%s#comic' + firstStripUrl = stripUrl % '1' + imageSearch = ( + #captures rollover comic + compile(tagre("div", "class", r'comic_image') + "\s*.*\s*" + tagre("div", "style", r'display: none;') + "\s*.*\s*" + tagre("img", "src", r'(/images/comics/[^"]+)')), + #captures standard comic + compile(tagre("img", "src", r'(/images/comics/[^"]+)', before="comic_main_image")), + ) + prevSearch = compile(tagre("a", "href", r'([^"]+)') + tagre("img", "src", "/images/nav_left.png")) + textSearch = compile(r'') + help = 'Index Format: n' + + class MyCartoons(_BasicScraper): url = 'http://mycartoons.de/' rurl = escape(url)