Some minor fixes to make some modules work again.

This commit is contained in:
Tobias Gruetzmacher 2017-11-27 01:04:35 +01:00
parent 405c4c0b43
commit 75aa7207ea
5 changed files with 13 additions and 8 deletions

View file

@ -234,6 +234,11 @@ class Annyseed(_ParserScraper):
def imageUrlModifier(self, image_url, data):
return self.FIX_RE.sub('', image_url)
def link_modifier(self, fromurl, tourl):
"""Fix circular link."""
if 'Annyseed150' in fromurl and 'Annyseed150' in tourl:
return self.stripUrl % '149'
return tourl
class AppleGeeks(_BasicScraper):
url = 'http://www.applegeeks.com/'
@ -257,7 +262,7 @@ class ARedTailsDream(_BasicScraper):
class Ashes(_WordPressScraper):
url = 'http://www.flowerlarkstudios.com/comic/prologue/10232009/'
url = 'http://www.flowerlarkstudios.com/comicpage/prologue/10232009/'
firstStripUrl = url
latestSearch = WP_LATEST_SEARCH
starter = indirectStarter

View file

@ -54,9 +54,9 @@ class Baroquen(_BasicScraper):
class Bearmageddon(_WordPressScraper):
url = 'http://bearmageddon.com/'
firstStripUrl = url + '2011/08/01/page-1/'
latestSearch = '//a[div[%s]]' % xpath_class('latest-page')
url = 'http://bearmageddon.com/bearmo/page-1/'
firstStripUrl = url
latestSearch = '//a[%s]' % xpath_class('comic-nav-last')
starter = indirectStarter

View file

@ -28,7 +28,7 @@ class EarthsongSaga(_ParserScraper):
class EasilyAmused(_WordPressScraper):
url = 'http://www.flowerlarkstudios.com/comic/college-daze/ea01/'
url = 'http://www.flowerlarkstudios.com/comicpage/college-daze/ea01/'
firstStripUrl = url
latestSearch = WP_LATEST_SEARCH
starter = indirectStarter
@ -117,7 +117,7 @@ class Erstwhile(_WPNavi):
class Eryl(_WordPressScraper):
url = 'http://www.flowerlarkstudios.com/comic/prologue-migration/page-i/'
url = 'http://www.flowerlarkstudios.com/comicpage/prologue-migration/page-i/'
firstStripUrl = url
latestSearch = WP_LATEST_SEARCH
starter = indirectStarter

View file

@ -35,7 +35,7 @@ class Lackadaisy(_BasicScraper):
class Laiyu(_WordPressScraper):
url = 'http://www.flowerlarkstudios.com/comic/preliminary-concepts/welcome/'
url = 'http://www.flowerlarkstudios.com/comicpage/preliminary-concepts/welcome/'
firstStripUrl = url
latestSearch = WP_LATEST_SEARCH
starter = indirectStarter

View file

@ -108,7 +108,7 @@ class NobodyScores(_BasicScraper):
class NoMoreSavePoints(_WordPressScraper):
url = 'http://www.flowerlarkstudios.com/comic/no-more-save-points/mushroom-hopping/'
url = 'http://www.flowerlarkstudios.com/comicpage/no-more-save-points/mushroom-hopping/'
firstStripUrl = url
latestSearch = WP_LATEST_SEARCH
starter = indirectStarter