'Sets episodes to wanted that are in trakt watchlist'

def updateEpisodes(self):

    logger.log(u'SHOW_WATCHLIST::CHECK::START    -    Trakt    Episode    Watchlist', logger.DEBUG)
    self._getEpisodeWatchlist()
    if (not self.EpisodeWatchlist):
        logger.log(u'No    episode    found    in    your    watchlist,    aborting    episode    update', logger.DEBUG)
        return
    managed_show = []
    indexer = int(sickbeard.TRAKT_DEFAULT_INDEXER)
    trakt_id = sickbeard.indexerApi(indexer).config[u'trakt_id']
    for show_el in self.EpisodeWatchlist[trakt_id]:
        indexer_id = int(show_el)
        show = self.EpisodeWatchlist[trakt_id][show_el]
        newShow = Show.find(sickbeard.showList, indexer_id)
        try:
            if (newShow is None):
                if (indexer_id not in managed_show):
                    self.addDefaultShow(indexer, indexer_id, show[u'title'], SKIPPED)
                    managed_show.append(indexer_id)
                    for season_el in show[u'seasons']:
                        season = int(season_el)
                        for episode_el in show[u'seasons'][season_el][u'episodes']:
                            self.todoWanted.append((indexer_id, season, int(episode_el)))
            elif (newShow.indexer == indexer):
                for season_el in show[u'seasons']:
                    season = int(season_el)
                    for episode_el in show[u'seasons'][season_el][u'episodes']:
                        setEpisodeToWanted(newShow, season, int(episode_el))
        except TypeError:
            logger.log(u'Could    not    parse    the    output    from    trakt    for    {0}    '.format(show[u'title']), logger.DEBUG)
    logger.log(u'SHOW_WATCHLIST::CHECK::FINISH    -    Trakt    Episode    Watchlist', logger.DEBUG)
