From 5c34baa663049e18a0cb9dc697d68ed5a365d4c6 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sun, 9 Dec 2012 07:51:49 +0100 Subject: [PATCH] Capitalize comic names. --- dosagelib/plugins/drunkduck.py | 2 +- dosagelib/plugins/gocomics.py | 2 +- dosagelib/plugins/keenspot.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/drunkduck.py b/dosagelib/plugins/drunkduck.py index 094abbfa2..26991289a 100644 --- a/dosagelib/plugins/drunkduck.py +++ b/dosagelib/plugins/drunkduck.py @@ -14,7 +14,7 @@ _nextSearch = compile(_linkSearch + tagre("img", "class", "arrow_next")) _lastSearch = compile(_linkSearch + tagre("img", "class", "arrow_last")) def add(name): - classname = 'DrunkDuck_%s' % name + classname = 'DrunkDuck_%s' % name.capitalize() _url = 'http://www.drunkduck.com/%s/' % name @classmethod diff --git a/dosagelib/plugins/gocomics.py b/dosagelib/plugins/gocomics.py index e9336020a..d75c05406 100644 --- a/dosagelib/plugins/gocomics.py +++ b/dosagelib/plugins/gocomics.py @@ -13,7 +13,7 @@ _nextSearch = compile(tagre("a", "href", r'(/[^"]+/\d+/\d+/\d+)', after="next")) def add(name, shortname): baseUrl = 'http://www.gocomics.com' - classname = 'GoComics_%s' % name + classname = 'GoComics_%s' % name.capitalize() @classmethod def namer(cls, imageUrl, pageUrl): diff --git a/dosagelib/plugins/keenspot.py b/dosagelib/plugins/keenspot.py index aa5cec624..00bd78374 100644 --- a/dosagelib/plugins/keenspot.py +++ b/dosagelib/plugins/keenspot.py @@ -15,7 +15,7 @@ _prevSearch = compile(tagre("a", "href", r'([^"]*/d/\d{8}\.html)') + ')') def add(name, url): - classname = 'KeenSpot_%s' % name + classname = 'KeenSpot_%s' % name.capitalize() if '/d/' in url: stripUrl = url.split('/d/')[0] + '/d/%s.html' else: