'Logs a successful snatch
:param searchResult: Search result that was successful'

@staticmethod
def logSnatch(searchResult):

    logDate = datetime.today().strftime(History.date_format)
    release = FailedHistory.prepareFailedName(searchResult.name)
    providerClass = searchResult.provider
    if (providerClass is not None):
        provider = providerClass.name
    else:
        provider = u'unknown'
    show_obj = searchResult.episodes[0].show
    for episode in searchResult.episodes:
        sickrage.srCore.failedDB.db.insert({u'_t': u'history', u'date': logDate, u'size': searchResult.size, u'release': release, u'provider': provider, u'showid': show_obj.indexerid, u'season': episode.season, u'episode': episode.episode, u'old_status': episode.status})
