mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 06:55:37 +01:00
Fix bug
This commit is contained in:
@@ -253,7 +253,7 @@ class FLDownloader(BaseDownloader):
|
|||||||
if is_zip and self.file_type.lower() not in self.EXCLUDE_UNZIP:
|
if is_zip and self.file_type.lower() not in self.EXCLUDE_UNZIP:
|
||||||
temp_filename = await self._unzip(response)
|
temp_filename = await self._unzip(response)
|
||||||
else:
|
else:
|
||||||
async with asynctempfile.NamedTemporaryFile() as temp_file:
|
async with asynctempfile.NamedTemporaryFile(delete=False) as temp_file:
|
||||||
temp_filename = temp_file.name
|
temp_filename = temp_file.name
|
||||||
await self._write_response_content_to_ntf(temp_file, response)
|
await self._write_response_content_to_ntf(temp_file, response)
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user