From 050a0dc97c4ef60c41bac719565d15162226d8ba Mon Sep 17 00:00:00 2001 From: Dirk Reiners Date: Fri, 20 Apr 2018 19:25:55 -0500 Subject: [PATCH] MenageA3 naming fix --- dosagelib/plugins/m.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dosagelib/plugins/m.py b/dosagelib/plugins/m.py index c6ecff466..d49851278 100755 --- a/dosagelib/plugins/m.py +++ b/dosagelib/plugins/m.py @@ -120,6 +120,15 @@ class MenageA3(_ComicControlScraper): adult = True 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): url = 'http://www.metacarpolis.com'