'Retrieves a thumbnail and saves it to the correct spot. This method should not need to
be overridden by implementing classes, changing get_episode_thumb_path and
_get_episode_thumb_url should suffice.
ep_obj: a TVEpisode object for which to generate a thumbnail'

def save_thumbnail(self, ep_obj):

    file_path = self.get_episode_thumb_path(ep_obj)
    if (not file_path):
        sickrage.srCore.srLogger.debug(u'Unable    to    find    a    file    path    to    use    for    this    thumbnail,    not    generating    it')
        return False
    thumb_url = self._get_episode_thumb_url(ep_obj)
    if (not thumb_url):
        sickrage.srCore.srLogger.debug(u'No    thumb    is    available    for    this    episode,    not    creating    a    thumb')
        return False
    thumb_data = getShowImage(thumb_url)
    result = self._write_image(thumb_data, file_path)
    if (not result):
        return False
    for cur_ep in ([ep_obj] + ep_obj.relatedEps):
        cur_ep.hastbn = True
    return True
