MenageA3 naming fix

This commit is contained in:
Dirk Reiners 2018-04-20 19:25:55 -05:00 committed by Tobias Gruetzmacher
parent cba9edbdec
commit 050a0dc97c

View file

@ -120,6 +120,15 @@ class MenageA3(_ComicControlScraper):
adult = True adult = True
url = 'http://www.ma3comic.com/' url = 'http://www.ma3comic.com/'
@classmethod
def namer(cls, imageUrl, pageUrl):
"""Remove random junk from image names."""
imgname = imageUrl.split('/')[-1]
imgbase = imgname.rsplit('-', 1)[1]
return '%s' % (imgbase)
help = 'Index format: name'
class Metacarpolis(_ComicControlScraper): class Metacarpolis(_ComicControlScraper):
url = 'http://www.metacarpolis.com' url = 'http://www.metacarpolis.com'