def Check_Link(name, url, image): HTML = process.OPEN_URL(url) match = re.compile( '<iframe width="660" height="400" scrolling="no" frameborder="0" src="http://mystream.la/external/(.+?)" allowFullScreen></iframe>' ).findall(HTML) for end in match: url = 'http://mystream.la/external/' + end process.Play(name, url, 205, image, FANART, '', '')
def Pandora_Menu(url): link = process.OPEN_URL(url) match=re.compile('<a href="(.+?)" target="_blank"><img src="(.+?)" style="max-width:200px;" /><description = "(.+?)" /><background = "(.+?)" </background></a><br><b>(.+?)</b>').findall(link) for url,iconimage,desc,background,name in match: process.Play(name,url,906,iconimage,background,desc,'') xbmcplugin.addSortMethod(addon_handle, xbmcplugin.SORT_METHOD_TITLE); xbmcplugin.endOfDirectory(int(sys.argv[1]))
def Cartoons(Search_name): HTML2 = process.OPEN_URL( Decode('aHR0cDovL3d3dy5hbmltZXRvb24ub3JnL2NhcnRvb24=')) match2 = re.compile('<td><a href="(.+?)">(.+)</a></td>').findall(HTML2) for url, name in match2: if (Search_name).replace(' ', '') in (name).replace(' ', '').lower(): name = '[COLORred]Origin [/COLOR]' + name process.Menu(name, url, 803, '', '', '', '')
def GetContent(url,iconimage): link=process.OPEN_URL(url) match= re.compile('<link>(.+?)</link><thumbnail>(.+?)</thumbnail><title>(.+?)</title>').findall(link) for url,iconimage,name in match: if not 'http' in iconimage:iconimage='' if '/brettusbuilds.com/' in url: process.Menu(name,url,1601,iconimage,'','','') else:process.Play(name,url,906,iconimage,'','','')
def Music(Search_name): HTML4 = process.OPEN_URL( Decode( 'aHR0cDovL3d3dy5raWRzYXVkaW9ib29rcy5jby51ay9jb21wbGV0ZV9saXN0Lmh0bQ==' )) match4 = re.compile( '<td width=".+?">.*?<b>.+?<a href="(.*?)">(.*?)</a></b></td>', re.DOTALL).findall(HTML4) for url, name in match4: if (Search_name).replace(' ', '') in (name).replace(' ', '').lower(): name = '[COLORred]Origin [/COLOR]' + (name).replace( '\n', ' ').replace(' ', '') if '</a>' in name: pass elif '(' in name: process.Menu( (name).replace(' ', '').replace(' ', '').replace( '+', '').replace('.mp3', ''), Decode('aHR0cDovL3d3dy5raWRzYXVkaW9ib29rcy5jby51ay8=') + url, 605, '', '', '', '') else: process.Play( (name).replace(' ', '').replace(' ', '').replace( '+', '').replace('.mp3', ''), Decode('aHR0cDovL3d3dy5raWRzYXVkaW9ib29rcy5jby51ay8=') + url, 604, '', '', '', '') HTML5 = process.OPEN_URL( 'https://www.youtube.com/user/audiobooksfree/playlists') block = re.compile( '<ul class="yt-lockup-meta-info">(.+?)<div class="yt-lockup-meta">', re.DOTALL).findall(HTML5) for item in block: name = re.compile('dir="ltr" title="(.+?)"').findall(str(item)) for name in name: name = (name).replace(' ', '').replace(''', '\'') url = re.compile( '<a href="(.+?)" class="yt-pl-thumb-link yt-uix-sessionlink' ).findall(str(item)) for url in url: url = 'https://www.youtube.com' + url image = re.compile('data-thumb="(.+?)"').findall(str(item)) for image in image: image = image if (Search_name).replace(' ', '') in (name).replace(' ', '').lower(): name = '[COLORred]Origin [/COLOR]' + str(name) process.Menu(name, str(url), 10001, str(image), '', '', '')
def Origin_Highlights(url): HTML = process.OPEN_URL(url) match = re.compile( '<article id=".+?" class=".+?<img width=".+?" height=".+?" src="(.+?)" class=.+?<h2 class="entry-title"><a href="(.+?)" rel="bookmark">(.+?)</a></h2>', re.DOTALL).findall(HTML) for img, url, name in match: name = (name).replace('–', '-') process.Menu(name, url, 418, img, FANART, '', '')
def LISTS2(url, IMAGE): sources = [] html = process.OPEN_URL(url) match = re.compile( '"playlist">(.+?)</span></div><div><iframe src="(.+?)"').findall(html) for name, url2 in match: if 'panda' in url2: HTML = process.OPEN_URL(url2) match2 = re.compile("url: '(.+?)'").findall(HTML) for url3 in match2: if 'http' in url3: sources.append({ 'source': 'playpanda', 'quality': 'SD', 'url': url3 }) elif 'easy' in url2: HTML2 = process.OPEN_URL(url2) match3 = re.compile("url: '(.+?)'").findall(HTML2) for url3 in match3: if 'http' in url3: sources.append({ 'source': 'easyvideo', 'quality': 'SD', 'url': url3 }) elif 'zoo' in url2: HTML3 = process.OPEN_URL(url2) match4 = re.compile("url: '(.+?)'").findall(HTML3) for url3 in match4: if 'http' in url3: sources.append({ 'source': 'videozoo', 'quality': 'SD', 'url': url3 }) if len(sources) >= 3: choice = Dialog.select('Select Playlink', [ link["source"] + " - " + " (" + link["quality"] + ")" for link in sources ]) if choice != -1: url = sources[choice]['url'] isFolder = False xbmc.Player().play(url)
def Pandoras_Box(): html=process.OPEN_URL(Base_Pand +Decode('c3BvbmdlbWFpbi5waHA=')) match = re.compile('<item>.+?<title>(.+?)</title>.+?<description>(.+?)</description>.+?<link>(.+?)</link>.+?<thumbnail>(.+?)</thumbnail>.+?<fanart>(.+?)</fanart>.+?<mode>(.+?)</mode>.+?</item>',re.DOTALL).findall(html) for name,desc,url,img,fanart,mode in match: process.Menu(name,url,mode,img,fanart,desc,'') xbmcplugin.setContent(addon_handle, 'movies') xbmcplugin.endOfDirectory(int(sys.argv[1]))
def eporner_cats(url): html = process.OPEN_URL(url) block = re.compile('<div id="panel-right-title">(.+?)<li class="lihe">',re.DOTALL).findall(html) for item in block: match = re.compile('<a href="(.+?)" title="(.+?)"><img src="(.+?)"').findall(str(item)) for url,name,img in match: url = 'http://eporner.com'+url name = clean_name.clean_name(name) process.Menu(name.replace('P**n Videos',''),url,761,img,FANART,'','')
def Next(name, url, image): HTML = process.OPEN_URL(url) match = re.compile( '<iframe width="660" height="400" scrolling="no" frameborder="0" src="http://mystream.la/external/(.+?)" allowFullScreen></iframe>' ).findall(HTML) for end in match: url = 'http://mystream.la/external/' + end process.Play(name, url, 116, image, FANART, '', '') xbmcplugin.endOfDirectory(int(sys.argv[1]))
def whatson(url): html = process.OPEN_URL(url) match = re.compile( '<div class="channel_name">(.+?)<.+?<div class="programme showing".+?channel_id=(.+?).+?>(.+?)</a>', re.DOTALL).findall(html) for name, id, whatson in match: name = name.replace('(', '').replace(')', '').replace( 'Plus 1', '+1').replace('London', '').replace('Five', '5') process.Menu(name + ' - ' + whatson, '', 2203, '', '', '', name)
def Pubfilm_Grab(url): HTML = process.OPEN_URL(url) match = re.compile('<a class="short-img" href="(.+?)" data-label=".+?">.+?<img src="(.+?)" height="317".+?title="(.+?)" />',re.DOTALL).findall(HTML) for url,img,name in match: image = 'http://www.pubfilm.biz' + img Check_Link(name,url,image) Next_Page = re.compile('<a href="(.+?)">Next</a></span>').findall(HTML) for item in Next_Page: process.Menu('Next Page',item,203,ICON,FANART,'','')
def motor_name(url): HTML = process.OPEN_URL(url) match = re.compile('<font color="#FFFFFF">(.+?)</font>(.+?)<a name=', re.DOTALL).findall(HTML) for name, block in match: name = name.replace('<b>', '').replace('</b>', '') process.Menu( name.replace('\n', ' ').replace(' ', ''), '', 2103, '', '', '', block)
def Genres(): OPEN = process.OPEN_URL(Main) match = re.compile( '<li><a href="/genres/(.+?)" class="sr-header">(.+?)</a></li>' ).findall(OPEN) for url, name in match: url = Main + '/genres/' + url process.Menu(name, url, 304, ICON, FANART, '', '') xbmcplugin.endOfDirectory(int(sys.argv[1]))
def Movie_Genre(url): html = process.OPEN_URL('http://www.imdb.com/genre/') match = re.compile( '<h3><a href="(.+?)">(.+?)<span class="normal">').findall(html) for url, name in match: url = 'http://www.imdb.com/search/title?genres=' + name.replace( ' ', '').lower() + '&title_type=feature&sort=moviemeter,asc' process.Menu(name, url, 203, '', '', '', '') process.setView('movies', 'INFO')
def Kids_AZ(): HTML = process.OPEN_URL(Decode('aHR0cDovL3d3dy5raWRzYXVkaW9ib29rcy5jby51ay9tcDNfZG93bmxvYWRzLmh0bQ==')) match = re.compile('<td width=".+?" align="center">.+?<a href="(.*?)">.+?<img border="0" src="images/Squeeze%20(.*?).gif" width="74" height=".*?"></a></td>',re.DOTALL).findall(HTML) for url,img in match: if '-x' in img: pass else: process.Menu(img,(Decode('aHR0cDovL3d3dy5raWRzYXVkaW9ib29rcy5jby51ay8=')) + (url).replace('colour_it','books_audio/audio_books_a'),608,(Decode('aHR0cDovL3d3dy5raWRzYXVkaW9ib29rcy5jby51ay9pbWFnZXMvU3F1ZWV6ZSUyMA==')) + img + '.gif',FANART,'','') xbmcplugin.addSortMethod(addon_handle, xbmcplugin.SORT_METHOD_TITLE);
def Search(): Search_Name = Dialog.input('Search', type=xbmcgui.INPUT_ALPHANUM) Search_Title = Search_Name.lower() HTML = process.OPEN_URL(BASE) match = re.compile('<td><a href="(.+?)">(.+)</a></td>').findall(HTML) for url, name in match: if Search_Name in name.lower(): process.Menu(name, url, 803, ICON, FANART, '', '') xbmcplugin.addSortMethod(addon_handle, xbmcplugin.SORT_METHOD_TITLE) xbmcplugin.endOfDirectory(int(sys.argv[1]))
def Motor_Replays(url): HTML = process.OPEN_URL(url) block = re.compile('<b>videos<br>(.+?)<p>', re.DOTALL).findall(HTML) match = re.compile('<a href="(.+?)">(.+?)</a>').findall(str(block)) for url, name in match: if '2013' in name: pass else: url = 'http://www.gpreplay.com/' + url process.Menu(name, url, 2102, '', '', '', '')
def get_Multi_Links(url, iconimage): process.Play('Extended Highlights', url, 402, iconimage, FANART, '', '') HTML = process.OPEN_URL(url) match = re.compile( '<link href=".+?" rel="stylesheet" type="text/css"><li tabindex="0" class="button_style" id=".+?"><a href="(.+?)"><div class="acp_title">(.+?)</div></a></li>' ).findall(HTML) for url2, name in match: url = url + url2 name = (name).replace('HL English', 'English Highlights') process.Play(name, url, 402, iconimage, FANART, '', '')
def get_cat_item(url): html = process.OPEN_URL(url) match = re.compile('<li class=" ">.+?<a href="(.+?)".+?alt="(.+?)">.+?<img class="js-menuSwap" data-image="(.+?)"',re.DOTALL).findall(html) for url,name,image in match: url = pornhub + url process.Menu(name,url,709,image,FANART,'','') match = re.compile('<li class="big video">.+?<a href="(.+?)".+?alt="(.+?)">.+?<img class="js-menuSwap" data-image="(.+?)"',re.DOTALL).findall(html) for url,name,image in match: url = pornhub + url process.Menu(name.encode('utf-8', 'ignore'),url,709,image,image,'','')
def youporn_video(url): html = process.OPEN_URL(url) match = re.compile("<div class='video-box.+?<a href=\"(.+?)\".+?<img src=\"(.+?)\".+?alt='(.+?)'",re.DOTALL).findall(html) for url,img,name in match: name = clean_name.clean_name(name) url = 'http://www.youporn.com'+url process.PLAY(name,url,728,img,FANART,'','') next = re.compile('<link rel="next" href="(.+?)" />').findall(html) for item in next: process.Menu('Next Page',item,725,'http://www.ares-portal.com/wp-content/uploads/2016/12/plugin.video_.youporngay.png',FANART,'','')
def tube8_videos(url): html = process.OPEN_URL(url) match = re.compile('data-value=.+?src="(.+?)".+?alt="(.+?)".+?"video_duration">(.+?)</div>.+?<a href="(.+?)"',re.DOTALL).findall(html) for img,name,length,url in match: name = clean_name.clean_name(name) length = clean_name.clean_name(length) process.PLAY('[COLORred]'+length+'[/COLOR] : '+name,url,740,img,FANART,'','') next = re.compile('<link rel="next" href="(.+?)">').findall(html) for item in next: process.Menu('Next Page',item,739,'https://a3-images.myspacecdn.com/images03/1/cb9e1e694ca941abaf62f0026d18049f/300x300.jpg',FANART,'','')
def Search_247(): Search_Name = Dialog.input('Search', type=xbmcgui.INPUT_ALPHANUM) HTML = process.OPEN_URL(BASE) match = re.compile('<td><a href="(.+?)">(.+?)</a></td>').findall(HTML) for url2, name in match: if Search_Name.replace(' ', '').replace('\'', '').replace( '-', '').lower() in name.replace(' ', '').replace('\'', '').replace( '-', '').lower(): process.Random_play(name, 816, url=url2, isFolder=False) HTML2 = process.OPEN_URL('https://www.watchcartoononline.io/cartoon-list') match = re.compile('<li><a href="(.+?)" title=".+?">(.+?)</a>').findall( HTML2) for url, name in match: if Search_Name.replace(' ', '').replace('\'', '').replace( '-', '').lower() in name.replace(' ', '').replace('\'', '').replace( '-', '').lower(): process.Random_play(name, 816, url=url, isFolder=False)
def open_Menu(url): html=process.OPEN_URL(url) match = re.compile('<item>.+?<title>(.+?)</title>.+?<description>(.+?)</description>.+?<link>(.+?)</link>.+?<thumbnail>(.+?)</thumbnail>.+?<fanart>(.+?)</fanart>.+?<mode>(.+?)</mode>.+?</item>',re.DOTALL).findall(html) for name,desc,url,img,fanart,mode in match: process.Menu(name,url,mode,img,fanart,desc,'') xbmcplugin.setContent(addon_handle, 'movies') xbmcplugin.addSortMethod(addon_handle, xbmcplugin.SORT_METHOD_TITLE); xbmcplugin.endOfDirectory(int(sys.argv[1]))
def FootballFixturesGame(url, img): if 'daily' in url: get_daily(url) else: HTML = process.OPEN_URL(url) block = re.compile( '<h2 class = time_head>(.+?)</h2>(.+?)<div class=float', re.DOTALL).findall(HTML) for date, block in block: process.Menu(date, '', 420, img, FANART, block, '')
def Pubfilm_Comedy_Grab(url): HTML = process.OPEN_URL(url) match = re.compile('<a class="short-img" href="(.+?)" data-label=".+?">.+?<img src="(.+?)" height="317".+?title="(.+?)" />',re.DOTALL).findall(HTML) for url,img,name in match: image = 'http://www.pubfilm.biz' + img Next(name,url,image) Next_Page = re.compile('<a href="(.+?)">Next</a></span>').findall(HTML) for item in Next_Page: process.Menu('Next Page',item,111,ICON,FANART,'','') xbmcplugin.endOfDirectory(int(sys.argv[1]))
def XPornstars(url): HTML = process.OPEN_URL(url) match = re.compile(':"([^"]*)".+?;</script></a></div></div><p class="profile-name"><a href="([^"]*)">(.+?)</a></p><p class="profile-counts">\n(.+?)\n',re.DOTALL).findall(HTML) for img,url,name,count in match: process.Menu(name+'--'+count,'http://www.xvideos.com'+url+'#_tabVideos,videos-best',701,(img).replace('http:\/\/','http://'),FANART,'','') next_button = re.compile('href="([^"]*)">Next</a></li>').findall(HTML) for url in next_button: if 'Next' not in List: process.Menu('Next Page','http://www.xvideos.com'+url,705,'https://pbs.twimg.com/profile_images/378800000578199366/cf160c1c86c13778a834bbade0c30e38.jpeg',FANART,'','') List.append('Next')
def Radio(url): process.Menu('Please allow loading to finish before pressing back','','','','','','') process.Menu('To save potentially crashing kodi','','','','','','') html=process.OPEN_URL(url) match = re.compile('<tr>.+?<td><a href=".+?"><b>(.+?)</b>.+?<td><a href="(.+?)">',re.DOTALL).findall(html) for name,url in match: process.Play(name,url,502,'','','','') xbmcplugin.addSortMethod(addon_handle, xbmcplugin.SORT_METHOD_TITLE);
def IMDB_Top250(url): html = process.OPEN_URL(url) film = re.compile('<td class="posterColumn">.+?<img src="(.+?)".+?<td class="titleColumn">(.+?)<a.+?title=".+?" >(.+?)</a>.+?<span class="secondaryInfo">(.+?)</span>',re.DOTALL).findall(html) for img,no,title,year in film: no = no.replace('\n','').replace(' ','').replace(' ','') try: img = img.replace('45,67','174,256').replace('UY67','UY256').replace('UX45','UX175') process.Menu(title + ' ' + year,'Movies',16,img,'','','OLD') except: pass
def thumbzilla_pornstars(url): html = process.OPEN_URL(url) match = re.compile(' <a href="/pornstars/(.+?)".+?<img src="(.+?)"',re.DOTALL).findall(html) for url,img in match: name = url[0].upper()+url[1:].replace('-',' ') process.Menu(name,'http://thumbzilla.com/pornstars/'+url,746,img,FANART,'','') next = re.compile('<li class="page_next"><a href="(.+?)"').findall(html) for item in next: url = 'http://thumbzilla.com'+item process.Menu('Next Page',url,748,'http://static.spark.autodesk.com/2013/02/14__13_53_32/data2cd61048-351b-4b48-bd9c-946e7e076b53Medium2.jpg',FANART,'','')