mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Skip images with no src
This commit is contained in:
parent
5822af1645
commit
c16a4e4a4b
1 changed files with 1 additions and 0 deletions
|
@ -187,6 +187,7 @@ class TextImporter:
|
|||
for img in content_imgs:
|
||||
# Since NewsBlur proxies all http images over https, the url can change, so acknowledge urls
|
||||
# that are https on the original text but http on the feed
|
||||
if not img.get('src'): continue
|
||||
if img.get('src') in image_urls or img.get('src').replace('https:', 'http:') in image_urls:
|
||||
image_urls.remove(img.get('src'))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue