def start(): if username=="": user = userpopup() passw= passpopup() control.setSetting('Username',user) control.setSetting('Password',passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories'%(userinfo.host,userinfo.port,user,passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "Incorrect Login Details" line2 = "Please Re-enter" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) start() else: line1 = "Login Sucsessfull" line2 = "Welcome to "+userinfo.addon_name line3 = ('[COLOR white]%s[/COLOR]'%user) xbmcgui.Dialog().ok(userinfo.addon_name, line1, line2, line3) addonsettings('ADS2','') xbmc.executebuiltin('Container.Refresh') home() else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories'%(userinfo.host,userinfo.port,username,password) auth = tools.OPEN_URL(auth) if not auth=="": tools.addDir('Account Information','url',6,icon,fanart,'') tools.addDir('On Demand','vod',1,icon,fanart,'') tools.addDir('Search','url',5,icon,fanart,'') tools.addDir('Settings','url',8,icon,fanart,'')
def start(): if username == "": user = userpopup() passw = passpopup() control.setSetting('Username', user) control.setSetting('Password', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( host, port, user, passw) auth = tools.OPEN_URL(auth) auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_series_categories' % ( host, port, user, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "Incorrect Login Details" line2 = "Please Re-enter" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) start() else: line1 = "Login Successful" line2 = "Welcome to bosstechmediaV6" line3 = ('[COLOR cornsilk]%s[/COLOR]' % user) xbmcgui.Dialog().ok('bosstechmediaV6', line1, line2, line3) tvguidesetup() addonsettings('ADS2', '') xbmc.executebuiltin('Container.Refresh') home() else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( host, port, username, password) auth = tools.OPEN_URL(auth) auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_series_categories' % ( host, port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir('[COLORdeepskyblue]Account Information[/COLOR]', 'url', 6, icon, fanart, '') tools.addDir('[COLORdeepskyblue]Live Tv[/COLOR]', 'live', 1, icon, fanart, '') tools.addDir('[COLORdeepskyblue]Catchup TV[/COLOR]', 'url', 12, icon, fanart, '') if xbmc.getCondVisibility('System.HasAddon(pvr.iptvsimple)' ) or xbmc.getCondVisibility( 'System.HasAddon(script.ivueguide)'): tools.addDir('[COLORdeepskyblue]TV Guide[/COLOR]', 'pvr', 7, icon, fanart, '') tools.addDir('[COLORdeepskyblue]VOD[/COLOR]', 'vod', 3, icon, fanart, '') tools.addDir('[COLORdeepskyblue]Series[/COLOR]', 'Series', 20, icon, fanart, '') tools.addDir('[COLORdeepskyblue]Search[/COLOR]', 'url', 5, icon, fanart, '') tools.addDir('[COLORdeepskyblue]Settings[/COLOR]', 'url', 8, icon, fanart, '') tools.addDir('[COLORdeepskyblue]Extras[/COLOR]', 'url', 16, icon, fanart, '')
def start(): if username == "": usern = userpopup() passw = passpopup() control.setSetting('Username', usern) control.setSetting('Password', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( user.host, user.port, usern, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "[COLORred]Incorrect[/COLOR] Login Details" line2 = "Please Re-enter" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) start() else: line1 = "Login Sucsessfull" line2 = "Welcome to " + user.name line3 = ('[B][COLOR white]%s[/COLOR][/B]' % usern) xbmcgui.Dialog().ok(user.name, line1, line2, line3) tvguidesetup() addonsettings('ADS2', '') xbmc.executebuiltin('Container.Refresh') home() else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( user.host, user.port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir('[COLORdarkturquoise]Account Information[/COLOR]', 'url', 6, iconaccount, background, '') tools.addDir('[COLORdarkturquoise]Live TV[/COLOR]', 'live', 1, iconlive, background, '') tools.addDir('[COLORdarkturquoise]Catchup TV[/COLOR]', 'url', 12, iconcatchup, background, '') tools.addDir('[COLORdarkturquoise]Movies[/COLOR]', 'vod', 3, iconMoviesod, background, '') tools.addDir('[COLORdarkturquoise]TV Series[/COLOR]', 'live', 18, iconTvseries, background, '') if xbmc.getCondVisibility('System.HasAddon(pvr.iptvsimple)'): tools.addDir('[COLORdarkturquoise]TV Guide[/COLOR]', 'pvr', 7, icontvguide, background, '') tools.addDir('[COLORdarkturquoise]Settings[/COLOR]', 'url', 8, iconsettings, background, '') tools.addDir('[COLORdarkturquoise]Extras[/COLOR]', 'url', 16, iconextras, background, '') tools.addDir('[COLORred]Search[/COLOR]', 'url', 5, iconsearch, background, '')
def start(): if username == "": user = userpopup() passw = passpopup() control.setSetting('Username', user) control.setSetting('Password', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( host, port, user, passw) auth = tools.OPEN_URL(auth) auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_series_categories' % ( host, port, user, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "Login Details Incorrect" line2 = "Please Try Again" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) start() else: line1 = "Login Successful" line2 = "Welcome to Shiz TV!" line3 = ('[COLOR skyblue]%s[/COLOR]' % user) xbmcgui.Dialog().ok('Shiz TV', line1, line2, line3) addonsettings('ADS2', '') xbmc.executebuiltin('Container.Refresh') home() else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( host, port, username, password) auth = tools.OPEN_URL(auth) auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_series_categories' % ( host, port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir('[B][COLOR white]Account Details[/COLOR][/B]', 'url', 6, accounticon, fanart, '') tools.addDir('[B][COLOR white]Live Channels[/COLOR][/B]', 'live', 1, livetvicon, fanart, '') tools.addDir('[B][COLOR white]Movies[/COLOR][/B]', 'url', 11, vodicon, fanart, '') tools.addDir('[B][COLOR white]TV Shows[/COLOR][/B]', 'url', 12, seriesicon, fanart, '') tools.addDir('[B][COLOR white]Tools[/COLOR][/B]', 'url', 16, settingsicon, fanart, '') tools.addDir('[B][COLOR white]Log Out[/COLOR][/B]', 'LO', 10, logouticon, fanart, '')
def start(): if username == "": usern = userpopup() passw = passpopup() control.setSetting('Username', usern) control.setSetting('Password', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( user.host, user.port, usern, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "Incorrect Login Details" line2 = "Please Re-enter" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) start() else: line1 = "Login Sucsessfull" line2 = "Welcome to " + user.name line3 = ('[B][COLOR white]%s[/COLOR][/B]' % usern) xbmcgui.Dialog().ok(user.name, line1, line2, line3) tvguidesetup() addonsettings('ADS2', '') xbmc.executebuiltin('Container.Refresh') xbmcgui.Dialog().ok( user.name, 'Setup Complete', 'Enjoy Your Stay With Us At %s' % user.name, 'If You Have Any Problems, Contact Us At: %s' % user.name) home() else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( user.host, user.port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir('Account Information', 'url', 6, icon, fanart, '') tools.addDir('Live TV', 'live', 1, icon, fanart, '') if xbmc.getCondVisibility('System.HasAddon(pvr.iptvsimple)'): tools.addDir('TV Guide', 'pvr', 7, icon, fanart, '') #tools.addDir('VOD','vod',3,icon,fanart,'') tools.addDir('Search', 'url', 5, icon, fanart, '') tools.addDir('Settings', 'url', 8, icon, fanart, '') tools.addDir('Extras', 'url', 16, icon, fanart, '')
def start(): if username == "": user = userpopup() passw = passpopup() control.setSetting('Username', user) control.setSetting('Password', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( userinfo.host, userinfo.port, user, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "Incorrect Login Details" line2 = "Please Re-enter" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) start() else: line1 = "Login Sucsessfull" line2 = "Welcome to " + userinfo.addon_name line3 = ('[COLOR purple]%s[/COLOR]' % user) xbmcgui.Dialog().ok(userinfo.addon_name, line1, line2, line3) tvguidesetup() addonsettings('ADS2', '') xbmc.executebuiltin('Container.Refresh') home() else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( userinfo.host, userinfo.port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir('Account Information', 'url', 6, icon, fanart, '') tools.addDir('Live TV', 'live', 1, icon, fanart, '') tools.addDir('Catchup TV', 'live', 12, icon, fanart, '') if xbmc.getCondVisibility('System.HasAddon(pvr.iptvsimple)' ) or xbmc.getCondVisibility( 'System.HasAddon(script.ivueguide)'): tools.addDir('TV Guide', 'pvr', 7, icon, fanart, '') tools.addDir('VOD', 'vod', 3, icon, fanart, '') tools.addDir('Search', 'url', 5, icon, fanart, '') tools.addDir('Settings', 'url', 8, icon, fanart, '') tools.addDir('Extras', 'url', 16, icon, fanart, '')
def start(): if username == "": user = userpopup() passw = passpopup() control.setSetting('Username', user) control.setSetting('Password', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( userinfo.host, userinfo.port, user, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "Login Incorrecto" line2 = "Se faz favor, tente outra vez" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) start() else: line1 = "Login com Sucesso" line2 = "Benvindo a BlackPearl" line3 = ('[COLOR cyan]%s[/COLOR]' % user) xbmcgui.Dialog().ok(userinfo.addon_name, line1, line2, line3) tvguidesetup() addonsettings('ADS2', '') xbmc.executebuiltin('Container.Refresh') home() else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( userinfo.host, userinfo.port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir('Ketchup TV', 'live', 12, icon, fanart, '') if xbmc.getCondVisibility('System.HasAddon(pvr.iptvsimple)' ) or xbmc.getCondVisibility( 'System.HasAddon(script.ivueguide)'): tools.addDir('TV Guide', 'pvr', 7, icon, fanart, '') tools.addDir('Search', 'url', 5, icon, fanart, '') tools.addDir('Settings', 'url', 8, icon, fanart, '')
def start(): if username == "": usern = userpopup() passw = passpopup() control.setSetting('Username', usern) control.setSetting('Password', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( user.host, user.port, usern, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "[COLOR red][B]Incorrect Login Details[/COLOR]" line2 = "Please Re-enter" line3 = "Username & Password are CaSeSenSiTiVe" xbmcgui.Dialog().ok('Attention', line1, line2, line3) start() else: line1 = "Login Successful" line2 = "Welcome to " + user.name line3 = ('[COLOR greeen]%s[/COLOR]' % usern) xbmcgui.Dialog().ok(user.name, line1, line2, line3) addonsettings('ADS2', '') xbmc.executebuiltin('Container.Refresh') home() else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( user.host, user.port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir('Account Information', 'url', 6, icon, fanart, '') tools.addDir('Live TV', 'live', 1, icon, fanart, '') tools.addDir('Catchup TV', 'url', 12, icon, fanart, '') tools.addDir('Movies & Sports', 'vod', 3, icon, fanart, '') tools.addDir('TV Series', 'series', 3, icon, fanart, '') tools.addDir('Search', 'url', 5, icon, fanart, '') tools.addDir('Settings', 'url', 8, icon, fanart, '') tools.addDir('Extras', 'url', 16, icon, fanart, '')
def start(url): if 'server1' in url: username = control.setting('server1user') password = control.setting('server1pass') host = user.server1host port = user.server1port if username == "": usern = userpopup() passw = passpopup() control.setSetting('server1user', usern) control.setSetting('server1pass', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( host, port, usern, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "Incorrect Login Details" line2 = "Please Re-enter" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) MAIN() else: line1 = "Login Sucsessfull" line2 = "Welcome to " + user.name line3 = ('[COLOR white]%s[/COLOR]' % usern) xbmcgui.Dialog().ok(user.name, line1, line2, line3) xbmc.executebuiltin('Container.Refresh') tools.addDir( 'Account Information', 'server1', 6, xbmc.translatePath(os.path.join(iconFolder, 'myacc.png')), fanart, 'My Account Info - Containing Information Inlcuding Your Expiry Date & More' ) tools.addDir( 'Live TV', 'server1', 1, xbmc.translatePath(os.path.join(iconFolder, 'livetv.png')), fanart, 'Live TV - Containing Our Selection of Live TV Channels') if xbmc.getCondVisibility('Pvr.HasTVChannels'): tools.addDir( 'TV Guide', 'server1', 7, xbmc.translatePath( os.path.join(iconFolder, 'tvguide.png')), fanart, 'TV Guide - IPTV Simple Client PVR TV Guide') tools.addDir( 'Catchup TV', 'server1', 9, xbmc.translatePath(os.path.join(iconFolder, 'catchup.png')), fanart, 'Catchup TV - Catchup On Your Favourite Shows From the Past 7 Days' ) tools.addDir( 'On Demand', 'VOD:server1', 3, xbmc.translatePath(os.path.join(iconFolder, 'vod.png')), fanart, 'VOD - Containing A Wide Selection of Movies & TV Series') tools.addDir( 'Search', 'server1', 5, xbmc.translatePath(os.path.join(iconFolder, 'search.png')), fanart, 'Search - Search Horizon IPTV For Your Favourite Channel or Movie' ) tools.addDir( 'Extras', 'server1', 11, xbmc.translatePath(os.path.join(iconFolder, 'extras.png')), fanart, 'Extras - Horizon Extras') tools.addDir( 'Settings', 'AS', 10, xbmc.translatePath(os.path.join(iconFolder, 'settings.png')), fanart, 'Settings - Open Addon Settings') else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( host, port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir( 'Account Information', 'server1', 6, xbmc.translatePath(os.path.join(iconFolder, 'myacc.png')), fanart, 'My Account Info - Containing Information Inlcuding Your Expiry Date & More' ) tools.addDir( 'Live TV', 'server1', 1, xbmc.translatePath(os.path.join(iconFolder, 'livetv.png')), fanart, 'Live TV - Containing Our Selection of Live TV Channels') if xbmc.getCondVisibility('Pvr.HasTVChannels'): tools.addDir( 'TV Guide', 'server1', 7, xbmc.translatePath( os.path.join(iconFolder, 'tvguide.png')), fanart, 'TV Guide - IPTV Simple Client PVR TV Guide') tools.addDir( 'Catchup TV', 'server1', 9, xbmc.translatePath(os.path.join(iconFolder, 'catchup.png')), fanart, 'Catchup TV - Catchup On Your Favourite Shows From the Past 7 Days' ) tools.addDir( 'On Demand', 'VOD:server1', 3, xbmc.translatePath(os.path.join(iconFolder, 'vod.png')), fanart, 'VOD - Containing A Wide Selection of Movies & TV Series') tools.addDir( 'Search', 'server1', 5, xbmc.translatePath(os.path.join(iconFolder, 'search.png')), fanart, 'Search - Search Horizon IPTV For Your Favourite Channel or Movie' ) tools.addDir( 'Extras', 'server1', 11, xbmc.translatePath(os.path.join(iconFolder, 'extras.png')), fanart, 'Extras - Horizon Extras') tools.addDir( 'Settings', 'AS', 10, xbmc.translatePath(os.path.join(iconFolder, 'settings.png')), fanart, 'Settings - Open Addon Settings') elif 'server2' in url: username = control.setting('server2user') password = control.setting('server2pass') host = user.server2host port = user.server2port if username == "": usern = userpopup() passw = passpopup() control.setSetting('server2user', usern) control.setSetting('server2pass', passw) xbmc.executebuiltin('Container.Refresh') auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( host, port, usern, passw) auth = tools.OPEN_URL(auth) if auth == "": line1 = "Incorrect Login Details" line2 = "Please Re-enter" line3 = "" xbmcgui.Dialog().ok('Attention', line1, line2, line3) MAIN() else: line1 = "Login Sucsessfull" line2 = "Welcome to " + user.name line3 = ('[COLOR white]%s[/COLOR]' % usern) xbmcgui.Dialog().ok(user.name, line1, line2, line3) xbmc.executebuiltin('Container.Refresh') tools.addDir( 'Account Information', 'server2', 6, xbmc.translatePath(os.path.join(iconFolder, 'myacc.png')), fanart, 'My Account Info - Containing Information Inlcuding Your Expiry Date & More' ) tools.addDir( 'Live TV', 'server2', 1, xbmc.translatePath(os.path.join(iconFolder, 'livetv.png')), fanart, 'Live TV - Containing Our Selection of Live TV Channels') if xbmc.getCondVisibility('Pvr.HasTVChannels'): tools.addDir( 'TV Guide', 'server2', 7, xbmc.translatePath( os.path.join(iconFolder, 'tvguide.png')), fanart, 'TV Guide - IPTV Simple Client PVR TV Guide') tools.addDir( 'Catchup TV', 'server2', 9, xbmc.translatePath(os.path.join(iconFolder, 'catchup.png')), fanart, 'Catchup TV - Catchup On Your Favourite Shows From the Past 7 Days' ) tools.addDir( 'On Demand', 'VOD:server2', 3, xbmc.translatePath(os.path.join(iconFolder, 'vod.png')), fanart, 'VOD - Containing A Wide Selection of Movies & TV Series') tools.addDir( 'Search', 'server2', 5, xbmc.translatePath(os.path.join(iconFolder, 'search.png')), fanart, 'Search - Search Horizon IPTV For Your Favourite Channel or Movie' ) tools.addDir( 'Extras', 'server2', 11, xbmc.translatePath(os.path.join(iconFolder, 'extras.png')), fanart, 'Extras - Horizon Extras') tools.addDir( 'Settings', 'AS', 10, xbmc.translatePath(os.path.join(iconFolder, 'settings.png')), fanart, 'Settings - Open Addon Settings') else: auth = '%s:%s/enigma2.php?username=%s&password=%s&type=get_vod_categories' % ( host, port, username, password) auth = tools.OPEN_URL(auth) if not auth == "": tools.addDir( 'Account Information', 'server2', 6, xbmc.translatePath(os.path.join(iconFolder, 'myacc.png')), fanart, 'My Account Info - Containing Information Inlcuding Your Expiry Date & More' ) tools.addDir( 'Live TV', 'server2', 1, xbmc.translatePath(os.path.join(iconFolder, 'livetv.png')), fanart, 'Live TV - Containing Our Selection of Live TV Channels') if xbmc.getCondVisibility('Pvr.HasTVChannels'): tools.addDir( 'TV Guide', 'server2', 7, xbmc.translatePath( os.path.join(iconFolder, 'tvguide.png')), fanart, 'TV Guide - IPTV Simple Client PVR TV Guide') tools.addDir( 'Catchup TV', 'server2', 9, xbmc.translatePath(os.path.join(iconFolder, 'catchup.png')), fanart, 'Catchup TV - Catchup On Your Favourite Shows From the Past 7 Days' ) tools.addDir( 'On Demand', 'VOD:server2', 3, xbmc.translatePath(os.path.join(iconFolder, 'vod.png')), fanart, 'VOD - Containing A Wide Selection of Movies & TV Series') tools.addDir( 'Search', 'server2', 5, xbmc.translatePath(os.path.join(iconFolder, 'search.png')), fanart, 'Search - Search Horizon IPTV For Your Favourite Channel or Movie' ) tools.addDir( 'Extras', 'server2', 11, xbmc.translatePath(os.path.join(iconFolder, 'extras.png')), fanart, 'Extras - Horizon Extras') tools.addDir( 'Settings', 'AS', 10, xbmc.translatePath(os.path.join(iconFolder, 'settings.png')), fanart, 'Settings - Open Addon Settings')
def showhideadult(): check = control.setting('ADULT') if check == 'true':control.setSetting('ADULT','false') else:control.setSetting('ADULT','true') xbmc.executebuiltin('Container.Refresh')