'Get trending show information from Trakt'

def fetch_trending_shows(self, trakt_list, page_url):

    trending_shows = []
    trakt_api = TraktAPI(sickbeard.SSL_VERIFY, sickbeard.TRAKT_TIMEOUT)
    try:
        not_liked_show = u''
        if (sickbeard.TRAKT_ACCESS_TOKEN != u''):
            library_shows = (trakt_api.traktRequest(u'sync/collection/shows?extended=full') or [])
            if sickbeard.TRAKT_BLACKLIST_NAME:
                not_liked_show = (trakt_api.traktRequest(((((u'users/' + sickbeard.TRAKT_USERNAME) + u'/lists/') + sickbeard.TRAKT_BLACKLIST_NAME) + u'/items')) or [])
            else:
                logger.log(u'Trakt    blacklist    name    is    empty', logger.DEBUG)
        if (trakt_list not in [u'recommended', u'newshow', u'newseason']):
            limit_show = ((u'?limit=' + str((100 + len(not_liked_show)))) + u'&')
        else:
            limit_show = u'?'
        shows = (trakt_api.traktRequest(((page_url + limit_show) + u'extended=full')) or [])
        if (sickbeard.TRAKT_ACCESS_TOKEN != u''):
            library_shows = (trakt_api.traktRequest(u'sync/collection/shows?extended=full') or [])
        for show in shows:
            try:
                if (u'show' not in show):
                    show[u'show'] = show
                if (sickbeard.TRAKT_ACCESS_TOKEN != u''):
                    if (show[u'show'][u'ids'][u'tvdb'] not in (lshow[u'show'][u'ids'][u'tvdb'] for lshow in library_shows)):
                        if not_liked_show:
                            if (show[u'show'][u'ids'][u'tvdb'] not in (show[u'show'][u'ids'][u'tvdb'] for show in not_liked_show if (show[u'type'] == u'show'))):
                                trending_shows += [show]
                        else:
                            trending_shows += [show]
                elif not_liked_show:
                    if (show[u'show'][u'ids'][u'tvdb'] not in (show[u'show'][u'ids'][u'tvdb'] for show in not_liked_show if (show[u'type'] == u'show'))):
                        trending_shows += [show]
                else:
                    trending_shows += [show]
            except MultipleShowObjectsException:
                continue
        if (sickbeard.TRAKT_BLACKLIST_NAME != u''):
            black_list = True
        else:
            black_list = False
    except traktException as e:
        logger.log(u'Could    not    connect    to    Trakt    service:    {0}'.format(ex(e)), logger.WARNING)
    for trending_show in trending_shows:
        indexer_id = trending_show[u'show'][u'ids'][u'tvdb']
        trending_show[u'indexer_id'] = indexer_id
        image_name = self.get_image_name(indexer_id)
        image_path_relative = ek(posixpath.join, u'images', u'trakt_trending', image_name)
        trending_show[u'image_path'] = image_path_relative
        image_path = self.get_image_path(image_name)
        if ek(os.path.isfile, image_path):
            trending_show[u'indexer_id'] = u''
    return (trending_shows, black_list)
