From 3724eba835d5a2eb5b71403b84f8ec1a7af5d703 Mon Sep 17 00:00:00 2001 From: Dirk Reiners Date: Fri, 16 Jan 2015 12:05:36 -0600 Subject: [PATCH] Cyanide And Happiness: Fix for new website format --- dosagelib/plugins/c.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 57ced8a8a..6480ba53d 100755 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -411,11 +411,11 @@ class Curvy(_BasicScraper): class CyanideAndHappiness(_BasicScraper): url = 'http://www.explosm.net/comics/' - starter = bounceStarter(url, compile(tagre("a", "href", r"(/comics/\d+/)", before="next"))) + starter = bounceStarter(url, compile(tagre("a", "href", r"(/comics/\d+/)", after="next-comic"))) stripUrl = url + '%s/' firstStripUrl = stripUrl % '15' - imageSearch = compile(tagre("img", "src", r'(http://(?:www\.)?explosm\.net/db/files/[^"]+)', before="a daily webcomic")) - prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', before="prev")) + imageSearch = compile(tagre("img", "src", r'(//files.explosm.net/comics/[^"]+)', before="main-comic")) + prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', after="previous-comic")) help = 'Index format: n (unpadded)' def shouldSkipUrl(self, url, data):