[twitter] fix avatar & background downloads with "expand": true (#8698)

This commit is contained in:
Mike Fährmann
2025-12-14 09:07:04 +01:00
parent a53cc87b72
commit 85b7f63971

View File

@@ -596,9 +596,12 @@ class TwitterExtractor(Extractor):
obj = tweet["legacy"] if "legacy" in tweet else tweet
cid = obj.get("conversation_id_str")
if not cid:
tid = obj["id_str"]
self.log.warning(
"Unable to expand %s (no 'conversation_id')", tid)
if cid is False:
yield tweet
else:
tid = obj["id_str"]
self.log.warning(
"Unable to expand %s (no 'conversation_id')", tid)
continue
if cid in seen:
self.log.debug(
@@ -613,6 +616,7 @@ class TwitterExtractor(Extractor):
def _make_tweet(self, user, url, id_str):
return {
"id_str": id_str,
"conversation_id_str": False,
"lang": None,
"user": user,
"source": "><",