From 85b7f63971e8a749bdb1af62e457a8ce3d8d7bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 14 Dec 2025 09:07:04 +0100 Subject: [PATCH] [twitter] fix avatar & background downloads with "expand": true (#8698) --- gallery_dl/extractor/twitter.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 999331ad..546e8e18 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -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": "><",