From 138f6001db71d0972362fb3e68e602ded62b46ea Mon Sep 17 00:00:00 2001 From: Techwolf Date: Thu, 4 Jul 2019 20:04:27 -0700 Subject: [PATCH] Fix Flipside --- dosagelib/plugins/f.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dosagelib/plugins/f.py b/dosagelib/plugins/f.py index 777af4e5f..efdd51feb 100644 --- a/dosagelib/plugins/f.py +++ b/dosagelib/plugins/f.py @@ -82,14 +82,12 @@ class Flemcomics(_BasicScraper): help = 'Index format: yyyymmdd' -class Flipside(_BasicScraper): +class Flipside(_ParserScraper): url = 'http://flipside.keenspot.com/comic.php' - rurl = escape(url) stripUrl = url + '?i=%s' firstStripUrl = stripUrl % '1' - imageSearch = compile(tagre("img", "src", r'(http://cdn\.flipside\.keenspot\.com/comic/[^"]+)')) - prevSearch = compile(tagre("a", "href", r'(%s\?i=\d+)' % rurl, - after="prev")) + imageSearch = '//img[contains(@src, "comic/")]' + prevSearch = '//a[@rel="prev"]' help = 'Index format: nnnn'