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:
parent
675937c77c
commit
2afe15b217
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user