Exemplo n.º 1
0
def tv3():
 from resources.channels.tv3 import tv3 as tv3class
 tv3 = tv3class()
 if params.get("folder", "") != "":
  tv3.folderindex(params["folder"][0])
 elif params.get("cat", "") != "":
  if params["cat"][0] == "tv":
   tv3.episodes(params["catid"][0], "tv3")
  elif params["cat"][0] == "atoz":
   tv3.atoz(params["catid"][0], "tv3")
  elif params["cat"][0] == "tv3":
   tv3.episodes(params["catid"][0], "tv3")
  elif params["cat"][0] == "four":
   tv3.episodes(params["catid"][0], "four")
  elif params["cat"][0] == "shows":
   tv3.show(urllib.unquote(params["catid"][0]), urllib.unquote(params["title"][0]), "tv3")
 elif params.get("id", "") != "":
  tv3.play(params["id"][0], params["provider"][0], params["info"][0])
 else:
  if config.__settings__.getSetting('TV3_folders') == 'true':
   tv3.index()
  else:
   tv3.index(False)
Exemplo n.º 2
0
def tv3():
    from resources.channels.tv3 import tv3 as tv3class

    tv3 = tv3class()
    if params.get("channel", "") != "":
        if params.get("cat", "") != "":
            if params["cat"][0] == "shows":
                tv3.shows(params["channel"][0])
            elif params["cat"][0] == "show":
                tv3.show(params["channel"][0], params["title"][0])
            elif params["cat"][0] == "search":
                tv3.search(params["channel"][0])
            else:
                tv3.episodes(params["channel"][0], params["cat"][0])
        elif params.get("id", "") != "":
            tv3.play(params["id"][0], params["channel"][0], params["info"][0])
        else:
            tv3.channelindex(params["channel"][0])
    else:
        if config.__settings__.getSetting("TV3_folders") == "true":
            tv3.index()
        else:
            tv3.index(False)
Exemplo n.º 3
0
def tv3():
 from resources.channels.tv3 import tv3 as tv3class
 tv3 = tv3class()
 ret = []
 if params.get("channel", "") != "":
  if params.get("cat", "") != "":
   if params["cat"][0] == "shows":
    ret = tv3.shows(params["channel"][0])
   elif params["cat"][0] == "show":
    ret = tv3.show(params["channel"][0], params["title"][0])
   elif params["cat"][0] == "search":
    ret = tv3.search(params["channel"][0], params['q'][0])
   else:
    ret = tv3.episodes(params["channel"][0], params["cat"][0])
  elif params.get("id", "") != "":
   ret = tv3.play(params["id"][0], params["channel"][0], params["info"][0])
  else:
   ret = tv3.channelindex(params["channel"][0])
 else:
  if config.__settings__.get('TV3', 'folders') == 'True':
   ret = tv3.index()
  else:
   ret = tv3.index(False)
 return ret