'Determines if the episode is a priority download or not (if it is expected). Episodes which are expected
(snatched) or larger than the existing episode are priority, others are not.
:param ep_obj: The TVEpisode object in question
:param new_ep_quality: The quality of the episode that is being processed
:return: True if the episode is priority, False otherwise.'

def _is_priority(self, ep_obj, new_ep_quality):

    if self.is_priority:
        return True
    (old_ep_status_, old_ep_quality) = common.Quality.splitCompositeStatus(ep_obj.status)
    if (self.in_history or (ep_obj.status in ((common.Quality.SNATCHED + common.Quality.SNATCHED_PROPER) + common.Quality.SNATCHED_BEST))):
        if (not self.in_history):
            self._log(u'SR    snatched    this    episode    and    it    is    not    processed    before', logger.DEBUG)
            return True
        if ((new_ep_quality > old_ep_quality) and (new_ep_quality != common.Quality.UNKNOWN)):
            self._log(u"SR    snatched    this    episode    and    it    is    a    higher    quality    so    I'm    marking    it    as    priority", logger.DEBUG)
            return True
        if (self.is_proper and (new_ep_quality >= old_ep_quality) and (new_ep_quality != common.Quality.UNKNOWN)):
            self._log(u"SR    snatched    this    episode    and    it    is    a    proper    of    equal    or    higher    quality    so    I'm    marking    it    as    priority", logger.DEBUG)
            return True
        return False
    if ((new_ep_quality > old_ep_quality) and (new_ep_quality != common.Quality.UNKNOWN)):
        self._log(u"This    was    manually    downloaded    but    it    appears    to    be    better    quality    than    what    we    have    so    I'm    marking    it    as    priority", logger.DEBUG)
        return True
    if (self.is_proper and (new_ep_quality >= old_ep_quality) and (new_ep_quality != common.Quality.UNKNOWN)):
        self._log(u"This    was    manually    downloaded    but    it    appears    to    be    a    proper    so    I'm    marking    it    as    priority", logger.DEBUG)
        return True
    return False
