diff --git a/dosagelib/plugins/b.py b/dosagelib/plugins/b.py index 8afed908d..196543967 100644 --- a/dosagelib/plugins/b.py +++ b/dosagelib/plugins/b.py @@ -84,12 +84,13 @@ class Beetlebum(_BasicScraper): return name -class BetterDays(_BasicScraper): +class BetterDays(_ParserScraper): url = 'http://jaynaylor.com/betterdays/' stripUrl = url + 'archives/%s.html' firstStripUrl = stripUrl % '2003/04/post-2' - imageSearch = compile(tagre("img", "src", r'(/betterdays/comic/[^>]+)', quote="")) - prevSearch = compile(tagre("a", "href", r'([^"]+)') + '« Previous') + imageSearch = '//img[contains(@src, "/betterdays/comic/")]' + prevSearch = '//a[contains(text(), "Previous")]' + endOfLife = True help = 'Index format: yyyy/mm/'