if(mediathekName == ""): if(action == ""): gui.addSearchButton(None); gui.listAvailableMediathekes(factory.getAvaibleMediathekTypes()); else: result = gui.keyboardInput(); if (result.isConfirmed()): searchText = unicode(result.getText().decode('UTF-8')); for name in factory.getAvaibleMediathekTypes(): mediathek = factory.getMediathek(name, gui); if(mediathek.isSearchable()): mediathek.searchVideo(searchText); else: gui.back(); else: cat=int(params.get("cat", 0)) mediathek = factory.getMediathek(mediathekName,gui); if(action == "openTopicPage"): link = urllib.unquote_plus(params.get("link", "")).decode('UTF-8'); gui.log(link); mediathek.buildPageMenu(link, 0); elif(action == "openPlayList"): link = urllib.unquote_plus(params.get("link", "")); gui.log(link); remotePlaylist = mediathek.loadPage(link); gui.playPlaylist(remotePlaylist); elif(action == "openMenu"):
if mediathekName == "": if action == "": gui.addSearchButton(None) gui.listAvaibleMediathekes(factory.getAvaibleMediathekTypes()) else: result = gui.keyboardInput() if result.isConfirmed(): searchText = unicode(result.getText().decode("UTF-8")) for name in factory.getAvaibleMediathekTypes(): mediathek = factory.getMediathek(name, gui) if mediathek.isSearchable(): mediathek.searchVideo(searchText) else: gui.back() else: cat = int(params.get("cat", 0)) mediathek = factory.getMediathek(mediathekName, gui) if action == "openTopicPage": link = urllib.unquote_plus(params.get("link", "")) gui.log(link) mediathek.buildPageMenu(link, 0) elif action == "openPlayList": link = urllib.unquote_plus(params.get("link", "")) gui.log(link) remotePlaylist = mediathek.loadPage(link) gui.playPlaylist(remotePlaylist) elif action == "openMenu":
if(mediathekName == ""): if(action == ""): gui.addSearchButton(None); gui.listAvaibleMediathekes(factory.getAvaibleMediathekTypes()); else: result = gui.keyboardInput(); if (result.isConfirmed()): searchText = unicode(result.getText().decode('UTF-8')); for name in factory.getAvaibleMediathekTypes(): mediathek = factory.getMediathek(name, gui); if(mediathek.isSearchable()): mediathek.searchVideo(searchText); else: gui.back(); else: cat=int(params.get("cat", 0)) mediathek = factory.getMediathek(mediathekName,gui); if(action == "openTopicPage"): link = urllib.unquote_plus(params.get("link", "")); gui.log(link); mediathek.buildPageMenu(link, 0); elif(action == "openPlayList"): link = urllib.unquote_plus(params.get("link", "")); gui.log(link); remotePlaylist = mediathek.loadPage(link); gui.playPlaylist(remotePlaylist); elif(action == "openMenu"):
factory = MediathekFactory() if (mediathekName == ""): if (action == ""): gui.addSearchButton(None) gui.listAvaibleMediathekes(factory.getAvaibleMediathekTypes()) else: result = gui.keyboardInput() if (result.isConfirmed()): searchText = unicode(result.getText().decode('UTF-8')) for name in factory.getAvaibleMediathekTypes(): mediathek = factory.getMediathek(name, gui) if (mediathek.isSearchable()): mediathek.searchVideo(searchText) else: gui.back() else: cat = int(params.get("cat", 0)) mediathek = factory.getMediathek(mediathekName, gui) if (action == "openTopicPage"): link = urllib.unquote_plus(params.get("link", "")) gui.log(link) mediathek.buildPageMenu(link, 0) elif (action == "openPlayList"): link = urllib.unquote_plus(params.get("link", "")) gui.log(link) remotePlaylist = mediathek.loadPage(link) gui.playPlaylist(remotePlaylist) elif (action == "openMenu"):