From 6bd534eaedb82df8ae817ef6c66c6ce9a498e945 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 24 Jun 2013 20:19:33 +0200 Subject: [PATCH] Fix OnTheFasttrack --- dosagelib/plugins/o.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/dosagelib/plugins/o.py b/dosagelib/plugins/o.py index 25ff1985b..0ba5e8bd9 100644 --- a/dosagelib/plugins/o.py +++ b/dosagelib/plugins/o.py @@ -80,6 +80,17 @@ class OnTheEdge(_BasicScraper): help = 'Index format: nnn (unpadded)' +class OnTheFasttrack(_BasicScraper): + url = 'http://www.onthefastrack.com/' + rurl = escape(url) + stripUrl = url + '/?webcomic1=%s' + firstStripUrl = stripUrl % '2010-08-09' + imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/[^"]+-\d+-\d+\.[^"]+)' % rurl)) + prevSearch = compile(tagre("a", "href", r'(%s\?webcomic1=[^"]+)' % rurl, after="prev")) + description = u'On The Fasttrack by Bill Holbrook' + help = 'Index format: yyyy-mm-dd' + + class OneQuestion(_BasicScraper): url = 'http://onequestioncomic.com/' stripUrl = url + 'comic.php?strip_id=%s' @@ -117,12 +128,3 @@ class OverCompensating(_BasicScraper): imageSearch = compile(r']+?> \<\-  ') help = 'Index format: yyyymmdd' - -class OnTheFasttrack(_BasicScraper): - description = u"On The Fastrack" - url = 'http://www.onthefastrack.com/' - stripUrl = url + '/?webcomic1=%s' - firstStripUrl = stripUrl % '2010-08-09' - imageSearch = compile(r'