Migrate ComicFury to single-class module.
This commit is contained in:
parent
1834bf179f
commit
c62a7283a2
2 changed files with 1047 additions and 3992 deletions
File diff suppressed because it is too large
Load diff
|
@ -168,13 +168,12 @@ class ComicFuryUpdater(ComicListUpdater):
|
||||||
langopt = ''
|
langopt = ''
|
||||||
if lang != "english":
|
if lang != "english":
|
||||||
if lang in self.langmap:
|
if lang in self.langmap:
|
||||||
langopt = '\n lang = %r' % self.langmap[lang]
|
langopt = ", '%s'" % self.langmap[lang]
|
||||||
else:
|
else:
|
||||||
print("WARNING:", "Unknown language:", lang)
|
print("WARNING:", "Unknown language:", lang)
|
||||||
|
|
||||||
sub = urlsplit(url).hostname.split('.', 1)[0]
|
sub = urlsplit(url).hostname.split('.', 1)[0]
|
||||||
return u"class CF%s(_ComicFury):\n sub = %r%s" % (name, sub,
|
return u"cls('%s', '%s'%s)" % (name, sub, langopt)
|
||||||
langopt)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue