Add Delve

This commit is contained in:
Techwolf 2019-07-13 02:15:14 -07:00 committed by Tobias Gruetzmacher
parent 2857189068
commit 561646c9c4

View file

@ -95,6 +95,26 @@ class DeepFried(_BasicScraper):
help = 'Index format: none' help = 'Index format: none'
class Delve(_WordPressScraper):
url = 'http://thisis.delvecomic.com/NewWP/'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % 'in-too-deep'
adult = True
maxLen = len('episode999')
def namer(self, imageUrl, pageUrl):
# Fix inconsistent filenames
filename = imageUrl.rsplit('/', 1)[-1].rsplit('?', 1)[0]
if (pageUrl == self.stripUrl % 'engagement' or
pageUrl == self.stripUrl % 'losing-it'):
self.maxLen = self.maxLen - 1
if ('episode' in filename and
len(filename) - len('.jpg') > self.maxLen and
filename[self.maxLen] != '-'):
filename = filename[:self.maxLen] + '-' + filename[self.maxLen:]
return filename
class DemolitionSquad(_ParserScraper): class DemolitionSquad(_ParserScraper):
url = 'http://www.demolitionsquad.de/' url = 'http://www.demolitionsquad.de/'
stripUrl = url + '?comicbeitrag=%s' stripUrl = url + '?comicbeitrag=%s'