def setEpisodeToWanted(show, s, e):
 epObj = show.getEpisode(int(s), int(e))
 if epObj:
  with epObj.lock:
   if ((epObj.status != SKIPPED) or (epObj.airdate == date.fromordinal(1))):
    return
   sickrage.srCore.srLogger.info((u'Setting episode %s S%02dE%02d to wanted' % (show.name, s, e)))
   epObj.status = WANTED
   epObj.saveToDB()
  sickrage.srCore.SEARCHQUEUE.put(BacklogQueueItem(show, [epObj]))
  sickrage.srCore.srLogger.info((u'Starting backlog search for %s S%02dE%02d because some episodes were set to wanted' % (show.name, s, e)))

def setEpisodeToWanted ( show , s , e ) : epObj = show . getEpisode ( int ( s ) , int ( e ) ) if epObj : with epObj . lock : if ( ( epObj . status != SKIPPED ) or ( epObj . airdate == date . fromordinal ( 1 ) ) ) : return sickrage . srCore . srLogger . info ( ( u'Setting episode %s S%02dE%02d to wanted' % ( show . name , s , e ) ) ) epObj . status = WANTED epObj . saveToDB ( ) sickrage . srCore . SEARCHQUEUE . put ( BacklogQueueItem ( show , [ epObj ] ) ) sickrage . srCore . srLogger . info ( ( u'Starting backlog search for %s S%02dE%02d because some episodes were set to wanted' % ( show . name , s , e ) ) )
sets an episode to wanted .