def seasons(arg): import data titles, urls, thumbs, bgs = data.parse_seasons(arg) if len(titles) == 1: plugin.redirect(plugin.url_for(urls[0])) return view(titles, urls, thumbs=thumbs, bgs=bgs)
def seasons(arg): titles, urls = data.parse_seasons(arg) if len(titles) == 1: plugin.redirect(plugin.url_for(urls[0])) return view(titles, urls)