From 7900ee4e3692dbd8056c3e47c81bb22eda030b65 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Mon, 14 Feb 2022 17:17:07 -0500 Subject: New upstream version 1.20.5. --- gallery_dl/extractor/twitter.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gallery_dl/extractor/twitter.py') diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index f459fba..46b06c2 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -1091,8 +1091,14 @@ class TwitterAPI(): instructions = instructions[key] instructions = instructions["instructions"] - entries = instructions[0]["entries"] - except (KeyError, IndexError): + for instr in instructions: + if instr.get("type") == "TimelineAddEntries": + entries = instr["entries"] + break + else: + raise KeyError() + + except LookupError: extr.log.debug(data) if self._user: -- cgit v1.2.3