'Returns self.thumbnail.url, if set, else default thumbnail URL'

def thumbnail_url_if_set(self):

    progress_url = settings.GALLERY_VIDEO_THUMBNAIL_PROGRESS_URL
    return (self.thumbnail.url if self.thumbnail else progress_url)
