1
0
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:
Mike Fährmann 2022-01-29 23:08:33 +01:00
parent ebd3d5c1cc
commit d33227fc38
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

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