def MAINMENU(): main.addDir('Search Tv-Release', BASEURL+'?s=', 1006,art+'/tvrsearch1.png') main.addDir('TV 480', BASEURL+'category/tvshows/tv480p/', 1001,art+'/TV480.png') main.addDir('TV 720', BASEURL+'category/tvshows/tv720p/', 1001,art+'/TV720.png') main.addDir('TV MP4', BASEURL+'category/tvshows/tvmp4/', 1001,art+'/TVmp4.png') main.addDir('TV Xvid', BASEURL+'category/tvshows/tvxvid/', 1001,art+'/TVxvid.png') main.addDir('TV Packs', BASEURL+'tv-pack/', 1007,art+'/TVpacks.png') main.addDir('TV Foreign', BASEURL+'category/tvshows/tv-foreign/', 1001,art+'/TVforeign.png') main.addDir('Movies 480', BASEURL+'category/movies/movies480p/', 1001,art+'/Movies480.png') main.addDir('Movies 720', BASEURL+'category/movies/movies720p/', 1001,art+'/Movies720.png') main.addDir('Movies Xvid', BASEURL+'category/movies/moviesxvid/', 1001,art+'/Moviesxvid.png') main.addDir('Movies Foreign', BASEURL+'category/movies/moviesforeign/', 1001,art+'/Moviesforeign.png') main.addSpecial('Resolver Settings',BASEURL, 1004,art+'/tvrresolver.png') main.VIEWSB()
def MAINMENU(): main.addDir('Search Tv-Release', BASEURL+'?seacher=', 1006,art+'/tvrsearch1.png') main.addDir('TV 480', BASEURL+'?cat=TV-480p', 1001,art+'/TV480.png') main.addDir('TV 720', BASEURL+'?cat=TV-720p', 1001,art+'/TV720.png') main.addDir('TV MP4', BASEURL+'?cat=TV-Mp4', 1001,art+'/TVmp4.png') main.addDir('TV Xvid', BASEURL+'?cat=TV-XviD', 1001,art+'/TVxvid.png') #main.addDir('TV Packs', BASEURL+'category/tvshows/tvpack/', 1007,art+'/TVpacks.png') main.addDir('TV Foreign', BASEURL+'?cat=TV-Foreign', 1001,art+'/TVforeign.png') main.addDir('Movies 480', BASEURL+'?cat=Movies-480p', 1001,art+'/Movies480.png') main.addDir('Movies 720', BASEURL+'?cat=Movies-720p', 1001,art+'/Movies720.png') main.addDir('Movies Xvid', BASEURL+'?cat=Movies-XviD', 1001,art+'/Moviesxvid.png') main.addDir('Movies Foreign', BASEURL+'?cat=Movies-Foreign', 1001,art+'/Moviesforeign.png') main.addSpecial('Resolver Settings',BASEURL, 1004,art+'/tvrresolver.png') main.VIEWSB()
def MAIN(): main.addLink('[COLOR yellow]Time Zone:[/COLOR] [COLOR orange]'+tzname+'[/COLOR]','',art+'/kiwi.png') main.addSpecial('[COLOR blue]Change Time Zone[/COLOR]','tz',440,art+'/kiwi.png') main.addDir('[COLOR orange]****** All Streams ******[/COLOR]','tz',442,art+'/kiwi.png') link=main.OPENURL('http://www.coolsport.tv/schedule-coolsport-tv.html') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('<font color="red" size="6">(.+?)</font><p>(.*?)size="6').findall(link) for date,streams in match: main.addLink('[COLOR red]'+date+'[/COLOR]','',art+'/twittermash.png') match2=re.compile('(?sim)<font color="gold"> ([^<]+) </font> (.+?) (\d+.\d+\D+)-(\d+.\d+\D+) <font color="red">(.+?)</font><p>').findall(streams) for lang,name,t1,t2,url in match2: t1=CleanTime(t1) t2=CleanTime(t2) #url=url.lower().replace(' ','').replace('skysports','ss') name = name.decode("ascii", "ignore") main.addPlayL('[COLOR orange]'+lang+'[/COLOR] '+name+' [COLOR yellow]'+t1+' - '+t2+'[/COLOR] [COLOR red]'+url+'[/COLOR]','http://www.coolsport.tv/'+url.lower().replace(' ','')+'.html',441,'','','','','','',secName='Kiwi',secIcon=art+'/kiwi.png')
def MAIN(): main.addLink('[COLOR yellow]Time Zone:[/COLOR] [COLOR orange]'+tzname+'[/COLOR]','',art+'/kiwi.png') main.addSpecial('[COLOR blue]Change Time Zone[/COLOR]','tz',440,art+'/kiwi.png') main.addDir('[COLOR orange]****** All Streams ******[/COLOR]','tz',442,art+'/kiwi.png') link=main.OPENURL('http://www.coolsport.se') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('<font color="red" size="6">(.+?)</font><p>(.*?)size="6').findall(link) for date,streams in match: main.addLink('[COLOR red]'+date+'[/COLOR]','',art+'/twittermash.png') match2=re.compile("(?sim)<font color='.+?'> ([^<]+) -<font color='white'> (.+?) (\d+.\d+\D+)-(\d+.\d+\D+) </font></font><font color='red'>(.+?)</font>").findall(streams) #<font color='white'> (.+?) </font></font><font color='red'> (Stream 27) </font></a></li><p> for lang,name,t1,t2,url in match2: t1=CleanTime(t1) t2=CleanTime(t2) #url=url.lower().replace(' ','').replace('skysports','ss') name = name.decode("ascii", "ignore") main.addPlayL('[COLOR orange]'+lang+'[/COLOR] '+name+' [COLOR yellow]'+t1+' - '+t2+'[/COLOR] [COLOR red]'+url+'[/COLOR]',BASEURL+url.lower().replace('(','').replace(')','').replace(' ','')+'.html',441,'','','','','','',secName='Kiwi',secIcon=art+'/kiwi.png')
def MAINMENU(): main.addDir('Search Tv-Release', BASEURL + '?seacher=', 1006, art + '/tvrsearch1.png') main.addDir('TV 480', BASEURL + '?cat=TV-480p', 1001, art + '/TV480.png') main.addDir('TV 720', BASEURL + '?cat=TV-720p', 1001, art + '/TV720.png') main.addDir('TV MP4', BASEURL + '?cat=TV-Mp4', 1001, art + '/TVmp4.png') main.addDir('TV Xvid', BASEURL + '?cat=TV-XviD', 1001, art + '/TVxvid.png') #main.addDir('TV Packs', BASEURL+'category/tvshows/tvpack/', 1007,art+'/TVpacks.png') main.addDir('TV Foreign', BASEURL + '?cat=TV-Foreign', 1001, art + '/TVforeign.png') main.addDir('Movies 480', BASEURL + '?cat=Movies-480p', 1001, art + '/Movies480.png') main.addDir('Movies 720', BASEURL + '?cat=Movies-720p', 1001, art + '/Movies720.png') main.addDir('Movies Xvid', BASEURL + '?cat=Movies-XviD', 1001, art + '/Moviesxvid.png') main.addDir('Movies Foreign', BASEURL + '?cat=Movies-Foreign', 1001, art + '/Moviesforeign.png') main.addSpecial('Resolver Settings', BASEURL, 1004, art + '/tvrresolver.png') main.VIEWSB()
def MAIN(): mashup=126 notified=os.path.join(main.datapath,str(mashup)) if not os.path.exists(notified): open(notified,'w').write('version="%s",'%mashup) dialog = xbmcgui.Dialog() ok=dialog.ok('[B]Attention!!![/B]', 'I have been finding problems in the plugin', 'and no one reports it. Please report issues','at xbmchub.com or tweet @mashupxbmc') ok=dialog.ok('[B]VERSION 1.2.6[/B]', 'Please checkout the changes in the following sections','Live, Youtube Kids and BuiltIn Plugins.', 'Thanks and Enjoy the plugin') mashup=mashup-1 notified=os.path.join(main.datapath,str(mashup)) if os.path.exists(notified): os.remove(notified) main.addDir('Search','http://www.movie25.com/',420,"%s/art/search.png"%selfAddon.getAddonInfo("path")) main.addDir("My Fav's",'http://www.movie25.com/',10,"%s/art/fav.png"%selfAddon.getAddonInfo("path")) main.addDir('A-Z','http://www.movie25.com/',6,"%s/art/AZ.png"%selfAddon.getAddonInfo("path")) main.addDir('New Releases','http://www.movie25.com/movies/new-releases/',1,"%s/art/new.png"%selfAddon.getAddonInfo("path")) main.addDir('Latest Added','http://www.movie25.com/movies/latest-added/',1,"%s/art/latest.png"%selfAddon.getAddonInfo("path")) main.addDir('Featured Movies','http://www.movie25.com/movies/featured-movies/',1,"%s/art/feat.png"%selfAddon.getAddonInfo("path")) main.addDir('Most Viewed','http://www.movie25.com/movies/most-viewed/',1,"%s/art/view.png"%selfAddon.getAddonInfo("path")) main.addDir('Most Voted','http://www.movie25.com/movies/most-voted/',1,"%s/art/vote.png"%selfAddon.getAddonInfo("path")) main.addDir('Genre','http://www.movie25.com/',2,"%s/art/genre.png"%selfAddon.getAddonInfo("path")) main.addDir('By Year','http://www.movie25.com/',7,"%s/art/year.png"%selfAddon.getAddonInfo("path")) main.addDir('HD Movies','http://oneclickwatch.org/category/movies/',33,"%s/art/hd2.png"%selfAddon.getAddonInfo("path")) main.addDir('3D Movies','3D',34,"%s/art/3d.png"%selfAddon.getAddonInfo("path")) main.addDir('International','http://www.movie25.com/',36,"%s/art/intl.png"%selfAddon.getAddonInfo("path")) main.addDir('TV Latest','http://www.movie25.com/',27,"%s/art/tv2.png"%selfAddon.getAddonInfo("path")) main.addDir('Live Streams','http://www.movie25.com/',115,"%s/art/live.png"%selfAddon.getAddonInfo("path")) main.addDir('Built in Plugins','http://www.movie25.com/',500,"%s/art/plugins.png"%selfAddon.getAddonInfo("path")) main.addDir('Sports','http://www.movie25.com/',43,"%s/art/sportsec2.png"%selfAddon.getAddonInfo("path")) main.addDir('Adventure','http://www.movie25.com/',63,"%s/art/adv2.png"%selfAddon.getAddonInfo("path")) main.addDir('Kids Zone','http://www.movie25.com/',76,"%s/art/kidzone2.png"%selfAddon.getAddonInfo("path")) main.addDir('Documentaries','http://www.movie25.com/',85,"%s/art/docsec2.png"%selfAddon.getAddonInfo("path")) main.addDir('Resolver Settings','http://www.movie25.com/',99,"%s/art/resset.png"%selfAddon.getAddonInfo("path")) main.addDir('Need Help?','http://www.movie25.com/',100,"%s/art/xbmchub.png"%selfAddon.getAddonInfo("path")) main.addSpecial('Contact Mash2k3','http://www.movie25.com/',156,"%s/art/mash2k3info.png"%selfAddon.getAddonInfo("path")) main.VIEWSB()
def MAINSIDE(cacheOnly = False): import time import datetime cached_path = os.path.join(os.path.join(main.datapath,'Cache'), 'Sidereel') cached = main.getFile(cached_path) if (not cached or (cached and time.mktime(datetime.date.today().timetuple()) > os.stat(cached_path).st_mtime) or xbmcgui.Window(10000).getProperty('Refresh_Sidreel')): from t0mm0.common.net import Net as net setCookie(MAINURL) response = net().http_GET(MAINURL) link = response.content link = cleanHex(link) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace(' ','') today=re.compile("<li class='current'>[^/]+?<h2 class='[^']*?'><span>(.+?)</span></h2><div(.+?)/div></div></li>",re.DOTALL).findall(link) match=re.compile("<li class=''>[^/]+?<h2 class='[^']+?'><span>(.+?)</span></h2><div(.+?)/div></div></li>",re.DOTALL).findall(link) match = today + match if match: main.setFile(cached_path,str(match),True) else: main.addLink('[COLOR red]Something is wrong, Check if you credentials are correct[/COLOR]','TV','') main.addSpecial('[COLOR yellow]User: [/COLOR][COLOR white]'+user+'[/COLOR] --- Click to EDIT','USER',456,'') main.addSpecial('[COLOR yellow]Pass: [/COLOR][COLOR white]'+passw+'[/COLOR] --- Click to EDIT','PASS',456,'') main.addLink('[COLOR orange]If they are correct Clear Cache & Cookies Below[/COLOR]','TV','') main.addDir('[COLOR blue]Clear Cache & Cookies[/COLOR]','MashCache',416,art+'/maintenance.png') main.addLink('[COLOR red]If that does not solve the issue post log on forums[/COLOR]','TV','') xbmcgui.Window(10000).clearProperty('Refresh_Sidreel') else: match = eval(cached) if cacheOnly: return False main.GA("None","SideReel") main.addDir('Search for Shows','TV',398,art+'/search.png') main.addDir('All Tracked Shows','TV',402,art+'/sidereel.png') import calendar todaytimestamp = calendar.timegm(time.strptime(time.strftime("%b") + " " + time.strftime("%d"), "%b %d")) showsdisplayed = 0 for date,shows in match: print shows if 'data-track-label="TrackerPage"' in shows: s = re.sub('(?i)^.*?,(.*)$','\\1',date).strip() timestamp = calendar.timegm(time.strptime(s, "%b %d")) days = (timestamp - todaytimestamp) / 86400 relative = getRelativeDate(days) main.addLink('[COLOR yellow]'+date+'[/COLOR] [COLOR orange]('+relative+')[/COLOR]','',art+'/link.png') match2=re.compile("""data-track-label="TrackerPage" href=".+?">([^<]+?)</a><div><a class=".+?data-track-label="TrackerPage" href="([^"]+?)">([^<]+?)</a></div>""",re.DOTALL).findall(shows) for showname,seaepi, epiname in match2: se=re.search('season-(\d+)/episode-(\d+)',seaepi) if se: if len(se.group(1))==1: sea='0'+str(se.group(1)) else: sea=str(se.group(1)) if len(se.group(2))==1: epi='0'+str(se.group(2)) else: epi=str(se.group(2)) final= 'S'+sea+'E'+epi else: final='' main.addDir(showname+' '+final+' [COLOR red] "'+epiname+'"[/COLOR]','TV',20,art+'/sidereel.png') showsdisplayed += 1 if not showsdisplayed: main.removeFile(cached_path)
def MAINSIDE(cacheOnly=False): import time import datetime cached_path = os.path.join(os.path.join(main.datapath, 'Cache'), 'Sidereel') cached = main.getFile(cached_path) if (not cached or (cached and time.mktime( datetime.date.today().timetuple()) > os.stat(cached_path).st_mtime) or xbmcgui.Window(10000).getProperty('Refresh_Sidreel')): from t0mm0.common.net import Net as net setCookie(MAINURL) response = net().http_GET(MAINURL) link = response.content link = cleanHex(link) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace( ' ', '').replace(' ', '') today = re.compile( "<li class='current'>[^/]+?<h2 class='[^']*?'><span>(.+?)</span></h2><div(.+?)/div></div></li>", re.DOTALL).findall(link) match = re.compile( "<li class=''>[^/]+?<h2 class='[^']+?'><span>(.+?)</span></h2><div(.+?)/div></div></li>", re.DOTALL).findall(link) match = today + match if match: main.setFile(cached_path, str(match), True) else: main.addLink( '[COLOR red]Something is wrong, Check if you credentials are correct[/COLOR]', 'TV', '') main.addSpecial( '[COLOR yellow]User: [/COLOR][COLOR white]' + user + '[/COLOR] --- Click to EDIT', 'USER', 456, '') main.addSpecial( '[COLOR yellow]Pass: [/COLOR][COLOR white]' + passw + '[/COLOR] --- Click to EDIT', 'PASS', 456, '') main.addLink( '[COLOR orange]If they are correct Clear Cache & Cookies Below[/COLOR]', 'TV', '') main.addDir('[COLOR blue]Clear Cache & Cookies[/COLOR]', 'MashCache', 416, art + '/maintenance.png') main.addLink( '[COLOR red]If that does not solve the issue post log on forums[/COLOR]', 'TV', '') xbmcgui.Window(10000).clearProperty('Refresh_Sidreel') else: match = eval(cached) if cacheOnly: return False main.GA("None", "SideReel") main.addDir('Search for Shows', 'TV', 398, art + '/search.png') main.addDir('All Tracked Shows', 'TV', 402, art + '/sidereel.png') import calendar todaytimestamp = calendar.timegm( time.strptime( time.strftime("%b") + " " + time.strftime("%d"), "%b %d")) showsdisplayed = 0 for date, shows in match: print shows if 'data-track-label="TrackerPage"' in shows: s = re.sub('(?i)^.*?,(.*)$', '\\1', date).strip() timestamp = calendar.timegm(time.strptime(s, "%b %d")) days = (timestamp - todaytimestamp) / 86400 relative = getRelativeDate(days) main.addLink( '[COLOR yellow]' + date + '[/COLOR] [COLOR orange](' + relative + ')[/COLOR]', '', art + '/link.png') match2 = re.compile( """data-track-label="TrackerPage" href=".+?">([^<]+?)</a><div><a class=".+?data-track-label="TrackerPage" href="([^"]+?)">([^<]+?)</a></div>""", re.DOTALL).findall(shows) for showname, seaepi, epiname in match2: se = re.search('season-(\d+)/episode-(\d+)', seaepi) if se: if len(se.group(1)) == 1: sea = '0' + str(se.group(1)) else: sea = str(se.group(1)) if len(se.group(2)) == 1: epi = '0' + str(se.group(2)) else: epi = str(se.group(2)) final = 'S' + sea + 'E' + epi else: final = '' main.addDir( showname + ' ' + final + ' [COLOR red] "' + epiname + '"[/COLOR]', 'TV', 20, art + '/sidereel.png') showsdisplayed += 1 if not showsdisplayed: main.removeFile(cached_path)