Fix "Extra Fabulous Comics" (fixes #129)

This commit is contained in:
Tobias Gruetzmacher 2019-12-03 19:50:41 +01:00
parent ddba32391b
commit d2861d029f
2 changed files with 6 additions and 6 deletions

View file

@ -20,6 +20,7 @@ WP_LATEST_SEARCH = '//a[%s]' % xpath_class('comic-nav-last')
class _WordPressScraper(_ParserScraper): class _WordPressScraper(_ParserScraper):
imageSearch = '//div[@id="comic"]//img' imageSearch = '//div[@id="comic"]//img'
prevSearch = '//a[%s]' % xpath_class('comic-nav-previous') prevSearch = '//a[%s]' % xpath_class('comic-nav-previous')
nextSearch = '//a[%s]' % xpath_class('comic-nav-next')
class _WPNavi(_WordPressScraper): class _WPNavi(_WordPressScraper):

View file

@ -1,14 +1,14 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam # Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2018 Tobias Gruetzmacher # Copyright (C) 2015-2019 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function from __future__ import absolute_import, division, print_function
import os import os
from re import compile, escape, IGNORECASE from re import compile, escape, IGNORECASE
from ..helpers import indirectStarter, xpath_class from ..helpers import bounceStarter, indirectStarter, xpath_class
from ..scraper import _BasicScraper, _ParserScraper from ..scraper import _BasicScraper, _ParserScraper
from ..util import tagre from ..util import tagre
from .common import _ComicControlScraper, _WordPressScraper, _WPNavi, WP_LATEST_SEARCH from .common import _ComicControlScraper, _WordPressScraper, _WPNavi, WP_LATEST_SEARCH
@ -160,10 +160,9 @@ class ExploitationNow(_WPNavi):
class ExtraFabulousComics(_WordPressScraper): class ExtraFabulousComics(_WordPressScraper):
url = 'http://extrafabulouscomics.com/comic/buttfly/' url = 'https://extrafabulouscomics.com/'
firstStripUrl = url firstStripUrl = url + 'comic/buttfly/'
latestSearch = '//a[%s]' % xpath_class('navi-last') starter = bounceStarter
starter = indirectStarter
multipleImagesPerStrip = True multipleImagesPerStrip = True
def namer(self, image_url, page_url): def namer(self, image_url, page_url):