From dc427d6066019af55257ae4a4d8b8f3c37aea7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Sun, 26 Apr 2015 21:52:31 +1200 Subject: [PATCH] fixed the gamercat --- dosagelib/plugins/t.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index 0967a8a8b..42b0d41a1 100755 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -3,7 +3,7 @@ # Copyright (C) 2012-2014 Bastian Kleineidam from re import compile, escape, IGNORECASE -from ..scraper import _BasicScraper +from ..scraper import _BasicScraper, _ParserScraper from ..helpers import indirectStarter from ..util import tagre @@ -46,14 +46,15 @@ class TheDreamlandChronicles(_BasicScraper): bp[2] = bp[2][:-1] return "%s-%s-%s.%s" % (bp[0], bp[1], bp[2], ext) -class TheGamerCat(_BasicScraper): - url = 'http://www.thegamercat.com/' +class TheGamerCat(_ParserScraper): + url = "http://www.thegamercat.com/" rurl = escape(url) - stripUrl = url + '%s/' - firstStripUrl = stripUrl % '2011/06/06102011' - imageSearch = compile(tagre("img", "src", r'(%swordpress/comics/[^"/]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/[^"/]+/)' % rurl , after="navi navi-prev")) - help = 'Index format: yyyy/mm/mmddyyyy' + stripUrl = url + "comic/%s/" + firstStripUrl = stripUrl % "06102011" + css = True + imageSearch = '#comic img' + prevSearch = '.comic-nav-previous' + help = 'Index format: stripname' class TheGentlemansArmchair(_BasicScraper):