'Insert a history item in DB
:param action: action taken (snatch, download, etc)
:param showid: showid this entry is about
:param season: show season
:param episode: show episode
:param quality: media quality
:param resource: resource used
:param provider: provider used
:param version: tracked version of file (defaults to -1)'

@staticmethod
def _logHistoryItem(action, showid, season, episode, quality, resource, provider, version=(-1)):

    logDate = datetime.today().strftime(History.date_format)
    resource = resource
    sickrage.srCore.mainDB.db.insert({u'_t': u'history', u'action': action, u'date': logDate, u'showid': showid, u'season': season, u'episode': episode, u'quality': quality, u'resource': resource, u'provider': provider, u'version': version})
