'Log history of download
:param episode: episode of show
:param filename: file on disk where the download is
:param new_ep_quality: Quality of download
:param release_group: Release group
:param version: Version of file (defaults to -1)'

@staticmethod
def logDownload(episode, filename, new_ep_quality, release_group=None, version=(-1)):

    showid = int(episode.show.indexerid)
    season = int(episode.season)
    epNum = int(episode.episode)
    quality = new_ep_quality
    if release_group:
        provider = release_group
    else:
        provider = (-1)
    action = episode.status
    History._logHistoryItem(action, showid, season, epNum, quality, filename, provider, version)
