fix downloader
This commit is contained in:
parent
a8417fca8b
commit
c52ac69ae9
1 changed files with 1 additions and 0 deletions
|
@ -159,6 +159,7 @@ class BasicDownloader:
|
||||||
DownloaderResponse,
|
DownloaderResponse,
|
||||||
requests.get(url, headers=self.headers, timeout=self.get_timeout()),
|
requests.get(url, headers=self.headers, timeout=self.get_timeout()),
|
||||||
)
|
)
|
||||||
|
resp.__class__ = DownloaderResponse
|
||||||
if settings.DOWNLOADER_SAVEDIR:
|
if settings.DOWNLOADER_SAVEDIR:
|
||||||
try:
|
try:
|
||||||
with open(
|
with open(
|
||||||
|
|
Loading…
Add table
Reference in a new issue