Beispiel #1
0
def VIDEOLINKS(name, url, thumb, favtype):
    params = {'url': url, 'name': name, 'thumb': thumb, 'favtype': favtype}
    link = OPEN_URL(url).replace('\n', '').replace('\r', '').replace(' ', '')
    #link = net.http_GET(url).content.replace('\n','').replace('\r','').replace(' ','')
    match = re.compile(
        'id="flashContent"data-videosrc="(.+?)"data-videodata="(.+?)"></div>'
    ).findall(link)
    matchyear = re.compile('<spanclass="year">(.+?)</span>').findall(link)
    for url, url2 in match:
        #if 'undefined' in url:
        url = url2
        for year in matchyear:
            link = net.http_GET(url).content
            url = URL + url
            match4 = re.compile(
                '"poster":"(.+?)","slider":".+?","duration":.+?,"rating":"(.+?)","language":".+?","cuepoints":".+?","urls":{".+?":"(.+?)"}'
            ).findall(link)
            for thumb, rating, url in match4:
                #replace odd strings
                thumb = thumb.replace("\/", "/")
                url = url.replace("\/", "/")
                mainimg = thumb
                favtype = 'movies'
                link = net.http_GET(url).content
                match3 = re.compile(
                    'RESOLUTION=864x480\r\n(.+?)\r\n#').findall(link)
                for url in match3:
                    main.addDLDir(name + year + ' Rated- ' + rating, url,
                                  'addlink', thumb, '', name + year, favtype,
                                  mainimg)
                    main.AUTO_VIEW('movies')
Beispiel #2
0
def AZINDEX(url):
		if settings.getSetting('tmovies_account') == 'true':
				try:
					cj.load(cookie_file, ignore_discard=True)
				except:
					print "Could not load cookie jar file."
		#link = net.http_GET(url).content
		link = OPEN_URL(url)
		match=re.compile('<a href="(.+?)">\r\n        <img src=".+?" data-original="(.+?)"  class=".+?" style=".+?"  border=".+?" height=".+?" width=".+?" alt="Watch (.+?) Online for Free">\r\n').findall(link)
		#if len(match) > 0:
		for url,sitethumb,name in match:
			matchyear=re.compile('<a class="filmyar" href=".+?">(.+?)</a>').findall(link)
			for year in matchyear:
				data = main.GRABMETA(name,year)
				thumb = data['cover_url']
				yeargrab = data['year']
				year = str(yeargrab)
			favtype = 'movie'
			if 'watch_movie' in url:

				main.addDir(name+ ' (' + year +')',url,'linkpage',thumb,data,favtype,8)

		nmatch=re.compile('<a id="next" class=".+?" href="(.+?)">Next &raquo</a>\n').findall(link)
		if len(nmatch) > 0:
				main.addDir('Next Page',(nmatch[0]),'azindex',artwork +'Icon_Menu_Movies_nextpage.png','','dir',1)

		main.AUTO_VIEW('movies')
Beispiel #3
0
def CATEGORIES():

    url = listmaker
    #if 'watchkodi'  in url: values = {'jibberish'} ###### used to stop from connecting to server

    link = vipplaylist.OPEN_URL(url).replace('\r', '').replace(
        '\n', '').replace('\t', '').replace('&nbsp;', '').replace(
            'type=playlistname=Sorted by user-assigned order', '').replace(
                'name=Sorted [COLOR=FF00FF00]by user-assigned order[/COLOR]',
                '').replace('name=Live Tv Channels Twothumb', '')
    match = re.compile(
        '<name>(.+?)</name><link>(.+?)</link><thumbnail>(.+?)</thumbnail><mode>(.+?)</mode>'
    ).findall(link)
    for name, url, thumb, mode in match:
        if re.findall('http', thumb):
            thumbs = thumb
        else:
            thumbs = art + '/' + thumb + '.png'
        main.addDir(name, url, mode, thumbs, fanart, '', '', '')

    main.addDir('NHL', 'none', 'mainnhl', artPath + 'hockey.jpg', fanart, '',
                '', '')
    main.addDir(
        'Manage Downloads', 'none', 'viewQueue',
        'http://theredbadge.com/wp-content/uploads/2013/01/icon-folder.red_.download.png',
        fanart, '', '', '')
    main.AUTO_VIEW('menu')
Beispiel #4
0
def MAZINDEX():
	 main.addDir('#','http://'+domain+'/letter/0/','azindex',artwork +'/movieaz/hash.png','','dir',1)
	 main.addDir('A','http://'+domain+'/letter/A/','azindex',artwork +'/movieaz/a.png','','dir',1)
	 main.addDir('B','http://'+domain+'/letter/B/','azindex',artwork +'/movieaz/b.png','','dir',1)
	 main.addDir('C','http://'+domain+'/letter/C/','azindex',artwork +'/movieaz/c.png','','dir',1)
	 main.addDir('D','http://'+domain+'/letter/D/','azindex',artwork +'/movieaz/d.png','','dir',1)
	 main.addDir('E','http://'+domain+'/letter/E/','azindex',artwork +'/movieaz/e.png','','dir',1)
	 main.addDir('F','http://'+domain+'/letter/F/','azindex',artwork +'/movieaz/f.png','','dir',1)
	 main.addDir('G','http://'+domain+'/letter/G/','azindex',artwork +'/movieaz/g.png','','dir',1)
	 main.addDir('H','http://'+domain+'/letter/H/','azindex',artwork +'/movieaz/h.png','','dir',1)
	 main.addDir('I','http://'+domain+'/letter/I/','azindex',artwork +'/movieaz/i.png','','dir',1)
	 main.addDir('J','http://'+domain+'/letter/J/','azindex',artwork +'/movieaz/j.png','','dir',1)
	 main.addDir('K','http://'+domain+'/letter/K/','azindex',artwork +'/movieaz/k.png','','dir',1)
	 main.addDir('L','http://'+domain+'/letter/L/','azindex',artwork +'/movieaz/l.png','','dir',1)
	 main.addDir('M','http://'+domain+'/letter/M/','azindex',artwork +'/movieaz/m.png','','dir',1)
	 main.addDir('N','http://'+domain+'/letter/N/','azindex',artwork +'/movieaz/n.png','','dir',1)
	 main.addDir('O','http://'+domain+'/letter/O/','azindex',artwork +'/movieaz/o.png','','dir',1)
	 main.addDir('P','http://'+domain+'/letter/P/','azindex',artwork +'/movieaz/p.png','','dir',1)
	 main.addDir('Q','http://'+domain+'/letter/Q/','azindex',artwork +'/movieaz/q.png','','dir',1)
	 main.addDir('R','http://'+domain+'/letter/R/','azindex',artwork +'/movieaz/r.png','','dir',1)
	 main.addDir('S','http://'+domain+'/letter/S/','azindex',artwork +'/movieaz/s.png','','dir',1)
	 main.addDir('T','http://'+domain+'/letter/T/','azindex',artwork +'/movieaz/t.png','','dir',1)
	 main.addDir('U','http://'+domain+'/letter/U/','azindex',artwork +'/movieaz/u.png','','dir',1)
	 main.addDir('V','http://'+domain+'/letter/V/','azindex',artwork +'/movieaz/v.png','','dir',1)
	 main.addDir('W','http://'+domain+'/letter/W/','azindex',artwork +'/movieaz/w.png','','dir',1)
	 main.addDir('X','http://'+domain+'/letter/X/','azindex',artwork +'/movieaz/x.png','','dir',1)
	 main.addDir('Y','http://'+domain+'/letter/Y/','azindex',artwork +'/movieaz/y.png','','dir',1)
	 main.addDir('Z','http://'+domain+'/letter/Z/','azindex',artwork +'/movieaz/z.png','','dir',1)
	 main.AUTO_VIEW('')
Beispiel #5
0
def MOVIEINDEX(url):
		if settings.getSetting('tmovies_account') == 'true':
			  #net.set_cookies(cookiejar)
			  try:
					cj.load(cookie_file, ignore_discard=True)
			  except:
					print "Could not load cookie jar file."
		link = OPEN_URL(url)
		match=re.compile('<a href="(.+?)" title=".+?">\r\n                        <img src="(.+?)" class=".+?" style=".+?"  border=".+?" height="147px" width="102px" alt="Watch (.+?) Online for Free">\r\n').findall(link)
		if len(match) > 0:
		 for url,sitethumb,name in match:
		   matchyear=re.compile('<a class="filmyar" href="http://'+domain+'/browse_movies/all/byViews/(.+?)/">').findall(link)
		   if len(matchyear) > 0:
			 for year in matchyear:
				 data = main.GRABMETA(name,year)
				 thumb = data['cover_url']
				 yeargrab = data['year']
				 year = str(yeargrab)
			 favtype = 'movie'
			 main.addDir(name+' ('+ year +')',url,'linkpage',thumb,data,favtype,len(url))
			 nmatch=re.compile('<a id="next" class=".+?" href="(.+?)">Next &raquo</a>\n').findall(link)
		if len(nmatch) > 0:

				 main.addDir('Next Page',(nmatch[0]),'movieindex',artwork +'Icon_Menu_Movies_nextpage.png','','dir',1)

		main.AUTO_VIEW('movies')
Beispiel #6
0
def GENRES():

		main.addDir('Action','http://'+domain+'/browse_movies/Action/byViews/all/','movieindex',artwork +'Icon_Menu_action.png','','dir',1)
		main.addDir('Adventure','http://'+domain+'/browse_movies/Adventure/byViews/all/','movieindex',artwork +'Icon_Menu_adventure.png','','dir',1)
		main.addDir('Animation','http://'+domain+'/browse_movies/Animation/byViews/all/','movieindex',artwork +'Icon_Menu_animation.png','','dir',1)
		main.addDir('Biography','http://'+domain+'/browse_movies/Biography/byViews/all/','movieindex',artwork +'Icon_Menu_biography.png','','dir',1)
		main.addDir('Comedy','http://'+domain+'/browse_movies/Comedy/byViews/all/','movieindex',artwork +'Icon_Menu_comedy.png','','dir',1)
		main.addDir('Crime','http://'+domain+'/browse_movies/Crime/byViews/all/','movieindex',artwork +'Icon_Menu_crime.png','','dir',1)
		main.addDir('Documentary','http://'+domain+'/browse_movies/Documentary/byViews/all/','movieindex',artwork +'Icon_Menu_documentary.png','','dir',1)
		main.addDir('Drama','http://'+domain+'/browse_movies/Drama/byViews/all/','movieindex',artwork +'Icon_Menu_drama.png','','dir',1)
		main.addDir('Family','http://'+domain+'/browse_movies/Family/byViews/all/','movieindex',artwork +'Icon_Menu_family.png','','dir',1)
		main.addDir('Fantastic','http://'+domain+'/browse_movies/Fantastic/byViews/all/','movieindex',artwork +'Icon_Menu_fantastic.png','','dir',1)
		main.addDir('Fantasy','http://'+domain+'/browse_movies/Fantasy/byViews/all/','movieindex',artwork +'Icon_Menu_fantasy.png','','dir',1)
		main.addDir('Film-Noir','http://'+domain+'/browse_movies/Film-Noir/byViews/all/','movieindex',artwork +'Icon_Menu_film-noir.png','','dir',1)
		main.addDir('History','http://'+domain+'/browse_movies/History/byViews/all/','movieindex',artwork +'Icon_Menu_history.png','','dir',1)
		main.addDir('Horror','http://'+domain+'/browse_movies/Horror/byViews/all/','movieindex',artwork +'Icon_Menu_horror.png','','dir',1)
		main.addDir('Music','http://'+domain+'/browse_movies/Music/byViews/all/','movieindex',artwork +'Icon_Menu_music.png','','dir',1)
		main.addDir('Mystery','http://'+domain+'/browse_movies/Mystery/byViews/all/','movieindex',artwork +'Icon_Menu_mystery.png','','dir',1)
		main.addDir('Reality-TV','http://'+domain+'/browse_movies/Reality-TV/byViews/all/','movieindex',artwork +'Icon_Menu_reality-tv.png','','dir',1)
		main.addDir('Romance','http://'+domain+'/browse_movies/Romance/byViews/all/','movieindex',artwork +'Icon_Menu_romance.png','','dir',1)
		main.addDir('Sci-Fi','http://'+domain+'/browse_movies/Sci-Fi/byViews/all/','movieindex',artwork +'Icon_Menu_sci-fi.png','','dir',1)
		main.addDir('Thriller','http://'+domain+'/browse_movies/Thriller/byViews/all/','movieindex',artwork +'Icon_Menu_thriller.png','','dir',1)
		main.addDir('Western','http://'+domain+'/browse_movies/Western/byViews/all/','movieindex',artwork +'Icon_Menu_western.png','','dir',1)

		main.AUTO_VIEW('')
Beispiel #7
0
def GETSHORTS(url):
    link=OPEN_URL(url).replace('\n','').replace('\r','')
    match=re.compile('name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)".+?ype="(.+?)"').findall(link)
    for name,url,iconimage,fanart,description,filetype in match:
        main.addHELPDir(name,url,'addshortcuts',iconimage,fanart,description,filetype)
                  
        main.AUTO_VIEW('movies')        
Beispiel #8
0
def SEARCHT(url):
	searchUrl = url
	vq = _get_keyboard( heading="TIME INTENSIVE!! Be Patient!!" )
	if ( not vq ): return False, 0
	# we need to set the title to our query
	title = urllib.quote_plus(vq)
	searchUrl += title + '&criteria=tag'
	print "Searching URL: " + searchUrl
	MOVIEINDEX1(searchUrl)

	main.AUTO_VIEW('movies')
Beispiel #9
0
def INDEX(url, favtype):
    params = {'url': url, 'favtype': favtype}
    link = net.http_GET(url).content
    #match=re.compile('<a href="(.+?)">\n\t\t  <img width="184" height="256" src="(.+?)" alt="(.+?)"/>').findall(link)
    match = re.compile(
        '<a href="(.+?)">\n                    <img width="184" height="256" src="(.+?)" alt="(.+?)"/>'
    ).findall(link)
    for url, thumb, name in match:
        url = URL + url
        main.addDir(name, url, 'videolinks', thumb, '', favtype)
    main.AUTO_VIEW('movies')
Beispiel #10
0
def MOVIECAT():
		main.addDir('Movies by Popularity','http://'+domain+'/browse_movies/all/byViews/all/','playyear',artwork +'moviespopularity.png','','dir',1)
		main.addDir('Movies by Rating','http://'+domain+'/browse_movies/all/byRating/all/','playyear',artwork +'moviesrating.png','','dir',1)
		main.addDir('Trending Movies','http://'+domain+'/','movieindex1',artwork +'Icon_Menu_Movies_Popularandtrending.png','','dir',1)
		main.addDir('Newly Added Movies','http://'+domain+'/new_release/','movieindex1',artwork +'moviesnewlyadded.png','','dir',1)
		main.addDir('Movies by Year ','none','byyear',artwork +'Icon_Menu_Movies_Byyear.png','','dir',1)
		main.addDir('Movie Genres ','http://'+domain+'/','genres',artwork +'Icon_Menu_Movies_Genre.png','','dir',1)
		main.addDir('A-Z Index','none','mazindex',artwork +'moviesa-z.png','','dir',1)
		main.addDir('[COLOR gold]Search by Movie Name[/COLOR] ','http://'+domain+'/search/?search_query=','searchm',artwork +'Icon_Menu_Movies_SearchName.png','','dir',1)
		if settings.getSetting('movietags') == 'true':
				main.addDir('[COLOR gold]Search by Custom Tag[/COLOR] ','http://'+domain+'/search/?search_query=','searcht',artwork +'Icon_Menu_Movies_SearchCustomTag.png','','dir',1)
		main.AUTO_VIEW('')
Beispiel #11
0
def INDEX_DEEP(url, favtype):
    #mainurl = url
    params = {'url': url, 'favtype': favtype}
    link = OPEN_URL(url)
    match = re.compile(
        '<a href="(.+?)"><img width="184" height="256" src="(.+?)"\n.+?alt="(.+?)"></a>'
    ).findall(link)
    for url, thumb, name in match:
        print 'Stuff is ' + url
        url = URL + url
        main.addDir(name, url, 'videolinks', thumb, '', favtype)
    main.AUTO_VIEW('movies')
Beispiel #12
0
def GETVIDEOLINK(url):
    link=OPEN_URL(url).replace('\n','').replace('\r','')
    match=re.compile('name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)".+?ype="(.+?)"').findall(link)
    for name,url,iconimage,fanart,description,filetype in match:
        if 'video' in filetype:
            main.addHELPDir(name,url,'getvideo',iconimage,fanart,description,filetype)
        elif 'youtube' in filetype:
           main.addHELPDir(name,url,'getvideo',iconimage,fanart,description,filetype)
        elif 'stream' in filetype:
           main.addHELPDir(name,url,'getvideo',iconimage,fanart,description,filetype)   
    

    main.AUTO_VIEW('movies')
Beispiel #13
0
def MOVIETAGS(url):
		if settings.getSetting('tmovies_account') == 'true':
			  #net.set_cookies(cookiejar)
			  try:
					cj.load(cookie_file, ignore_discard=True)
			  except:
					print "Could not load cookie jar file."
		link = OPEN_URL(url)
		match=re.compile('<a href="(.+?)" style=".+?; font-style: .+?; font-variant: .+?; font-size-adjust: .+?; font-stretch:.+?; -x-system-font: .+?; color: .+?; font-weight:.+?; line-height: .+?; word-spacing: .+?; letter-spacing:.+?;font-size:.+?;margin:.+?;">(.+?)</a>').findall(link)
		for url,name in match:

				main.addDir(name,url,'movietagindex',artwork +'Icon_Menu_Movies_ByTag.png','','dir',len(url))
		main.AUTO_VIEW('')
def HELPCATEGORIES():
    if ((XBMCversion['Ver'] in ['','']) or (int(XBMCversion['two']) < 12)) and (settings.getSetting('bypass-xbmcversion')=='false'):
        eod(); addon.show_ok_dialog(["Compatibility Issue: Outdated Kodi Setup","Please upgrade to a newer version of XBMC first!","Visit %s for Support!"%SiteDomain],title="XBMC "+XBMCversion['Ver'],is_error=False); DoA('Back'); 
    else:
        link=OPEN_URL(wizardUrl+'packs.txt').replace('\n','').replace('\r','')
        match=re.compile('name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)".+?ype="(.+?)".+?nset="(.+?)".+?estart="(.+?)"').findall(link)
        for name,url,iconimage,fanart,description,filetype,skinset,restart in match:
            #if 'status' in filetype:
                #main.addHELPDir(name,url,'wizardstatus',iconimage,fanart,description,filetype)
            #else:    
                main.addHELPDir(name,url,'helpwizard',iconimage,fanart,description,filetype,skinset,restart)
                #print [name,url]
        main.AUTO_VIEW('movies')
Beispiel #15
0
def HELPCATEGORIES():
    link = OPEN_URL(
        'https://github.com/CYBERxNUKE/cputech/raw/master/help.txt').replace(
            '\n', '').replace('\r', '')
    match = re.compile(
        'name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)".+?ype="(.+?)"'
    ).findall(link)
    for name, url, iconimage, fanart, description, filetype in match:
        #if 'status' in filetype:
        #main.addHELPDir(name,url,'wizardstatus',iconimage,fanart,description,filetype)
        #else:
        main.addHELPDir(name, url, 'helpwizard', iconimage, fanart,
                        description, filetype)
        main.AUTO_VIEW('movies')
Beispiel #16
0
def STATUSCATS():
          link=OPEN_URL('http://addonrepo.com/xbmchub/familyfunflix/messages/addon.txt').replace('\n','').replace('\r','')
          match=re.compile('name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)".+?ype="(.+?)"').findall(link)
          for name,url,iconimage,fanart,description,filetype in match:
              if 'status' in filetype:
                 main.addHELPDir(name,url,'addonstatus',iconimage,fanart,description,filetype)
              elif 'getshorts' in filetype:
                 main.add2HELPDir(name,url,'getshorts',iconimage,fanart,description,filetype) 
              elif 'main' in filetype:
                    main.addHELPDir(name,url,'addoninstall',iconimage,fanart,description,filetype)
              elif 'addrepo' in filetype:
                    main.add2HELPDir(name,url,'getrepolink',iconimage,fanart,description,filetype)
              elif 'source' in filetype:
                    main.addHELPDir(name,url,'addsource',iconimage,fanart,description,filetype)
              elif 'getvideo' in filetype:
                    main.add2HELPDir(name,url,'getvideolink',iconimage,fanart,description,filetype)      
                    main.AUTO_VIEW('movies')
Beispiel #17
0
def CATEGORIES():

    main.addDir('New Arrivals',
                'http://www.popcornflixkids.com/new-arrival-kids-movies',
                'indexdeep', '', '', 'movies')
    main.addDir('Most Popular',
                'http://www.popcornflixkids.com/most-popular-movies',
                'indexdeep', '', '', 'movies')
    link = OPEN_URL('http://www.popcornflixkids.com').replace(
        '\n', '').replace('\r', '').replace('\t', '')
    match = re.compile('Genres(.+?)<div class="copyright">').findall(link)
    genres = match[0]
    gmatch = re.compile('<a href="(.+?)">(.+?)</a>').findall(genres)
    for genre, name in gmatch:
        print 'Genres is ' + genre
        if 'TV' not in name:
            main.addDir(name, 'http://www.popcornflixkids.com' + genre,
                        'indexdeep', '', '', 'movies')
    #main.addDir('[COLOR gold]Manage Downloads[/COLOR]','none','viewQueue',artPath +'downloads.png','','')
    #main.addDir('[COLOR white]Help and Extras[/COLOR]','none','statuscats',artPath +'help.png','','')
    main.AUTO_VIEW('')
Beispiel #18
0
def CATEGORIES(loggedin):
		main.addDir('[COLOR gold][B]TwoMovies - watch movies online[/COLOR][/B]',messages+'visittwomovies.txt','addonstatus',artwork +'mainlogo.png','','dir',1)
		if loggedin == 'true':
				main.addDir('[COLOR red][B]YOU ARE LOGGED IN[/COLOR][/B]',messages+'loggedintrue.txt','addonstatus',artwork +'loggedin.png','','dir',1)
				main.addDir('[COLOR red]Larger numbers of sources will take longer to load[/COLOR]',messages+'loggedintrue.txt','addonstatus',artwork +'loggedin.png','','dir',1)
		if loggedin == 'false':
				main.addDir('[COLOR white][B]Login/Re-Attempt Login[/COLOR][/B]','none','relogin',artwork +'relogin.png','','dir',1)
				main.addDir('[COLOR white][B]How to Login[/COLOR][/B]',messages+'loggedinfalse.txt','addonstatus',artwork +'howtologin.png','','dir',1)
		main.addDir('[COLOR white]Movies[/COLOR]','none','moviecat',artwork +'Icon_Menu_Movies_Menu.png','','dir',1)

		if settings.getSetting('tvshows') == 'true':
				main.addDir('[COLOR white]TV Shows[/COLOR]','none','tvcats',artwork +'Icon_Menu_TVShows_Menu.png','','dir',1)
		if settings.getSetting('adult') == 'true':
				text_file = None
				if not os.path.exists(xbmc.translatePath("special://home/userdata/addon_data/plugin.video.twomovies/")):
						os.makedirs(xbmc.translatePath("special://home/userdata/addon_data/plugin.video.twomovies/"))

				if not os.path.exists(xbmc.translatePath("special://home/userdata/addon_data/plugin.video.twomovies/apc.24")):
						pin = ''
						notice = xbmcgui.Dialog().yesno('Would You Like To Set an Adult Passcode','Would you like to set a passcode for the adult movies section?','','')
						if notice:
								keyboard = xbmc.Keyboard(pin,'Choose A New Adult Movie Passcode')
								keyboard.doModal()
								if keyboard.isConfirmed():
										pin = keyboard.getText()
								text_file = open(xbmc.translatePath("special://home/userdata/addon_data/plugin.video.twomovies/apc.24"), "w")
								text_file.write(pin)
								text_file.close()
						else:
								text_file = open(xbmc.translatePath("special://home/userdata/addon_data/plugin.video.twomovies/apc.24"), "w")
								text_file.write(pin)
								text_file.close()
				main.addDir('[COLOR white]Two Movies Adults Only Section[/COLOR]','none','adultallow',artwork +'Icon_Menu_Adult.png'  ,'','dir',1)


		if settings.getSetting('resolver') == 'true':
				main.addDir('[COLOR white]Resolver Settings[/COLOR]','none','resolverSettings',artwork +'Icon_Menu_Settings_ResolverSettings.png','','dir',1)
		#main.addDir('[COLOR gold]Changelog/Info[/COLOR]',messages+'loggedinfalse.txt','addonstatus',artwork +'changelog.png','','dir',1)
		main.addDir('[COLOR gold]Manage Downloads[/COLOR]','none','viewQueue',artwork +'downloads/Downloads_Manage.png','','',8)
		main.AUTO_VIEW('')
Beispiel #19
0
def MOVIEINDEX1(url):
		if settings.getSetting('tmovies_account') == 'true':
			  #net.set_cookies(cookiejar)
			  try:
					cj.load(cookie_file, ignore_discard=True)
			  except:
					print "Could not load cookie jar file."
		link = OPEN_URL(url)
		match=re.compile('<a href="(.+?)">\r\n        <img src=".+?" data-original="(.+?)"  class=".+?" style=".+?"  border=".+?" height=".+?" width=".+?" alt="Watch (.+?) Online for Free">\r\n').findall(link)
		if len(match) > 0:
		 print "I AM LOOKING"
		 for url,sitethumb,name in match:
		   matchyear=re.compile('<a class="filmyar" href=".+?">(.+?)</a>').findall(link)
		   #matchview=re.compile('<span class="filmtime">(.+?)</span></div><br>').findall(link)
		   if len(matchyear) > 0:
			  for year in matchyear:
				 try:
						 data = main.GRABMETA(name,year)
						 thumb = data['cover_url']
						 yeargrab = data['year']
						 year = str(yeargrab)
				 except:
						 data = ''
						 thumb = sitethumb
						 year = year
			  favtype = 'movie'
			  if 'watch_movie' in url:
					  try:
						   main.addDir(name+ ' (' + year +')',url,'linkpage',thumb,data,favtype,len(url))
					  except:
						   pass
					  nmatch=re.compile('<a id="next" class=".+?" href="(.+?)">Next &raquo</a>\n').findall(link)
					  if len(nmatch) > 0:
							 main.addDir('Next Page',(nmatch[0]),'movieindex1',artwork +'Icon_Menu_Movies_nextpage.png','','dir',1)

		main.AUTO_VIEW('movies')
Beispiel #20
0
def HELPCATEGORIES():
    if ((XBMCversion['Ver'] in ['', '']) or
        (int(XBMCversion['two']) < 12)) and (
            settings.getSetting('bypass-xbmcversion') == 'false'):
        eod()
        addon.show_ok_dialog([
            "Compatibility Issue: Outdated Kodi Setup",
            "Please upgrade to a newer version of XBMC first!",
            "Visit %s for Support!" % SiteDomain
        ],
                             title="XBMC " + XBMCversion['Ver'],
                             is_error=False)
        DoA('Back')
    else:
        setCookie('http://milo.tecfront.ca/member/login')
        response = net.http_GET('http://milo.tecfront.ca/member/login')
        if not 'Logged in as' in response.content:
            dialog = xbmcgui.Dialog()
            dialog.ok('Milo Wizard', 'An error has ocurred logging in',
                      'Please check your details in addon settings', '')
            quit()
        link = OPEN_URL(
            'http://milo.tecfront.ca/member/content/f/id/1/').replace(
                '\n', '').replace('\r', '')
        print link
        match = re.compile(
            'name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)".+?ype="(.+?)"'
        ).findall(link)
        for name, url, iconimage, fanart, description, filetype in match:
            #if 'status' in filetype:
            #main.addHELPDir(name,url,'wizardstatus',iconimage,fanart,description,filetype)
            #else:
            main.addHELPDir(name, url, 'helpwizard', iconimage, fanart,
                            description, filetype)
            #print [name,url]
        main.AUTO_VIEW('movies')
Beispiel #21
0
def MOVIETAGINDEX(url):
		if settings.getSetting('tmovies_account') == 'true':
			  #net.set_cookies(cookiejar)
			  try:
					cj.load(cookie_file, ignore_discard=True)
			  except:
					print "Could not load cookie jar file."
		link = OPEN_URL(url)
		match=re.compile('<a href="(.+?)">\r\n        <img src=".+?" data-original="(.+?)"  class=".+?" style=".+?"  border=".+?" height=".+?" width=".+?" alt="Watch (.+?) Online for Free">\r\n').findall(link)
		if len(match) > 0:
		 for url,sitethumb,name in match:
		  matchyear=re.compile('<a class="filmyar" href="http://'+domain+'/browse_movies/all/byViews/(.+?)/">').findall(link)
		  if len(matchyear) > 0:
			 for year in matchyear:
				 data = main.GRABMETA(name,year)
				 thumb = data['cover_url']
				 yeargrab = data['year']
				 year = str(yeargrab)


			 favtype = 'movie'
			 main.addDir(name+' ('+ year +')',url,'linkpage',thumb,data,favtype,len(url))

		main.AUTO_VIEW('movies')