mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 19:22:32 +01:00
[twitter] restore errors for protected timelines etc (fixes #2237)
This commit is contained in:
parent
ebd3d5c1cc
commit
d33227fc38
@ -1083,13 +1083,15 @@ class TwitterAPI():
|
||||
instructions = (data["user"]["result"]["timeline"]
|
||||
["timeline"]["instructions"])
|
||||
else:
|
||||
instructions = data
|
||||
for key in path:
|
||||
data = data[key]
|
||||
instructions = data["instructions"]
|
||||
instructions = instructions[key]
|
||||
instructions = instructions["instructions"]
|
||||
|
||||
entries = instructions[0]["entries"]
|
||||
except (KeyError, IndexError):
|
||||
return
|
||||
self.extractor.log.debug(data)
|
||||
raise exception.StopExtraction("Unable to retrieve Tweets")
|
||||
|
||||
tweets = []
|
||||
tweet = cursor = None
|
||||
|
Loading…
Reference in New Issue
Block a user