From 047f023e506a7c706f15ff4505bd0206f0895d5d Mon Sep 17 00:00:00 2001 From: Techwolf Date: Fri, 12 Jul 2019 20:44:27 -0700 Subject: [PATCH] Fix QuestionableContent --- dosagelib/plugins/q.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/q.py b/dosagelib/plugins/q.py index daa06ff70..2d80d88a6 100644 --- a/dosagelib/plugins/q.py +++ b/dosagelib/plugins/q.py @@ -26,12 +26,12 @@ class QuentynQuinnSpaceRanger(_ParserScraper): prevSearch = ('//a[@rel="prev"]', '//a[@title="Quentyn Quinn, Space Ranger"]') -class QuestionableContent(_BasicScraper): +class QuestionableContent(_ParserScraper): url = 'http://www.questionablecontent.net/' stripUrl = url + 'view.php?comic=%s' firstStripUrl = stripUrl % '1' - imageSearch = compile(tagre("img", "src", r'([^"]+/comics/[^"]+)')) - prevSearch = compile(tagre("a", "href", r'(view\.php\?comic=\d+)') + 'Previous') + imageSearch = '//img[contains(@src, "comics/")]' + prevSearch = '//a[text()="Previous"]' help = 'Index format: n (unpadded)'