mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Twitter fetcher should include all images.
This commit is contained in:
parent
87a50f91f7
commit
9caeb9822c
1 changed files with 4 additions and 1 deletions
|
@ -208,7 +208,10 @@ class TwitterFetcher:
|
|||
tweet_title = user_tweet['full_text']
|
||||
tweet_text = linebreaks(content_tweet['full_text'])
|
||||
replaced = {}
|
||||
for media in content_tweet['entities'].get('media', []):
|
||||
entities_media = content_tweet['entities'].get('media', [])
|
||||
if 'extended_entities' in content_tweet:
|
||||
entities_media = content_tweet['extended_entities'].get('media', [])
|
||||
for media in entities_media:
|
||||
if 'media_url_https' not in media: continue
|
||||
if media['type'] == 'photo':
|
||||
if media.get('url') and media['url'] in tweet_text:
|
||||
|
|
Loading…
Add table
Reference in a new issue