From 90dfceaeb171b0b5ef234ccbcb7c9a8d00291bac Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 20 Mar 2016 20:48:42 +0100 Subject: [PATCH] Remove dead modules (& format). --- dosagelib/plugins/k.py | 54 +++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/dosagelib/plugins/k.py b/dosagelib/plugins/k.py index cb598dbd1..26c3a95cf 100644 --- a/dosagelib/plugins/k.py +++ b/dosagelib/plugins/k.py @@ -1,9 +1,10 @@ -# -*- coding: iso-8859-1 -*- +# -*- coding: utf-8 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam +# Copyright (C) 2015-2016 Tobias Gruetzmacher from re import compile, escape, IGNORECASE -from ..scraper import _BasicScraper, _ParserScraper +from ..scraper import _BasicScraper from ..util import tagre from ..helpers import indirectStarter @@ -12,8 +13,11 @@ class KevinAndKell(_BasicScraper): url = 'http://www.kevinandkell.com/' stripUrl = url + '%s/kk%s%s.html' firstStripUrl = stripUrl % ('1995', '09', '03') - imageSearch = compile(r']*>Previous Strip', IGNORECASE) + imageSearch = compile(r']*>Previous Strip', + IGNORECASE) help = 'Index format: yyyy-mm-dd' def getIndexStripUrl(self, index): @@ -34,36 +38,21 @@ class KickInTheHead(_BasicScraper): rurl = escape(url) stripUrl = url + '%s/' firstStripUrl = stripUrl % '2003/03/20/ipod-envy' - imageSearch = compile(tagre("img", "src", r'(%skickinthehead3/comics/\d+-\d+-\d+[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+)' % rurl, after="navi-prev")) + imageSearch = compile( + tagre("img", "src", + r'(%skickinthehead3/comics/\d+-\d+-\d+[^"]+)' % rurl)) + prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+)' % rurl, + after="navi-prev")) help = 'Index format: yyyy/mm/dd/stripname' -class KillerKomics(_BasicScraper): - baseUrl = 'http://www.killerkomics.com/web-comics/' - url = baseUrl + 'index_ang.cfm' - stripUrl = baseUrl + '%s.cfm' - imageSearch = compile(r'