code adjustments according to pep8 nr2

This commit is contained in:
Mike Fährmann
2017-02-01 00:53:19 +01:00
parent f1b7d41608
commit 94e10f249a
68 changed files with 390 additions and 167 deletions

View File

@@ -12,6 +12,7 @@ from .. import text
from . import hentaicdn
import re
class HentaihereMangaExtractor(hentaicdn.HentaicdnMangaExtractor):
"""Extractor for mangas from hentaihere.com"""
category = "hentaihere"
@@ -32,7 +33,7 @@ class HentaihereMangaExtractor(hentaicdn.HentaicdnMangaExtractor):
def get_chapters(self):
return text.extract_iter(
self.request("http://hentaihere.com/m/S" + self.gid).text,
'<li class="sub-chp clearfix">\n<a href="','"'
'<li class="sub-chp clearfix">\n<a href="', '"'
)
@@ -48,7 +49,9 @@ class HentaihereChapterExtractor(hentaicdn.HentaicdnChapterExtractor):
def __init__(self, match):
hentaicdn.HentaicdnChapterExtractor.__init__(self)
self.gid, self.chapter = match.groups()
self.url = "http://hentaihere.com/m/S{}/{}/1".format(self.gid, self.chapter)
self.url = "http://hentaihere.com/m/S{}/{}/1".format(
self.gid, self.chapter
)
def get_job_metadata(self, page, images):
title = text.extract(page, "<title>", "</title>")[0]