Fix SlightlyDamned

This commit is contained in:
Techwolf 2019-06-11 23:20:34 -07:00 committed by Tobias Gruetzmacher
parent e24c0ae557
commit 764a8ce6f6

View file

@ -254,7 +254,16 @@ class SleeplessDomain(_ComicControlScraper):
class SlightlyDamned(_ComicControlScraper):
url = 'http://www.sdamned.com/'
firstStripUrl = url + 'comic/part-one-to-hell-and-back'
firstStripUrl = url + 'comic/prologue'
def namer(self, imageurl, pageurl):
"""Clean up mixed filename formats."""
filename = pageurl.rsplit('/', 1)[-1]
if filename == '':
filename = imageurl.rsplit('-', 1)[-1]
else:
filename = 'SD' + filename + '.' + imageurl.rsplit('.', 1)[-1]
return filename
class SluggyFreelance(_ParserScraper):