mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Handling missing rel attr.
This commit is contained in:
parent
327f46d2b6
commit
43b90a6ab3
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ def pre_process_story(entry, encoding):
|
|||
elif 'image' in media_type and media_url:
|
||||
entry['story_content'] += """<br><br><img src="%s" />""" % media_url
|
||||
continue
|
||||
elif media_content.get('rel') == 'alternative' or 'text' in media_content.get('type'):
|
||||
elif media_content.get('rel', '') == 'alternative' or 'text' in media_content.get('type', ''):
|
||||
continue
|
||||
elif media_type_name in ['application']:
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue