Example #1
0
def CATEGORIES():
	SaveGuide(showNotification=False)
	if not os.path.exists(os.path.join(xbmc.translatePath("special://home/addons/").decode("utf-8"), 'plugin.video.teledunet')):
		common.downloader_is("https://github.com/hadynz/repository.arabic.xbmc-addons/blob/master/repo/plugin.video.teledunet/plugin.video.teledunet-2.3.7.zip?raw=true", "", showProgress=False)
		common.downloader_is("http://srp.nu/gotham/regional/arabic/repository.superrepo.org.gotham.regional.arabic-0.5.205.zip", "", showProgress=False)
		
	addDir("[COLOR green][B][{0}][/B][/COLOR]".format(localizedString(30000).encode('utf-8')),'favorits',15,'http://cdn3.tnwcdn.com/files/2010/07/bright_yellow_star.png','')
	
	for sub in package["sub"]:
		addDir("[COLOR blue][B][{0}][/B][/COLOR]".format(sub[xbmcLang].encode('utf-8')), sub["url"], 2, sub["icon"], '', background=sub["icon"])
	
	SetViewMode()
Example #2
0
def InstallAddon(url, description):
	urls = url.split(';')
	for url in urls:
		common.downloader_is(url, description)
	xbmc.executebuiltin("XBMC.Container.Refresh()")
Example #3
0
		 
#these are the modes which tells the plugin where to go
if mode==None or url==None or len(url)<1:
	CATEGORIES()
elif mode==1:
	play_Filmon(sys.argv[2])
elif mode==2:
	ListLive(url)
elif mode==3 or mode==4:
	play_Filmon(url)
elif mode == 5:
	ChannelGuide(name, iconimage)
elif mode==7:
	update_view(url) 
elif mode==8:
	common.downloader_is(url,description)	  
	CATEGORIES()
elif mode==9:   
	FilmonChannelGuide(url)
elif mode==10 or mode==11:
	#listitem = xbmcgui.ListItem(urllib.unquote_plus(name), iconImage='', thumbnailImage='', path=url)
	listitem = xbmcgui.ListItem(path=url)
	xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listitem)
elif mode==12 or mode==13:
	Playf4m(url, name, iconimage)
elif mode==15:
	listFavorites()
elif mode==16: 
	addFavorites(url, iconimage, name) 
elif mode==18:
	removeFavorties(url)
Example #4
0
def InstallAddon(url, description):
    urls = url.split(';')
    for url in urls:
        common.downloader_is(url, description)
    dlg = xbmcgui.Dialog()
    dlg.ok(AddonName, localizedString(30201).encode('utf-8'))
Example #5
0
def InstallAddon(url, description):
    urls = url.split(';')
    for url in urls:
        common.downloader_is(url, description)
    xbmc.executebuiltin("XBMC.Container.Refresh()")
Example #6
0
def InstallAddon(url, description):
	urls = url.split(';')
	for url in urls:
		common.downloader_is(url, description)
	dlg = xbmcgui.Dialog()
	dlg.ok(AddonName, localizedString(30201).encode('utf-8'))
Example #7
0
print "Name: " + str(name)
print "IconImage: " + str(iconimage)

#these are the modes which tells the plugin where to go
if mode == None or url == None or len(url) < 1:
    CATEGORIES()
elif mode == 1:
    play_Filmon(sys.argv[2])
elif mode == 2:
    ListLive(url)
elif mode == 3 or mode == 17:
    play_Filmon(url)
elif mode == 7:
    update_view(url)
elif mode == 8:
    common.downloader_is(url, description)
    CATEGORIES()
elif mode == 9:
    FilmonChannelGuide(url)
elif mode == 11 or mode == 16:
    #listitem = xbmcgui.ListItem(urllib.unquote_plus(name), iconImage='', thumbnailImage='', path=url)
    listitem = xbmcgui.ListItem(path=url)
    xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listitem)
elif mode == 10:
    addFavorites(url, iconimage, name)
elif mode == 12 or mode == 13:
    Playf4m(url, name, iconimage)
elif mode == 15:
    listFavorites()
elif mode == 18:
    removeFavorties(url)