Пример #1
0
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)
Пример #2
0
def seasons(arg):
  titles, urls = data.parse_seasons(arg)
  if len(titles) == 1:
    plugin.redirect(plugin.url_for(urls[0]))
    return
  view(titles, urls)