[nitter] retry downloads on 404 (#3313)

This commit is contained in:
Mike Fährmann
2022-12-01 11:09:02 +01:00
parent 80102fa367
commit a18511e346

View File

@@ -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)