Capitalize comic names.

This commit is contained in:
Bastian Kleineidam 2012-12-09 07:51:49 +01:00
parent 6422405af1
commit 5c34baa663
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ _nextSearch = compile(_linkSearch + tagre("img", "class", "arrow_next"))
_lastSearch = compile(_linkSearch + tagre("img", "class", "arrow_last")) _lastSearch = compile(_linkSearch + tagre("img", "class", "arrow_last"))
def add(name): def add(name):
classname = 'DrunkDuck_%s' % name classname = 'DrunkDuck_%s' % name.capitalize()
_url = 'http://www.drunkduck.com/%s/' % name _url = 'http://www.drunkduck.com/%s/' % name
@classmethod @classmethod

View file

@ -13,7 +13,7 @@ _nextSearch = compile(tagre("a", "href", r'(/[^"]+/\d+/\d+/\d+)', after="next"))
def add(name, shortname): def add(name, shortname):
baseUrl = 'http://www.gocomics.com' baseUrl = 'http://www.gocomics.com'
classname = 'GoComics_%s' % name classname = 'GoComics_%s' % name.capitalize()
@classmethod @classmethod
def namer(cls, imageUrl, pageUrl): def namer(cls, imageUrl, pageUrl):

View file

@ -15,7 +15,7 @@ _prevSearch = compile(tagre("a", "href", r'([^"]*/d/\d{8}\.html)') +
')') ')')
def add(name, url): def add(name, url):
classname = 'KeenSpot_%s' % name classname = 'KeenSpot_%s' % name.capitalize()
if '/d/' in url: if '/d/' in url:
stripUrl = url.split('/d/')[0] + '/d/%s.html' stripUrl = url.split('/d/')[0] + '/d/%s.html'
else: else: