Пример #1
0
    if not (portal['name'] == portal_2['name'] or portal['name']
            == portal_3['name'] or portal['name'] == portal_4['name']
            or portal['name'] == portal_5['name'] or portal['name']
            == portal_6['name'] or portal['name'] == portal_7['name']
            or portal['name'] == portal_8['name'] or portal['name']
            == portal_9['name'] or portal['name'] == portal_10['name']):
        portal = config.portalConfig('1')

if mode is None:
    HOME_MENU()

elif mode[0] == 'cache':
    stalker_url = args.get('stalker_url', None)
    stalker_url = stalker_url[0]
    load_channels.clearCache(stalker_url, addondir)

elif mode[0] == 'genres':
    genreLevel()

elif mode[0] == 'vod':
    vodLevel()

elif mode[0] == 'channels':
    channelLevel()

elif mode[0] == 'play':
    playLevel()

elif mode[0] == 'server':
    port = addon.getSetting('server_port')
Пример #2
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();

elif mode[0] == 'cache':	
	stalker_url = args.get('stalker_url', None);
	stalker_url = stalker_url[0];	
	load_channels.clearCache(stalker_url, addondir);

elif mode[0] == 'genres':
	genreLevel();
		
elif mode[0] == 'vod':
	vodLevel();

elif mode[0] == 'channels':
	channelLevel();
	
elif mode[0] == 'play':
	playLevel();
	
elif mode[0] == 'server':
	port = addon.getSetting('server_port');
import config

addon       = xbmcaddon.Addon()
addonname   = addon.getAddonInfo('name')
addondir    = xbmc.translatePath( addon.getAddonInfo('profile') ) 

base_url = sys.argv[0]
addon_handle = int(sys.argv[1])
args = urlparse.parse_qs(sys.argv[2][1:])
go = True;

#xbmcgui.Dialog().ok(addonname, 'aaa')

xbmcplugin.setContent(addon_handle, 'movies')
	
load_channels.clearCache('http://portal.iptvprivateserver.tv', addondir)



def addPortal(portal):

	if portal['url'] == '':
		return;

	url = build_url({
		'mode': 'genres', 
		'portal' : json.dumps(portal)
		});
	
	cmd = 'XBMC.RunPlugin(' + base_url + '?mode=cache&stalker_url=' + portal['url'] + ')';