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:
parent
db3f52881a
commit
70713f0f28
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user