Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion newspaper/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ def get_meta_img_url(self, article_url, doc):

top_meta_image = try_one or try_two or try_three or try_four

return urllib.parse.urljoin(article_url, top_meta_image)
if top_meta_image:
return urllib.parse.urljoin(article_url, top_meta_image)
return u''

def get_meta_type(self, doc):
"""Returns meta type of article, open graph protocol
Expand Down