Cyanide & Happiness regex change

Small modification to fix failures on several outlier comics where the URL was set differently.
This commit is contained in:
Nick Bronson 2021-03-18 00:40:29 +11:00
parent 59e7e16100
commit a7db3db83d

View file

@ -456,7 +456,7 @@ class CyanideAndHappiness(_BasicScraper):
url = 'http://explosm.net/comics/'
stripUrl = url + '%s/'
firstStripUrl = stripUrl % '15'
imageSearch = compile(tagre("img", "src", r'(//files.explosm.net/comics/[^"]+)', before="main-comic"))
imageSearch = compile(tagre("img", "src", r'(.*files.explosm.net/[^/]+/[^"]+)', before="main-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)'