Scraper: Don't use cache if thumbnail missing

This commit is contained in:
corylulu
2015-09-14 18:03:48 -07:00
committed by Chad Birch
parent c7950cfa62
commit e152ff6ad9

View File

@@ -283,8 +283,8 @@ def _scrape_media(url, autoplay=False, maxwidth=600, force=False,
if mediaByURL:
media = mediaByURL.media
# Otherwise, scrape it
if not media:
# Otherwise, scrape it if thumbnail is not present
if not media or not media.thumbnail_url:
media_object = secure_media_object = None
thumbnail_image = thumbnail_url = thumbnail_size = None