'Log history of snatch
:param searchResult: search result object'

@staticmethod
def logSnatch(searchResult):

    for curEpObj in searchResult.episodes:
        showid = int(curEpObj.show.indexerid)
        season = int(curEpObj.season)
        episode = int(curEpObj.episode)
        quality = searchResult.quality
        version = searchResult.version
        providerClass = searchResult.provider
        if (providerClass is not None):
            provider = providerClass.name
        else:
            provider = u'unknown'
        action = Quality.compositeStatus(SNATCHED, searchResult.quality)
        resource = searchResult.name
        History._logHistoryItem(action, showid, season, episode, quality, resource, provider, version)
