From 5cb2c7a751dc3cc690988f3029a6ead0a1b48ca6 Mon Sep 17 00:00:00 2001 From: Alex Huddleston Date: Sat, 16 May 2020 19:20:13 +0000 Subject: [PATCH] Rebasing this commit on top of the fix for archiving extended tweets. --- lib/archival.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/archival.py b/lib/archival.py index 802a4c9..bbfa1b0 100644 --- a/lib/archival.py +++ b/lib/archival.py @@ -69,7 +69,9 @@ def archive_media_status(status): str -- None, or a list of filenames of the media archived locally """ try: - if(not ('retweeted_status' in status._json.keys())): + if(not ('retweeted_status' in status._json.keys()) and + not (status.in_reply_to_status_id) and + not (status.in_reply_to_user_id)): if('extended_tweet' in status._json.keys()): if('extended_entities' in status.extended_tweet.keys()): if('media' in status.extended_tweet['extended_entities'].keys()):