Beispiel #1
0
def startServer():
	global portals, server;
	
	server_enable = addon.getSetting('server_enable');
	port = int(addon.getSetting('server_port'));
	
	if server_enable != 'true':
		return;

	portals = { 
		'1' : config.portalConfig('1'), 
		'2' : config.portalConfig('2'), 
		'3' : config.portalConfig('3') };

	try:
		server = SocketServer.TCPServer(('', port), MyHandler);
		server.serve_forever();
		
	except KeyboardInterrupt:
		if server != None:
			server.socket.close();
Beispiel #2
0
def startServer():
    global portals, server

    server_enable = addon.getSetting('server_enable')
    port = int(addon.getSetting('server_port'))

    if server_enable != 'true':
        return

    portals = {
        '1': config.portalConfig('1'),
        '2': config.portalConfig('2'),
        '3': config.portalConfig('3')
    }

    try:
        server = SocketServer.TCPServer(('', port), MyHandler)
        server.serve_forever()

    except KeyboardInterrupt:
        if server != None:
            server.socket.close()
Beispiel #3
0
#	li = xbmcgui.ListItem(title, iconImage=logo_url); <modified 9.0.19
	li = xbmcgui.ListItem(title, iconImage='DefaultVideo.png', thumbnailImage=logo_url);
	li.setInfo('video', {'Title': title, 'Genre': genre_name});
	xbmc.Player().play(item=url, listitem=li);
	
	dp.update(100);
	
	dp.close();


mode = args.get('mode', None);
portal =  args.get('portal', None)


if portal is None:
	portal_1 = config.portalConfig('1');
	portal_2 = config.portalConfig('2');
	portal_3 = config.portalConfig('3');	

else:
	portal = json.loads(portal[0]);

#  Modification to force outside call to portal_1 (9.0.19)

	portal_2 = config.portalConfig('2');
	portal_3 = config.portalConfig('3');	

	if not ( portal['name'] == portal_2['name'] or portal['name'] == portal_3['name'] ) :
		portal = config.portalConfig('1');

	
Beispiel #4
0
    li.setInfo('video', {
        'Title': title,
        'Genre': genre_name
    })
    xbmc.Player().play(item=url, listitem=li)

    dp.update(100)

    dp.close()


mode = args.get('mode', None)
portal = args.get('portal', None)

if portal is None:
    portal_1 = config.portalConfig('1')
    portal_2 = config.portalConfig('2')
    portal_3 = config.portalConfig('3')
    portal_4 = config.portalConfig('4')
    portal_5 = config.portalConfig('5')
    portal_6 = config.portalConfig('6')
    portal_7 = config.portalConfig('7')
    portal_8 = config.portalConfig('8')
    portal_9 = config.portalConfig('9')
    portal_10 = config.portalConfig('10')

else:
    portal = json.loads(portal[0])

    #  Modification to force outside call to portal_1 (9.0.19)
Beispiel #5
0
    li.setInfo('video', {
        'Title': title,
        'Genre': genre_name
    })
    xbmc.Player().play(item=url, listitem=li)

    dp.update(100)

    dp.close()


mode = args.get('mode', None)
portal = args.get('portal', None)

if portal is None:
    portal_1 = config.portalConfig('1')
    portal_2 = config.portalConfig('2')
    portal_3 = config.portalConfig('3')

else:
    portal = json.loads(portal[0])

    #  Modification to force outside call to portal_1 (9.0.19)

    portal_2 = config.portalConfig('2')
    portal_3 = config.portalConfig('3')

    if not (portal['name'] == portal_2['name']
            or portal['name'] == portal_3['name']):
        portal = config.portalConfig('1')
Beispiel #6
0
#	li = xbmcgui.ListItem(title, iconImage=logo_url); <modified 9.0.19
	li = xbmcgui.ListItem(title, iconImage='DefaultVideo.png', thumbnailImage=logo_url);
	li.setInfo('video', {'Title': title, 'Genre': genre_name});
	xbmc.Player().play(item=url, listitem=li);
	
	dp.update(100);
	
	dp.close();


mode = args.get('mode', None);
portal =  args.get('portal', None)


if portal is None:
	portal_1 = config.portalConfig('1');
	portal_2 = config.portalConfig('2');
	portal_3 = config.portalConfig('3');
	portal_4 = config.portalConfig('4');
	portal_5 = config.portalConfig('5');
	portal_6 = config.portalConfig('6');
	portal_7 = config.portalConfig('7');
	portal_8 = config.portalConfig('8');
	portal_9 = config.portalConfig('9');
	portal_10 = config.portalConfig('10');

else:
	portal = json.loads(portal[0]);

#  Modification to force outside call to portal_1 (9.0.19)
Beispiel #7
0
    li = xbmcgui.ListItem(title, iconImage="special://home/addons/plugin.video.ufo/fanart.jpg", thumbnailImage=logo_url)
    li.setInfo("video", {"Title": title, "Genre": genre_name})
    xbmc.Player().play(item=url, listitem=li)

    dp.update(100)

    dp.close()


mode = args.get("mode", None)
portal = args.get("portal", None)


if portal is None:
    portal_1 = config.portalConfig("1")
    portal_2 = config.portalConfig("2")
    portal_3 = config.portalConfig("3")

else:
    portal = json.loads(portal[0])

    portal_2 = config.portalConfig("2")
    portal_3 = config.portalConfig("3")

    if not (portal["name"] == portal_2["name"] or portal["name"] == portal_3["name"]):
        portal = config.portalConfig("1")


if mode is None:
    homeLevel()