1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

[redhawkscans] let requests handle content decoding

This commit is contained in:
Mike Fährmann 2015-06-27 15:07:22 +02:00
parent 675937c77c
commit 2afe15b217

View File

@ -47,7 +47,9 @@ class RedHawkScansExtractor(SequentialExtractor):
def get_job_metadata(self):
"""Collect metadata for extractor-job"""
page = self.request(self.url_base + self.part).content.decode("utf-8")
response = self.request(self.url_base + self.part)
response.encoding = "utf-8"
page = response.text
_ , pos = self.extract(page, '<h1 class="tbtitle dnone">', '')
manga , pos = self.extract(page, 'title="', '"', pos)
chapter , pos = self.extract(page, '">', '</a>', pos)