def CATEGORIES(): repoCheck.UpdateRepo() try: if not os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.supercartoons'): downloader_is('https://github.com/spoyser/spoyser-repo/blob/master/zips/repository.spoyser/repository.spoyser-1.0.6.zip?raw=true','supercartoons repository') downloader_is('https://github.com/spoyser/spoyser-repo/blob/master/zips/plugin.video.supercartoons/plugin.video.supercartoons-1.0.8.zip?raw=true','supercartoons addon') else: addDir('Super cartoons','plugin://plugin.video.supercartoons/?mode=400&page=1',8,'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQQoKkxPt4MxnzTqM-ChAH7My_OdIZQJ2U6CoXIeDzOkdMBaG8G','') if not os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.kidstv'): ZipIntsall('https://github.com/dvddd/donatellorepo/blob/master/repository.donatelloandhybrid/repository.donatelloandhybrid.zip?raw=true','repository.donatelloandhybrid',False) ZipIntsall('https://github.com/dvddd/donatellorepo/blob/master/plugin.video.kidstv/plugin.video.kidstv-1.0.0.zip?raw=true','plugin.video.kidstv') else: addDir(' VOD ערוץ הילדים ','plugin://plugin.video.kidstv',8,'https://github.com/dvddd/donatellorepo/blob/master/plugin.video.kidstv/icon.png?raw=true','') except: pass addDir('סרטים לילדים','bj',18,'http://cartooncollectors.com/wp-content/uploads/2014/07/cartoon-movies-list-alltop-disney-movies-list-new-latest-kids-films-2014-best-movies-ever-gldf9j91.jpg','') #addDir('TV MODE','stam',17,'http://gigaompaidcontent.files.wordpress.com/2012/02/new-tv-o.jpg?quality=80&strip=all','') addDir('SDAROT','plugin://plugin.video.sdarot.tv/?mode=2&module=http%3a%2f%2fwww.sdarot.wf%2fseries%2fgenre%2f7%d7%90%d7%a0%d7%99%d7%9e%d7%a6%d7%99%d7%94&name=%d7%90%d7%a0%d7%99%d7%9e%d7%a6%d7%99%d7%94&url=all-heb"',8,'http://www.hometheater.co.il/files/(40143)_icon.png','') addDir('קלסיקלטת','plugin://plugin.video.wallaNew.video/?mode=1&module=338&name=קלסיקלטת&url=http://vod.walla.co.il/channel/338/clasicaletet',8,'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTYE2VT8CR2O31MsqAhdaydYrqrCD--HCCdGcs7blBn3Zh92Kwq','') addDir('ניק','plugin://plugin.video.wallaNew.video/?mode=1&module=nick&name=ניק&url=http://nick.walla.co.il/',8,'http://www.karmieli.co.il/sites/default/files/images/nico.jpg','') addDir('ניק גוניור ','plugin://plugin.video.wallaNew.video/?mode=1&module=nickjr&name=ניקלאודיון גוניור&url=http://nickjr.walla.co.il/',8,'http://www.imanoga.co.il/wp-content/uploads/2012/06/646457567.jpg','') addDir('וואלה ילדים','plugin://plugin.video.wallaNew.video/?mode=1&module=wallavod&name=י%d7%99%d7%9c%d7%93%d7%99%d7%9d&url=englishName%3dkids',8,'https://lh6.ggpht.com/V8v_FzkTMqeLRg_oY7G00zf0bcxubsm659cLrbf9nEKMLHQG-5LSZdbbJGQgkV6j1PQ=w300','') addDir('HOT VOD YOUNG','plugin://plugin.video.hotVOD.video/?mode=5&name=%20HOT%20VOD%20YOUNG&url=http%3a%2f%2fhot.ynet.co.il%2fhome%2f0%2c7340%2cL-7449%2c00.html',8,'http://i28.tinypic.com/20o8lt.jpg','') try: User_lists() except: pass addDir('אנגלית','bff',19,'http://learnenglishkids.britishcouncil.org/sites/kids/files/imagecache/game_preview/alphabet.jpg','') xbmc.executebuiltin('Container.SetViewMode(500)')
def Categories(): repoCheck.UpdateRepo() playlistDictionary = { #'ronos-Not updated' : 'http://tiny.cc/ronosiptv', #'prozone - Not Working': 'http://prozone.getxbmc.com/playlists', #'KodiSport - Need To Check': 'http://tiny.cc/kodisport', 'All (Jordan)': 'http://ij0rd8n.x10host.com', 'All (micky)': 'http://lvtvv.com/htf.m3u', 'Idan+ (TheWiz)': 'http://iptv.thewiz.info/idan.m3u', 'proTV (+sport5HD)': 'http://sportisraelprotv.site90.com/protvisrael.m3u'} list = common.ReadList(playlistsFile) for listName, listUrl in playlistDictionary.iteritems(): isAlreadyExist = False for item in list: if item["url"].lower() == listUrl.lower(): isAlreadyExist = True break if not isAlreadyExist: list.append({"name": listName.decode("utf-8"), "url": listUrl}) for item in list: mode = 1 if item["url"].find(".plx") > 0 else 2 name = common.GetEncodeString(item["name"]) AddDir("{0}".format(name) ,item["url"], mode, "") AddDir("[COLOR yellow][{0}][/COLOR]".format(localizedString(10001).encode('utf-8')), "settings" , 20, os.path.join(addonDir, "resources", "images", "NewList.ico"), isFolder=False) AddDir("[COLOR yellow][{0}][/COLOR]".format(localizedString(10003).encode('utf-8')), "favorites" ,30 ,os.path.join(addonDir, "resources", "images", "bright_yellow_star.png"))
def CATEGORIES(): repoCheck.UpdateRepo() addDir('UTF-8', "ילדים", 'englishName=kids', 1, elementId='wallavod') addDir('UTF-8', "סדרות", 'englishName=tvshows', 1, elementId='wallavod') addDir('UTF-8', "סרטים", 'englishName=movies', 1, elementId='wallavod') addDir('UTF-8', "תחזוקה - מחיקת זיכרון מטמון", 'englishName=maintenance', 0, elementId='wallavod',isRealFolder=False) xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
def INDEXsdarot(url): repoCheck.UpdateRepo() req = urllib2.Request(url) req.add_header('User-Agent', ' Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') response = urllib2.urlopen(req) link=response.read() response.close() match=re.compile('<a class="aodInnerTitle".*?<b>(.*?)</b>(.*?)<tr style="margin-top:15px">',re.I+re.M+re.U+re.S).findall(link) for result in match: addDir(result[0].decode('windows-1255').encode("utf-8"), result[1], 1, '') xbmcplugin.addSortMethod(int(sys.argv[1]), 1)
def CATEGORIES(): repoCheck.UpdateRepo() addDir( "[COLOR green][B][{0}][/B][/COLOR]".format( localizedString(30000).encode('utf-8')), 'favorits', 16, 'http://cdn3.tnwcdn.com/files/2010/07/bright_yellow_star.png', '') ListLive( "israelive", "http://3.bp.blogspot.com/-vVfHI8TbKA4/UBAbrrZay0I/AAAAAAAABRM/dPFgXAnF8Sg/s1600/retro-tv-icon.jpg" ) SetViewMode()
def INDEXsdarot(url): repoCheck.UpdateRepo() req = urllib2.Request(url) req.add_header('User-Agent', ' Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') response = urllib2.urlopen(req) link=response.read() response.close() match=re.compile('<a class="aodInnerTitle".*?<b>(.*?)</b>(.*?)<tr style="margin-top:15px">',re.I+re.M+re.U+re.S).findall(link) #print "sdsdsd" +str(match[0]) +str(match[1]) for result in match: #print ("name:::"+ str(result[0]).decode(chardet.detect(str(result[0]))["encoding"]).encode("utf-8"),"url= "+ str(result[1])) addDir(str(result[0]).decode(chardet.detect(str(result[0]))["encoding"]).encode("utf-8"),str(result[1]),3,'')
def CATEGORIES(): repoCheck.UpdateRepo() repoCheck.UpdateRepo('http://fusion.tvaddons.ag/xbmc-repos/repository.p2p-streams.xbmc-1.0.3.zip','repository.p2p-streams.xbmc') repoCheck.UpdateRepo('http://mirror.cinosure.com/superrepo/v5/addons/plugin.video.SportsDevil/plugin.video.SportsDevil-1.8.8.0.zip','plugin.video.SportsDevil') runp2p=ADDON.getSetting("P2Parsers") == "true" #repoCheck.UpdateRepo('https://p2p-strm.googlecode.com/svn/addons/plugin.video.p2p-streams/plugin.video.p2p-streams-1.1.5.zip','plugin.video.p2p-streams') #addDir('ptp','plugin://plugin.video.p2p-streams/',1,'','') if runp2p: update_view('plugin://plugin.video.p2p-streams/') if os.path.exists(os.path.join(xbmc.translatePath("special://home/addons/").decode("utf-8"), 'plugin.video.p2p-streams')): xbmc.sleep(500) setupP2P() ADDON.setSetting("P2Parsers","false") addDir('PTP STREAMS *LIVE*','plugin://plugin.video.p2p-streams/?iconimage=C%3a%5cUsers%5cori%5cAppData%5cRoaming%5cKodi%5caddons%5cplugin.video.p2p-streams%2fresources%2fart%2fweb-parsers-menu.png&mode=400&name=-Addon%20Website-parsers&url=https%3a%2f%2fcode.google.com%2fp%2fp2p-strm%2f',1,'http://addons.superrepo.org/repository.p2p-streams.xbmc/icon.png','') addDir('SPORTS DEVIL *LIVE*','plugin://plugin.video.SportsDevil/?item=title%3dLive%2bSports%26url%3dlivesports.cfg%26definedIn%3dmainMenu.cfg%26director%3dSportsDevil%26genre%3dLive%2bSports%26type%3drss&mode=1 ',1,'http://xbmc-development-with-passion.googlecode.com/svn/branches/repo/plugin.video.SportsDevil/icon.png','') addDir('כל הסרטונים','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=147&page=',2,'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTvo6GmRkhBMgJHX0DiWtikRpet97rNyCTsSi_OdsdF7Dp4K-96','1') addDir('ליגת האלופות','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5375&page=',2,'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRf7mZyApMKwnQyHcJ5shoFE8OhLOlbmUIhytkWAP05suAGv9h8xA','1') addDir('ליגה ספרדית','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5385&page=',2,'http://blog.tapuz.co.il/tlv1/images/%7B0B4BDB70-5D9B-463A-B894-0D5762E59AA0%7D.jpg','1') addDir('תקצירי בארסה','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5383&page=',2,'https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQYF9lIm6fqSM3cysKy_EqnRFyDOycA8lexCn7dSqp_4Av4vw1mcA','1') addDir('תקצירי מדריד','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5384&page=',2,'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcTJtSGna8A2FmzVH3WQyBLx6HGwEGqUKeBzPqvzn7cmcKvpkv8D','1') addDir('ליגת העל בכדורגל','www.stam.com',6,'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRpi-QusXtg3bBYigUFBxDmVj-nbBuPqJsGhWybwI8zx1Rlh2mw','') addDir('ליגה איטלקית','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5403&page=',2,'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ5MZPuGkXGn4XoaDo72fi0gKIOik_0GVZHgHXmkQ1avptCA4WS','1') addDir('ליגה אנגלית','http://svc.one.co.il/Cat/Video/?c=85&p=',4,'http://www.bettingexpert.com/deprecated/assets/images/blog/PremLeagueBettingAwards/premier-league-logo.jpg','1') addDir('EUROLEAGUE','http://svc.one.co.il/Cat/Video/?c=77&p=',4,'http://www.isramedia.net/images/tvshowpic/euroleague.jpg','1') addDir('בית"ר נורדיה ירושלים','open',14,'http://www.headstart.co.il/components/img.aspx?img=images%5C2(25).jpg','1') addDir('NBA','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5459&page=',2,'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTMaYyCKAudTxqAh0YUsGGbL5axGDZV5YT-wL1-dYK25VfNNTzhKg','1') addDir('כדורסל ישראלי','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5452&page=',2,'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcROtyknPHO9KMMRBxTivXvWDngNdMzr5Mf5VMyJLyPEx_WEpxtk','1') addDir('חמישיות','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5463&page=',2,'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTSYYoacn3zS6w4JwqPORpGCDBqytoJOko8bc6usF3kQ_yoJgwS','1') addDir('חדשות הספורט','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3968&page=',2,'http://www.nrg.co.il/images/archive/300x225/631/730.jpg','1') addDir('יציע העיתונות','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5382&page=',2,'https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRVDQaVdqH65g5IqYdUf1zqt_FMHSOsbJPYzLI6tC1lxyh_FS97','1') addDir('בובה של לילה 3','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3473&page=',2,'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRjTjLnpK8ye6aN68h5HgcPo08Xtr1KJZd9iRSRQ3GlU9zB0pPViQ','1') addDir('בובה של לילה 2','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3186&page=',2,'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRjTjLnpK8ye6aN68h5HgcPo08Xtr1KJZd9iRSRQ3GlU9zB0pPViQ','1') addDir('בובה של לילה 1','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3185&page=',2,'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRjTjLnpK8ye6aN68h5HgcPo08Xtr1KJZd9iRSRQ3GlU9zB0pPViQ','1') addDir('הקישור','http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3061&page=',2,'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQIwv5MJeZjUM4QI8iIZEhivnz71tZssEn9naosE1xWkrCNw7ontg','1') addDir('One- ליגת העל','stam',9,'http://www.isramedia.net/images/tvshowpic/Ligat_winner.png','1') setView('movies', 'default')
def CATEGORIES(): repoCheck.UpdateRepo() addDir(' [COLOR blue] חיפוש[/COLOR]','stam',18,'http://4.bp.blogspot.com/_ASd3nWdw8qI/TUkLNXmQwgI/AAAAAAAAAiE/XxYLicNBdqQ/s1600/Search_Feb_02_Main.png') addDir(' אוסף סרטים מדובבים' ,'http://seretil.me/%D7%90%D7%95%D7%A1%D7%A3-%D7%A1%D7%A8%D7%98%D7%99%D7%9D-%D7%9E%D7%93%D7%95%D7%91%D7%91%D7%99%D7%9D/',211,'http://seretil.me/wp-content/uploads/2013/08/Disney-Cartoon-wallpaper-classic-disney-14019958-1024-768-300x225.jpg') addDir('אוסף מספר 2 סרטים מדובבים' ,'http://seretil.me/%D7%90%D7%95%D7%A1%D7%A3-%D7%92%D7%93%D7%95%D7%9C-%D7%A9%D7%9C-%D7%A1%D7%A8%D7%98%D7%99%D7%9D-%D7%9E%D7%A6%D7%95%D7%99%D7%A8%D7%99%D7%9D%D7%9E%D7%93%D7%95%D7%91%D7%91%D7%99%D7%9D/',211,'http://seretil.me/wp-content/uploads/2012/05/images.jpg') addDir('מדובבים ראשי' ,'http://seretil.me/category/%D7%A1%D7%A8%D7%98%D7%99%D7%9D-%D7%9E%D7%93%D7%95%D7%91%D7%91%D7%99%D7%9D/page1/',4,'http://www.in-hebrew.co.il/images/logo-s.jpg') #INDEXSratim('http://seretil.me/category/%D7%A1%D7%A8%D7%98%D7%99%D7%9D-%D7%9E%D7%93%D7%95%D7%91%D7%91%D7%99%D7%9D/page1/') addDir('סרטי פעולה' ,'http://seretil.me/category/%D7%A1%D7%A8%D7%98%D7%99%D7%9D/%D7%A4%D7%A2%D7%95%D7%9C%D7%94/page1/',4,'https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQYK9pD6O3mwT5TqYXELuSzMHxVnMCRKjxWS-CMw85Ru3dSgafX1A') addDir('סרטי דרמה' ,'http://seretil.me/category/%D7%A1%D7%A8%D7%98%D7%99%D7%9D/%D7%93%D7%A8%D7%9E%D7%94/page1/',4,'http://www.filmsite.org/images/drama-genre.jpg') addDir(' סרטי אימה' ,'http://seretil.me/category/%D7%A1%D7%A8%D7%98%D7%99%D7%9D/%D7%90%D7%99%D7%9E%D7%94/page1/',4,'https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRgtKPtptcB1sSLVy1KgnB9rXxnyAVFuhy2x7eqMBkXyfqIISIw2w') addDir(' סרטי מדע בדיוני' ,'http://seretil.me/category/%D7%A1%D7%A8%D7%98%D7%99%D7%9D/%D7%9E%D7%93%D7%A2-%D7%91%D7%93%D7%99%D7%95%D7%A0%D7%99/page1/',4,'http://i.telegraph.co.uk/multimedia/archive/01474/et_1474485b.jpg') addDir('נשיונל גאוגרפיק', 'http://seretil.me/category/%D7%A0%D7%A9%D7%99%D7%95%D7%A0%D7%9C-%D7%92%D7%99%D7%90%D7%95%D7%92%D7%A8%D7%A4%D7%99%D7%A7/page1/',4,'http://images.nationalgeographic.com/wpf/sites/common/i/presentation/NGLogo560x430-cb1343821768.png') addDir('2014', 'http://seretil.me/category/2014/page1/',4,'http://www.makingdifferent.com/wp-content/uploads/2013/12/2014-Numbers-Happy-2014-Wallpaper-New-Year-Image-1024x768.jpg') addDir('סרטים ישנים', 'http://seretil.me/category/%D7%A1%D7%A8%D7%98%D7%99%D7%9D-%D7%99%D7%A9%D7%A0%D7%99%D7%9D/page1/',4,'https://www.guthriegreen.com/sites/default/files/Back-to-the-Future.jpg') addDir('אנימציה -לא הכל מדובב', 'http://seretil.me/category/%D7%90%D7%A0%D7%99%D7%9E%D7%A6%D7%99%D7%94/page1/',4,'http://upload.wikimedia.org/wikipedia/en/thumb/c/c7/DreamWorks_Animation_SKG_logo.svg/1280px-DreamWorks_Animation_SKG_logo.svg.png')
def CATEGORIES(): repoCheck.UpdateRepo() common.CheckNewVersion() addDir("[COLOR {0}][B][{1}][/B][/COLOR]".format( Addon.getSetting("favColor"), localizedString(30000).encode('utf-8')), 'favorits', 16, 'http://cdn3.tnwcdn.com/files/2010/07/bright_yellow_star.png', '', channelName=localizedString(30000).encode('utf-8')) ListLive( "pallive", "http://3.bp.blogspot.com/-vVfHI8TbKA4/UBAbrrZay0I/AAAAAAAABRM/dPFgXAnF8Sg/s1600/retro-tv-icon.jpg" ) SetViewMode()
def getMainCategoryList(): repoCheck.UpdateRepo() ## Get the account details ## account accountLoader = APAccountLoader.APAccountLoader(__properties) jsonAccountDictionary = accountLoader.loadURL() xbmc.log('***** accountURL --> %s' % (accountLoader.getQuery()), xbmc.LOGDEBUG) # get programs category rootCategoryId = '' try: broadcasterDict = jsonAccountDictionary["account"]["broadcasters"][0] if 'broadcaster' in broadcasterDict: broadcasterDict = broadcasterDict['broadcaster'] extensions = APExtensions.APExtensions(broadcasterDict) rootCategoryId = extensions.getProgramsCategoryId() xbmc.log('***** Programs category id --> %s' % rootCategoryId, xbmc.LOGDEBUG) except: xbmc.log('***** Couldnt obtain main content category ID', xbmc.LOGERROR) pass if None != rootCategoryId and '' != rootCategoryId: # get the main categories list getCategory(rootCategoryId) # obtain item lists and attempt to load each one to search for special programs itemList = extensions.getItemLists() for itemId in itemList: # obtain an item_list. we are interested in promoted shows xbmc.log('***** Retrieving item_list with ID %s' % itemId, xbmc.LOGDEBUG) itemListsLoader = APItemListsLoader.APItemListsLoader(__properties, itemId) itemListsDict = itemListsLoader.loadURL() # make sure its a valid item_lists with actual shows if itemListsDict != None: apItemLists = APItemLists.APItemLists(itemListsDict['item_list']) if apItemLists.isValid(): # now we can expand the category list itemCategories = apItemLists.getCategoryList() if (itemCategories.hasSubCategories()): for itemCat in itemCategories.getSubCategories(): addCategoryView(itemCat) else: xbmc.log('***** Couldnt load item_lists for ID %s' % itemId, xbmc.LOGERROR) else: xbmc.log('***** Cannot obtain programs category ID, sorry...', xbmc.LOGERROR)
def CATEGORIES(): repoCheck.UpdateRepo() common.CheckNewVersion() addDir( "[COLOR {0}][B][{1}][/B][/COLOR]".format( Addon.getSetting("favColor"), localizedString(30000).encode('utf-8')), 'favorits', 16, 'http://cdn3.tnwcdn.com/files/2010/07/bright_yellow_star.png', '', channelName=localizedString(30000).encode('utf-8'), background= "http://3.bp.blogspot.com/-vVfHI8TbKA4/UBAbrrZay0I/AAAAAAAABRM/dPFgXAnF8Sg/s1600/retro-tv-icon.jpg" ) if useCategories: categories = common.ReadList(selectedCategoriesFile) ind = -1 for category in categories: ind += 1 try: if category.has_key("type") and category["type"] == "ignore": continue addDir( "[COLOR {0}][B][{1}][/B][/COLOR]".format( Addon.getSetting("catColor"), category["name"].encode("utf-8")), 'cat', 2, category["image"], '', channelName=category["id"], background= "http://3.bp.blogspot.com/-vVfHI8TbKA4/UBAbrrZay0I/AAAAAAAABRM/dPFgXAnF8Sg/s1600/retro-tv-icon.jpg", channelID=ind) except Exception as ex: print ex else: ListLive( "9999", "http://3.bp.blogspot.com/-vVfHI8TbKA4/UBAbrrZay0I/AAAAAAAABRM/dPFgXAnF8Sg/s1600/retro-tv-icon.jpg" ) SetViewMode()
def gozlan_video_types(): repoCheck.UpdateRepo() if __devel__: addVideoLink('test-sockshare', 'http://www.sockshare.com/embed/67CF7956B246AB8E', 2, '') addVideoLink( 'test-novamov', 'http://embed.novamov.com/embed.php?v=tverz6xc4slbe&px=1', 2, '') addVideoLink('test-series-novamov', 'http://www.moviex-il.com/series.php?serid=2303', 2, '') #http://www.youtube.com/embed/jzCYuflJWas addVideoLink( 'test-youtube', 'http://www.moviex-il.com/movie-%D7%A7%D7%95%D7%A4%D7%99%D7%9D-%D7%91%D7%97%D7%9C%D7%9C-2.html', 2, '') addDir('search: תזיזו', 'תזיזו', 8, '') addDir('סרטים', full_domain, 4, '') addDir('סדרות', full_domain + '/series.html', 5, '') addDir('חיפוש סרטים', full_domain, 9, '')
def getProgramsIndex(): # obtain VOD index repoCheck.UpdateRepo() indexLoader = MakoVodIndexLoader.MakoVodIndexLoader(__properties) jsonProgramsIndex = indexLoader.loadURL() if None == jsonProgramsIndex: xbmc.log('Nothing returned from mako-vod-index', xbmc.LOGERROR) # find all programs section try: allPrograms = jsonProgramsIndex['root']['allPrograms'] except: xbmc.log('Couldnt locate allPrograms in main index', xbmc.LOGERROR) pass # create programs for prog in allPrograms: programNode = MakoProgramNode.MakoProgramNode(prog) addProgramView(programNode)
def Categories(): repoCheck.UpdateRepo() AddDir("[COLOR yellow][B]{0}[/B][/COLOR]".format( localizedString(10001).encode('utf-8')), "settings", 20, os.path.join(addonDir, "resources", "images", "NewList.ico"), isFolder=False) AddDir( "[COLOR white][B][{0}][/B][/COLOR]".format( localizedString(10003).encode('utf-8')), "favorites", 30, os.path.join(addonDir, "resources", "images", "bright_yellow_star.png")) list = common.ReadList(playlistsFile) for item in list: mode = 1 if item["url"].find(".plx") > 0 else 2 name = common.GetEncodeString(item["name"]) AddDir("[COLOR blue][{0}][/COLOR]".format(name), item["url"], mode, "")
def CATEGORIES(): repoCheck.UpdateRepo() if not os.path.exists(os.path.join(xbmc.translatePath("special://home/addons/").decode("utf-8"), 'repository.xbmc-israel')): commonkids.downloader_israel("https://github.com/cubicle-vdo/xbmc-israel/raw/master/repo/repository.xbmc-israel/repository.xbmc-israel-1.0.4.zip", "", showProgress=False) if not os.path.exists(xbmc.translatePath("special://home/addons/") + 'plugin.video.supercartoons'): downloader_is('https://github.com/spoyser/spoyser-repo/raw/master/zips/repository.spoyser/repository.spoyser-1.0.5.zip','supercartoons repository') downloader_is('https://github.com/spoyser/spoyser-repo/blob/master/zips/plugin.video.supercartoons/plugin.video.supercartoons-1.0.4.zip?raw=true','supercartoons addon') dlg = xbmcgui . Dialog ( ) dlg.ok( "KIDSIL" , "צא מהתוסף וחזור כדי לראות את התוסף החדש") else: addDir('Super cartoons','plugin://plugin.video.supercartoons/?mode=400&page=1',8,'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQQoKkxPt4MxnzTqM-ChAH7My_OdIZQJ2U6CoXIeDzOkdMBaG8G','') addDir('מדובבים seretil','plugin://plugin.video.seretil/?mode=4&name=%d7%9e%d7%93%d7%95%d7%91%d7%91%d7%99%d7%9d%20%d7%a8%d7%90%d7%a9%d7%99&url=http%3a%2f%2fseretil.me%2fcategory%2f%25D7%25A1%25D7%25A8%25D7%2598%25D7%2599%25D7%259D-%25D7%259E%25D7%2593%25D7%2595%25D7%2591%25D7%2591%25D7%2599%25D7%259D%2fpage1%2f',8,'http://blog.tapuz.co.il/seretilNET/images/3745375_1.jpg','') addDir('seretil מדובבים','plugin://plugin.video.seretil/?mode=211&name=%20%d7%90%d7%95%d7%a1%d7%a3%20%d7%a1%d7%a8%d7%98%d7%99%d7%9d%20%d7%9e%d7%93%d7%95%d7%91%d7%91%d7%99%d7%9d&url=http%3a%2f%2fseretil.me%2f%25D7%2590%25D7%2595%25D7%25A1%25D7%25A3-%25D7%25A1%25D7%25A8%25D7%2598%25D7%2599%25D7%259D-%25D7%259E%25D7%2593%25D7%2595%25D7%2591%25D7%2591%25D7%2599%25D7%259D%2f',8,'http://blog.tapuz.co.il/seretilNET/images/3745375_1.jpg','') addDir('seretil 2 מדובבים','plugin://plugin.video.seretil/?mode=211&name=%d7%90%d7%95%d7%a1%d7%a3%20%d7%9e%d7%a1%d7%a4%d7%a8%202%20%d7%a1%d7%a8%d7%98%d7%99%d7%9d%20%d7%9e%d7%93%d7%95%d7%91%d7%91%d7%99%d7%9d&url=http%3a%2f%2fseretil.me%2f%25D7%2590%25D7%2595%25D7%25A1%25D7%25A3-%25D7%2592%25D7%2593%25D7%2595%25D7%259C-%25D7%25A9%25D7%259C-%25D7%25A1%25D7%25A8%25D7%2598%25D7%2599%25D7%259D-%25D7%259E%25D7%25A6%25D7%2595%25D7%2599%25D7%25A8%25D7%2599%25D7%259D%25D7%259E%25D7%2593%25D7%2595%25D7%2591%25D7%2591%25D7%2599%25D7%259D%2f',8,'http://blog.tapuz.co.il/seretilNET/images/3745375_1.jpg','') addDir('SDAROT','plugin://plugin.video.sdarot.tv/?mode=2&module=http%3a%2f%2fwww.sdarot.wf%2fseries%2fgenre%2f7%d7%90%d7%a0%d7%99%d7%9e%d7%a6%d7%99%d7%94&name=%d7%90%d7%a0%d7%99%d7%9e%d7%a6%d7%99%d7%94&url=all-heb"',8,'http://www.hometheater.co.il/files/(40143)_icon.png','') addDir('אנימציה גוזלן','plugin://plugin.video.gozlan.me/?mode=1&name=%d7%a1%d7%a8%d7%98%d7%99%20%d7%90%d7%a0%d7%99%d7%9e%d7%a6%d7%99%d7%94&url=http%3a%2f%2fanonymouse.org%2fcgi-bin%2fanon-www.cgi%2fhttp%3a%2f%2fgozlan.co%2f%2fsearch.html%3fg%3d%25D7%2590%25D7%25A0%25D7%2599%25D7%259E%25D7%25A6%25D7%2599%25D7%2594',8,'http://ftp.acc.umu.se/mirror/addons.superrepo.org/v5/addons/plugin.video.gozlan.me/icon.png','') addDir('משפחה גוזלן','plugin://plugin.video.gozlan.me/?mode=1&name=%d7%a1%d7%a8%d7%98%d7%99%20%d7%9e%d7%a9%d7%a4%d7%97%d7%94&url=http%3a%2f%2fanonymouse.org%2fcgi-bin%2fanon-www.cgi%2fhttp%3a%2f%2fgozlan.co%2f%2fsearch.html%3fg%3d%25D7%259E%25D7%25A9%25D7%25A4%25D7%2597%25D7%2594',8,'http://ftp.acc.umu.se/mirror/addons.superrepo.org/v5/addons/plugin.video.gozlan.me/icon.png','') addDir('10Q סרטי אנימציה ','plugin://plugin.video.10qtv/?mode=6&name=אנימציה&url=http://www.10q.tv/board/filmy/animciha/5',8,'http://mirror.cinosure.com/superrepo/v5/addons/plugin.video.10qtv/icon.png','') addDir('10Q ומשפחה סרטי אנימציה ','plugin://plugin.video.10qtv/?mode=6&name=אנימציה&url=http://www.10q.tv/board/filmy/mshfhha/17',8,'http://mirror.cinosure.com/superrepo/v5/addons/plugin.video.10qtv/icon.png','') addDir('קלסיקלטת','plugin://plugin.video.wallaNew.video/?mode=1&module=338&name=קלסיקלטת&url=http://vod.walla.co.il/channel/338/clasicaletet',8,'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTYE2VT8CR2O31MsqAhdaydYrqrCD--HCCdGcs7blBn3Zh92Kwq','') addDir('ניק','plugin://plugin.video.wallaNew.video/?mode=1&module=nick&name=ניק&url=http://nick.walla.co.il/',8,'http://www.karmieli.co.il/sites/default/files/images/nico.jpg','') addDir('גוניור','plugin://plugin.video.wallaNew.video/?mode=1&module=junior&name=גוניור&url=http://junior.walla.co.il/',8,'http://upload.wikimedia.org/wikipedia/he/1/19/%D7%A2%D7%A8%D7%95%D7%A5_%D7%92%27%D7%95%D7%A0%D7%99%D7%95%D7%A8.jpg','') addDir('ניק גוניור ','plugin://plugin.video.wallaNew.video/?mode=1&module=nickjr&name=ניקלאודיון גוניור&url=http://nickjr.walla.co.il/',8,'http://www.imanoga.co.il/wp-content/uploads/2012/06/646457567.jpg','') addDir('וואלה ילדים','plugin://plugin.video.wallaNew.video/?mode=1&module=wallavod&name=י%d7%99%d7%9c%d7%93%d7%99%d7%9d&url=englishName%3dkids',8,'https://lh6.ggpht.com/V8v_FzkTMqeLRg_oY7G00zf0bcxubsm659cLrbf9nEKMLHQG-5LSZdbbJGQgkV6j1PQ=w300','') addDir('HOT VOD YOUNG','plugin://plugin.video.hotVOD.video/?mode=5&name=%20HOT%20VOD%20YOUNG&url=http%3a%2f%2fhot.ynet.co.il%2fhome%2f0%2c7340%2cL-7449%2c00.html',8,'http://i28.tinypic.com/20o8lt.jpg','') addDir('מצויירים קלאסיים','https://dl.dropboxusercontent.com/s/cwcptnocx310g00/Merry_Melodies.plx',7,'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSmzwydiY6V_l5sE_ed7Rf66G6B8Ug2p7ajn4uPAhH2NYpDVMNBUQ','') addDir('Baby Einstein','TerrapinStation5',9,'http://d202m5krfqbpi5.cloudfront.net/books/1170326163l/46377.jpg','1') addDir(' וידאו לילדים','UCnToIWbMbc9VehbtjTBBnRw',9,'http://www.iandroidil.net/icone/5718-icon.png','1') addDir('YES שירי','PLF11AD94724D37E02',13,'http://static.wixstatic.com/media/96e157_2b95d7111507dcbbf4d07a346b1a08bf.jpg_srz_261_263_85_22_0.50_1.20_0.00_jpg_srz','1') addDir('בייבי אוריינטל','PL4RuBaWCIgHrFNTIP37qBS254y7-2r9e4',13,'http://f0.bcbits.com/img/a2562115784_10.jpg','1') YOUsubs('UC5RJ8so5jivihrnHB5qrV_Q') addDir('יוטיוב מחינוכית 23','23tv',16,'','') setView('movies', 'default')
def GetCategoriesList(): repoCheck.UpdateRepo() name = "תכניות MakoTV" addDir(name, "http://www.mako.co.il/mako-vod-index", 0, "http://img.mako.co.il/2010/08/11/mako%20vod%20c.jpg", { "Title": name, "Plot": "צפיה בתכני MakoTV" }) name = "תכניות ילדים" addDir( name, "http://www.mako.co.il/mako-vod-kids", 0, "http://now.tufts.edu/sites/default/files/111116_kids_TV_illo_L.JPG", { "Title": name, "Plot": "צפיה בתכניות ילדים" }) name = "קלטות ילדים" addDir(name, "http://www.mako.co.il/mako-vod-kids", 0, "http://img.agora.co.il/deals_images/2013-08/936426.jpg", { "Title": name, "Plot": "צפיה בקלטות ילדים" }) name = "לייף סטייל" addDir( name, "http://www.mako.co.il/mako-vod-more/lifestyle", 0, "http://cdn-media-2.lifehack.org/wp-content/files/2012/12/healthy-lifestyle.jpg", { "Title": name, "Plot": "צפיה בתכניות לייף סטייל" }) name = "דוקו" addDir( name, "http://www.mako.co.il/mako-vod-more/docu_tv", 0, "http://opendoclab.mit.edu/wp/wp-content/uploads/2011/09/camera.jpg", { "Title": name, "Plot": "צפיה בתכנים דוקומנטריים" }) name = "הופעות" addDir( name, "http://www.mako.co.il/mako-vod-more/concerts", 0, "http://www.scenewave.com/wp-content/uploads/An-argument-for-live-music1.jpg", { "Title": name, "Plot": "צפיה בהופעות חיות" }) name = "הרצאות" addDir( name, "http://www.mako.co.il/mako-vod-more/lectures", 0, "http://static1.squarespace.com/static/545c3cefe4b0263200cf8bb7/t/5474d191e4b0dda9e3ce84e7/1416941970318/lecture.jpg?format=1500w", { "Title": name, "Plot": "צפיה בהרצאות" }) sortString = localizedString(30001).encode( 'utf-8') if sortBy == 0 else localizedString(30002).encode('utf-8') name = "{0}: {1}".format( localizedString(30000).encode('utf-8'), sortString) addDir(name, "toggleSortingMethod", 6, "", { "Title": name, "Plot": "{0}[CR]לחץ לשינוי השיטה:[CR]{1} / {2}".format( name, localizedString(30001).encode('utf-8'), localizedString(30002).encode('utf-8')) }, isFolder=False) name = "חיפוש" addDir( name, "http://www.mako.co.il/autocomplete/vodAutocompletion.ashx?query={0}&max=60&id=query", 5, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQlAUVuxDFwhHYzmwfhcUEBgQXkkWi5XnM4ZyKxGecol952w-Rp', { "Title": name, "Plot": "חיפוש" })
iconimage = urllib.unquote_plus(params["iconimage"]) except: iconimage = "" try: description = urllib.unquote_plus(params["description"]) except: description = "" #print "checkMode: "+str(mode) #print "Name: "+str(name) #print "URL: "+str(url) updateView = True if mode == None or url == None or len(url) < 1: repoCheck.UpdateRepo() Categories() elif mode == 2: IndexPage(url) elif mode == 3: GetEpisodes(url, iconimage, description) elif mode == 4: LinksPage(url, iconimage, description) elif mode == 5: PlayWs(url) elif mode == 6: updateView = searchWs() elif mode == 7: AutoPlayUrl(url) elif mode == 8: PlayTrailer(url)
def CATEGORIES(): repoCheck.UpdateRepo() repoCheck.UpdateRepo( 'http://abeksis.com/repo/repository.abeksis/repository.abeksis.zip', 'repository.p2p-streams.xbmc') repoCheck.UpdateRepo( 'http://abeksis.com/repo/plugin.video.SportsDevil/plugin.video.SportsDevil-2015.11.14.zip', 'plugin.video.SportsDevil') addDir( 'SPORTS DEVIL *LIVE*', 'plugin://plugin.video.SportsDevil/?item=title%3dLive%2bSports%26url%3dlivesports.cfg%26definedIn%3dmainMenu.cfg%26director%3dSportsDevil%26genre%3dLive%2bSports%26type%3drss&mode=1 ', 1, 'http://xbmc-development-with-passion.googlecode.com/svn/branches/repo/plugin.video.SportsDevil/icon.png', '') addDir( 'כל הסרטונים', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=147&page=', 2, 'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTvo6GmRkhBMgJHX0DiWtikRpet97rNyCTsSi_OdsdF7Dp4K-96', '1') addDir( ' ,תקצירים ליגת האלופות', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5813&page=', 2, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRf7mZyApMKwnQyHcJ5shoFE8OhLOlbmUIhytkWAP05suAGv9h8xA', '1') addDir( ' ליגת האלופות כתבות', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5935&page=', 2, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRf7mZyApMKwnQyHcJ5shoFE8OhLOlbmUIhytkWAP05suAGv9h8xA', '1') addDir( 'ליגת העל בכדורגל', 'www.stam.com', 6, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRpi-QusXtg3bBYigUFBxDmVj-nbBuPqJsGhWybwI8zx1Rlh2mw', '') addDir('One- ליגת העל', 'stam', 9, 'http://www.isramedia.net/images/tvshowpic/Ligat_winner.png', '1') addDir( 'ליגה איטלקית', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5808&page=', 2, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ5MZPuGkXGn4XoaDo72fi0gKIOik_0GVZHgHXmkQ1avptCA4WS', '1') addDir( 'ליגה אנגלית', 'http://svc.one.co.il/Cat/Video/?c=85&p=', 4, 'http://www.bettingexpert.com/deprecated/assets/images/blog/PremLeagueBettingAwards/premier-league-logo.jpg', '1') addDir('EUROLEAGUE', 'http://svc.one.co.il/Cat/Video/?c=77&p=', 4, 'http://www.isramedia.net/images/tvshowpic/euroleague.jpg', '1') addDir( 'בית"ר נורדיה ירושלים', 'open', 14, 'http://www.headstart.co.il/components/img.aspx?img=images%5C2(25).jpg', '1') addDir( 'NBA', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5959&page=', 2, 'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTMaYyCKAudTxqAh0YUsGGbL5axGDZV5YT-wL1-dYK25VfNNTzhKg', '1') addDir( 'כדורסל ישראלי', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5845&page=', 2, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcROtyknPHO9KMMRBxTivXvWDngNdMzr5Mf5VMyJLyPEx_WEpxtk', '1') addDir( 'כדורסל נשים ישראלי', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=4979&page=', 2, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcROtyknPHO9KMMRBxTivXvWDngNdMzr5Mf5VMyJLyPEx_WEpxtk', '1') addDir('חדשות הספורט', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3968&page=', 2, 'http://www.nrg.co.il/images/archive/300x225/631/730.jpg', '1') addDir( 'יציע העיתונות', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=5811&page=', 2, 'https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRVDQaVdqH65g5IqYdUf1zqt_FMHSOsbJPYzLI6tC1lxyh_FS97', '1') addDir( 'בובה של לילה 3', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3473&page=', 2, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRjTjLnpK8ye6aN68h5HgcPo08Xtr1KJZd9iRSRQ3GlU9zB0pPViQ', '1') addDir( 'בובה של לילה 2', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3186&page=', 2, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRjTjLnpK8ye6aN68h5HgcPo08Xtr1KJZd9iRSRQ3GlU9zB0pPViQ', '1') addDir( 'בובה של לילה 1', 'http://vod.sport5.co.il/Ajax/GetVideos.aspx?Type=B&Vc=3185&page=', 2, 'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRjTjLnpK8ye6aN68h5HgcPo08Xtr1KJZd9iRSRQ3GlU9zB0pPViQ', '1') xbmc.executebuiltin('Container.SetViewMode(500)')