From 01c1b0477895b08c909c8b9432e6395d1cd2a842 Mon Sep 17 00:00:00 2001 From: Dirk Reiners Date: Fri, 20 Apr 2018 19:19:01 -0500 Subject: [PATCH] CyanideAndHappiness fix --- dosagelib/plugins/c.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index e48a589b9..5545b641e 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -292,13 +292,12 @@ class Curvy(_ParserScraper): class CyanideAndHappiness(_BasicScraper): - url = 'http://www.explosm.net/comics/' - starter = bounceStarter + url = 'http://www.explosm.net/' stripUrl = url + '%s/' firstStripUrl = stripUrl % '15' imageSearch = compile(tagre("img", "src", r'(//files.explosm.net/comics/[^"]+)', before="main-comic")) - prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', after="previous-comic")) - nextSearch = compile(tagre("a", "href", r"(/comics/\d+/)", after="next-comic")) + prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', after="nav-previous")) + nextSearch = compile(tagre("a", "href", r"(/comics/\d+/)", after="nav-next")) help = 'Index format: n (unpadded)' def shouldSkipUrl(self, url, data):