[twitter] fix extraction (#2275)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
## 1.20.4 - 2022-02-06
|
||||
### Additions
|
||||
- [e621] add `favorite` extractor ([#2250](https://github.com/mikf/gallery-dl/issues/2250))
|
||||
|
||||
@@ -1091,7 +1091,13 @@ class TwitterAPI():
|
||||
instructions = instructions[key]
|
||||
instructions = instructions["instructions"]
|
||||
|
||||
entries = instructions[0]["entries"]
|
||||
for instr in instructions:
|
||||
if instr.get("type") == "TimelineAddEntries":
|
||||
entries = instr["entries"]
|
||||
break
|
||||
else:
|
||||
raise KeyError()
|
||||
|
||||
except (KeyError, IndexError):
|
||||
extr.log.debug(data)
|
||||
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
__version__ = "1.20.4"
|
||||
__version__ = "1.20.5-dev"
|
||||
|
||||
Reference in New Issue
Block a user