'Search for an episode'

def run(self):

    show_obj = Show.find(sickbeard.showList, int(self.indexerid))
    if (not show_obj):
        return _responds(RESULT_FAILURE, msg=u'Show    not    found')
    ep_obj = show_obj.getEpisode(self.s, self.e)
    if isinstance(ep_obj, str):
        return _responds(RESULT_FAILURE, msg=u'Episode    not    found')
    ep_queue_item = search_queue.ManualSearchQueueItem(show_obj, ep_obj)
    sickbeard.searchQueueScheduler.action.add_item(ep_queue_item)
    while (ep_queue_item.success is None):
        time.sleep(1)
    if ep_queue_item.success:
        (status, quality) = Quality.splitCompositeStatus(ep_obj.status)
        return _responds(RESULT_SUCCESS, {u'quality': get_quality_string(quality)}, ((u'Snatched    (' + get_quality_string(quality)) + u')'))
    return _responds(RESULT_FAILURE, msg=u'Unable    to    find    episode')
