1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

fix extractor result tests

This commit is contained in:
Mike Fährmann 2019-06-20 18:12:36 +02:00
parent db3f52881a
commit 70713f0f28
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -165,7 +165,7 @@ class ResultJob(job.DownloadJob):
self.hash_content = hashlib.sha1()
if content:
self.fileobj = FakePathfmt(self.hash_content)
self.get_downloader("http")._check_extension = lambda a, b: None
self.get_downloader("http").check_extension = lambda a, b: None
def run(self):
for msg in self.extractor:
@ -214,6 +214,7 @@ class FakePathfmt():
self.hashobj = hashobj
self.path = ""
self.size = 0
self.keywords = {}
self.has_extension = True
def __enter__(self):