kopia lustrzana https://github.com/bellingcat/auto-archiver
fix: missing key bug
rodzic
7aeb38a773
commit
3095ce3054
|
@ -75,8 +75,9 @@ class TwitterArchiver(Archiver):
|
|||
urls.append(p["url"])
|
||||
|
||||
# 1 tweet has 1 video max
|
||||
v = tweet["video"]
|
||||
urls.append(self.choose_variant(v.get("variants", [])))
|
||||
if "video" in tweet:
|
||||
v = tweet["video"]
|
||||
urls.append(self.choose_variant(v.get("variants", [])))
|
||||
|
||||
logger.debug(f"Twitter hack got {urls=}")
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue