Fix Newshounds & ProjectionEdge split

This commit is contained in:
Techwolf 2019-07-10 01:05:36 -07:00 committed by Tobias Gruetzmacher
parent 5da87d5a66
commit 63da9dd0d4
3 changed files with 17 additions and 2 deletions

View file

@ -74,7 +74,6 @@ class KeenSpot(_ParserScraper):
cls('HeadTrip', 'headtrip'), cls('HeadTrip', 'headtrip'),
cls('HeroByNight', 'herobynight'), cls('HeroByNight', 'herobynight'),
cls('HoaxHunters', 'hoaxhunters'), cls('HoaxHunters', 'hoaxhunters'),
cls('InfinityRefugees', 'newshounds'),
cls('InHere', 'inhere'), cls('InHere', 'inhere'),
cls('JadeWarriors', 'jadewarriors'), cls('JadeWarriors', 'jadewarriors'),
cls('Katrina', 'katrina'), cls('Katrina', 'katrina'),
@ -90,6 +89,7 @@ class KeenSpot(_ParserScraper):
cls('NoRoomForMagic', 'noroomformagic'), cls('NoRoomForMagic', 'noroomformagic'),
cls('OutThere', 'outthere'), cls('OutThere', 'outthere'),
cls('Porcelain', 'porcelain'), cls('Porcelain', 'porcelain'),
cls('ProjectionEdge', 'newshounds'),
cls('PunchAnPie', 'punchanpie', path='daily/%s.html'), cls('PunchAnPie', 'punchanpie', path='daily/%s.html'),
cls('QUILTBAG', 'quiltbag'), cls('QUILTBAG', 'quiltbag'),
cls('RedSpike', 'redspike'), cls('RedSpike', 'redspike'),

View file

@ -73,6 +73,21 @@ class NerfNow(_WordPressScraper):
prevSearch = '//li[@id="nav_previous"]/a' prevSearch = '//li[@id="nav_previous"]/a'
class Newshounds(_ParserScraper):
stripUrl = 'http://www.newshounds.com/%s.html'
url = stripUrl % 'nh2/20140929'
firstStripUrl = stripUrl % 'nh1/19971101'
imageSearch = '//img[@class="ksc"]'
prevSearch = '//a[./img[@alt="Previous comic"]]'
endOfLife = True
def getPrevUrl(self, url, data):
# Add navigation link between comic and graphic novel
if url == self.stripUrl % 'nh2/20070201':
return self.stripUrl % 'nh1/20061208'
return super().getPrevUrl(url, data)
class NewWorld(_BasicScraper): class NewWorld(_BasicScraper):
url = 'http://www.tfsnewworld.com/' url = 'http://www.tfsnewworld.com/'
stripUrl = url + '%s/' stripUrl = url + '%s/'

View file

@ -706,7 +706,7 @@ class Renamed(Scraper):
cls('KeenSpot/AntiheroForHire', 'AntiheroForHire'), cls('KeenSpot/AntiheroForHire', 'AntiheroForHire'),
cls('KeenSpot/ElGoonishShive', 'ElGoonishShive'), cls('KeenSpot/ElGoonishShive', 'ElGoonishShive'),
cls('KeenSpot/ElGoonishShiveNP', 'ElGoonishShiveNP'), cls('KeenSpot/ElGoonishShiveNP', 'ElGoonishShiveNP'),
cls('KeenSpot/Newshounds', 'KeenSpot/InfinityRefugees'), cls('KeenSpot/Newshounds', 'Newshounds'),
cls('KeenSpot/SinFest', 'SinFest'), cls('KeenSpot/SinFest', 'SinFest'),
cls('KeenSpot/TheGodChild', 'GodChild'), cls('KeenSpot/TheGodChild', 'GodChild'),
cls('PetiteSymphony/Djandora', 'ComicsBreak/Djandora'), cls('PetiteSymphony/Djandora', 'ComicsBreak/Djandora'),