[nitter] retry downloads on 404 (#3313)
This commit is contained in:
@@ -56,7 +56,10 @@ class NitterExtractor(BaseExtractor):
|
||||
|
||||
if url[0] == "/":
|
||||
url = self.root + url
|
||||
file = {"url": url}
|
||||
file = {
|
||||
"url": url,
|
||||
"_http_retry_codes": (404,),
|
||||
}
|
||||
file["filename"], _, file["extension"] = \
|
||||
name.rpartition(".")
|
||||
append(file)
|
||||
|
||||
Reference in New Issue
Block a user