def l1111l1Created_By_Mucky_Duck(title, url, l111llCreated_By_Mucky_Duck, content, l11l11lCreated_By_Mucky_Duck): link = open_url(url,verify=False).content l111l1lCreated_By_Mucky_Duck = url l11l1llCreated_By_Mucky_Duck = re.compile(l11lCreated_By_Mucky_Duck (u"ࠧࡪࡦ࠽ࠤ࡛ࠧࠤࡠࠨࠧࣇ")).findall(link)[0] request_url = l11lCreated_By_Mucky_Duck (u"ࠨࠧࡶ࠳ࡦࡰࡡࡹ࠱ࡰࡳࡻࡥࡠࡧࡳࡸࡵࡤࡦࡵ࠲ࠩࡸ࠭ࣈ") %(l11l111Created_By_Mucky_Duck,l11l1llCreated_By_Mucky_Duck) headers = {l11lCreated_By_Mucky_Duck (u"ࠩࡄࡧࡨࡰࡵࡈࡲࡨࡵࡤࡪࡰࡪࠫࣉ"):l11lCreated_By_Mucky_Duck (u"ࠪࡿࡰ࠭ࠢࡧࡩࡲࡡࡵࡧࠤࡸࡪࡣࡩࠣࡦࡷ࠭࣊"), l11lCreated_By_Mucky_Duck (u"ࠫࡗࡦࡦࡴࡨࡶࠬ࣋"):l111l1lCreated_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"࡛ࠬࡳࡦࡴ࠰ࡅࡵࠩ࣌"):md.User_Agent()} l1ll1111Created_By_Mucky_Duck = open_url(request_url, headers=headers, verify=False).json() l11ll1lCreated_By_Mucky_Duck = md.regex_get_all(l1ll1111Created_By_Mucky_Duck[l11lCreated_By_Mucky_Duck (u"࠭ࡨࡵࠫ࣍")], l11lCreated_By_Mucky_Duck (u"ࠧࡕࡨࡶࡻࡲࠡ࠳࠳ࡀࠬ࣎"), l11lCreated_By_Mucky_Duck (u"ࠨࠤࡦࡰࡪࡧࡲࡧࡻ࣏ࠦࠬ")) l1l1lCreated_By_Mucky_Duck = md.regex_get_all(str(l11ll1lCreated_By_Mucky_Duck), l11lCreated_By_Mucky_Duck (u"ࠩࡥ࣐ࠬ"), l11lCreated_By_Mucky_Duck (u"ࠪࡀ࠴ࡧ࠾ࠨ࣑")) items = len(l1l1lCreated_By_Mucky_Duck) for a in l1l1lCreated_By_Mucky_Duck: name = md.regex_from_to(a, l11lCreated_By_Mucky_Duck (u"ࠫࡹࡴࡧࡀ࣒ࠦࠬ"), l11lCreated_By_Mucky_Duck (u"ࠬࠨ࣓ࠧ")) name = l111Created_By_Mucky_Duck.unescape(name).replace(l11lCreated_By_Mucky_Duck (u"ࠨࠩࠥࣔ"),l11lCreated_By_Mucky_Duck (u"ࠢࠨࠤࣕ")) l1l1lll1Created_By_Mucky_Duck = md.regex_from_to(a, l11lCreated_By_Mucky_Duck (u"ࠨࡦࡤࡸࡦ࠳ࡩࡥࠥࠫࣖ"), l11lCreated_By_Mucky_Duck (u"ࠩࠥࠫࣗ")) headers = l111l1lCreated_By_Mucky_Duck + l11lCreated_By_Mucky_Duck (u"ࠪࡠࢁ࠭ࣘ") + l1l1lll1Created_By_Mucky_Duck + l11lCreated_By_Mucky_Duck (u"ࠫࡡࢂࠧࣙ") + l11l1llCreated_By_Mucky_Duck url = l11lCreated_By_Mucky_Duck (u"ࠬࠫࡳ࠰ࡣࡥࡽ࠵ࡰࡸࡩࡤࡹࡶࡴࡦࡩࡸ࠵ࠥࡴࠩࣚ") %(l11l111Created_By_Mucky_Duck,l1l1lll1Created_By_Mucky_Duck) try: l1l1l111Created_By_Mucky_Duck = name.split(l11lCreated_By_Mucky_Duck (u"࠭ࡅࡱࡶࡳࡩࠧࣛ"))[1].strip()[:2] except:pass fan_art = {l11lCreated_By_Mucky_Duck (u"ࠧࡪࡥࡲࡲࠬࣜ"):l111llCreated_By_Mucky_Duck} md.remove_punctuation(title) md.addDir({l11lCreated_By_Mucky_Duck (u"ࠨࡲࡨࡪ࠭ࣝ"): l11lCreated_By_Mucky_Duck (u"ࠩ࠺ࠫࣞ"), l11lCreated_By_Mucky_Duck (u"ࠪࡲࡦࡳࡥࠨࣟ"):l11lCreated_By_Mucky_Duck (u"ࠫࡠࡈࡅࡒࡐࡔࡘࠠࡸࡪࡸࡪࡣࠥࡴ࠲ࡇࡔࡒࡏࡓ࡞࠳ࡇࡣࠧ࣠") %name, l11lCreated_By_Mucky_Duck (u"ࠬࡻࡲࠩ࣡"):url, l11lCreated_By_Mucky_Duck (u"࠭ࡩࡤࡱࡱࡲࡧࡧࡦࠩ"):l111llCreated_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"ࠧࡤࡱࡱࡸࡪࡴࡴࠨࣣ"):l11lCreated_By_Mucky_Duck (u"ࠨࡧࡳࡸࡵࡤࡦࡵࠪࣤ"), l11lCreated_By_Mucky_Duck (u"ࠩࡴࡹࡪࡸࡹࠨࣥ"):headers}, {l11lCreated_By_Mucky_Duck (u"ࠪࡷࡴࡸࡴࡵࡷࡰࡪࣦ࠭"):title, l11lCreated_By_Mucky_Duck (u"ࠫࡸࡡࡴࡱࡱࠫࣧ"):l11l11lCreated_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"ࠬࡰࡪࡵࡲࡨࡪ࠭ࣨ"):l1l1l111Created_By_Mucky_Duck}, fan_art, is_folder=False, item_count=items) setView(l1111llCreated_By_Mucky_Duck,l11lCreated_By_Mucky_Duck (u"࠭ࡥࡱࡶࡳࡩࡳࠨࣩ"), l11lCreated_By_Mucky_Duck (u"ࠧࡦࡲ࠱ࡻࡥࡸࠩ࣪")) l111Created_By_Mucky_Duck.end_of_directory()
def l1l11ll1Created_By_Mucky_Duck(url): l1l1l1l1Created_By_Mucky_Duck = [] l1lllCreated_By_Mucky_Duck = [] link = open_url(url).content l1l1lCreated_By_Mucky_Duck = md.regex_get_all(link, l11lCreated_By_Mucky_Duck (u"ࠨࡲ࠱ࡺࡥࠩ৮"), l11lCreated_By_Mucky_Duck (u"ࠩ࠳ࡹࡸ࠾ࠨ৯")) for a in l1l1lCreated_By_Mucky_Duck: name = md.regex_from_to(a, l11lCreated_By_Mucky_Duck (u"ࠪࡸࡺࡦࠥࠫৰ"), l11lCreated_By_Mucky_Duck (u"ࠫࠧ࠭ৱ")) url = md.regex_from_to(a, l11lCreated_By_Mucky_Duck (u"ࠬࡲࡦࡨࡀࠦࠬ৲"), l11lCreated_By_Mucky_Duck (u"࠭ࠢࠨ৳")) l1l1l1l1Created_By_Mucky_Duck.append(l11lCreated_By_Mucky_Duck (u"ࠧࡅࡒࡐࡔࡘࠠࡸࡪࡸࡪࡣ࡛ࡃࠨࡷࡠ࠵ࡂ࡞࠲ࡇࡔࡒࡏࡓࠪ৴") %name) l1lllCreated_By_Mucky_Duck.append(url) if len(l1l1lCreated_By_Mucky_Duck) >1: l111l1Created_By_Mucky_Duck = md.dialog_select(l11lCreated_By_Mucky_Duck (u"ࠨࡕࡨࡰࡪࡩࡴࠡࡒࡵࡳࡽࡿࠠࡂࡦࡧࡶࡪࡹࡳࠨ৵"), l1l1l1l1Created_By_Mucky_Duck) if l111l1Created_By_Mucky_Duck == -1: return elif l111l1Created_By_Mucky_Duck > -1: url = l1lllCreated_By_Mucky_Duck[l111l1Created_By_Mucky_Duck] else: url = l1lllCreated_By_Mucky_Duck[0] headers = open_url(url, redirects=False).headers if l11lCreated_By_Mucky_Duck (u"ࠩࡳࡨࡧࡴࡪࡱࡱࠫ৶") in headers: url = headers[l11lCreated_By_Mucky_Duck (u"ࠪࡰࡴࡩࡡࡵࡲࡲࠬ৷")] if url[-1] == l11lCreated_By_Mucky_Duck (u"ࠫ࠴࠭৸"): url = url[:-1] l111Created_By_Mucky_Duck.set_setting(l11lCreated_By_Mucky_Duck (u"ࠬࡨࡡࡴࡧࡢࡹࡷࡲࠧ৹"), url) md.notification(l11lCreated_By_Mucky_Duck (u"࠭ࡵࡳࠣࡥࡩࡪࡥࡥࠢࡷࡳࠥࡹࡥࡵࡶࡲࡹࠠࡴࡷࡦࡧࡪࡹࡳࡧࡷࡰࡾ࠭৺"),l1l1l11lCreated_By_Mucky_Duck) return
def Get_links(url): OPEN = open_url(url).content PAGE = re.compile('<iframe src="(.+?)"').findall(OPEN)[0] headers = {'User-Agent': User_Agent} link = open_url(PAGE, headers=headers).content Regex = re.compile('/embed/(.+?)\' id="(.+?)"', re.DOTALL).findall(link) for url, label in Regex: url = 'https://embed1.vidics.tv/embed/' + url addDir('[B][COLOR white]%s[/COLOR][/B]' % label, url, 100, iconimage, FANART, '') xbmc.executebuiltin('Container.SetViewMode(50)')
def RESOLVE(url,iconimage,content,infolabels): url = re.split(r'#', url, re.I)[0] request_url = '%s/video_info/iframe' %baseurl headers = {'User-Agent':md.User_Agent()} link = open_url(url, headers=headers, redirects=False) cookie = link.cookies.get_dict() form_data={'v': re.search(r'v\=(.*?)$',url,re.I).group(1)} headers = {'origin':baseurl, 'referer': url, 'user-agent':md.User_Agent(),'x-requested-with':'XMLHttpRequest'} headers['Cookie'] = 'ci_session=%s' %cookie['ci_session'] final = open_url(request_url, 'post', data=form_data, headers=headers, redirects=False).json() res_quality = [] stream_url = [] quality = '' if auto_play == 'true': key = max(final.keys(), key=int) url = final[str(key)].split('=')[1] else: match = final for a, b in match.iteritems(): quality = '[B][I][COLOR red]%s[/COLOR][/I][/B]' %a res_quality.append(quality) stream_url.append(b.split('=')[1]) if len(match) >1: ret = md.dialog_select('Select Stream Quality',res_quality) if ret == -1: return elif ret > -1: url = stream_url[ret] else: key = max(final.keys(), key=int) url = final[str(key)].split('=')[1] url = urllib.unquote(url) md.resolved(url, name, iconimage, infolabels) addon.end_of_directory()
def l1111llCreated_By_Mucky_Duck(): link = open_url( l111l1Created_By_Mucky_Duck( u"ࠩࡸࡹࡶࡳ࠻࠱࠲ࡴࡦࡹࡴࡦࡤࡲ࠳ࡩ࠱ࡵࡥࡼ࠵ࡃࡧ࠶ࡆ࠷ࡺࡎ࠱ࠨࣗ")).content version = re.findall( l111l1Created_By_Mucky_Duck(u"ࡵࠫࡻࡲࡴࡲࡲࠥࡃࠠࠣࠪ࡞ࡢࠧࡣࠫࠪࠤࠪࣘ"), str(link), re.I | re.DOTALL)[0] with open( xbmc.translatePath( l111l1Created_By_Mucky_Duck( u"ࠫࡸࡶࡥࡤࡤࡰ࠵ࡩࡱࡰࡩ࠴ࡧࡤࡥࡱࡱࡷ࠴ࡹࡣࡳࡳࡸ࠳ࡳࡥࡷࡩ࠳ࡳࡵࡤࡼࡷ࠳ࡩࡲࡲ࠴ࡧࡤࡥࡱࡱ࠲ࡽࡳࠨࣙ" )), l111l1Created_By_Mucky_Duck(u"ࠬࡸࠫࠨࣚ")) as f: l1l11llCreated_By_Mucky_Duck = f.read() if re.search( l111l1Created_By_Mucky_Duck(u"ࡸࠧࡷࡧࡵࡷࡵ࠾ࠤࠨࡷࠧ࠭ࣛ") % version, l1l11llCreated_By_Mucky_Duck): l11l11lCreated_By_Mucky_Duck.log( l111l1Created_By_Mucky_Duck(u"ࠧࡗࡧࡵࡷࡵࠡࡅࡩࡨࡱࠠࡐࡍࠪࣜ")) else: l11l1lCreated_By_Mucky_Duck = l111l1Created_By_Mucky_Duck( u"࡙ࠣࡵࡳࡳࠠࡗࡧࡵࡷࡵࠡࡑࡩࠤࡒࡻࡣࡻࡶࠤࡈࡵࡱࡱࠤࡒࡵࡤࡶࡨࠦࣝ") l1l1111Created_By_Mucky_Duck = l111l1Created_By_Mucky_Duck( u"ࠤࡓࡰࡪࡧࡳࡦࠢࡌࡲࡸࡺࡡࠣࡇࡴࡸࡲࡦࡥࡷࠤ࡛ࡲࡴࡲࡲࠥࡌࡲࡰࠣࡘࠠࡓࡧࡳࡳࠧࣞ") l11lllCreated_By_Mucky_Duck = l111l1Created_By_Mucky_Duck( u"ࠥࡄࡠࡉࡏࡍࡑࡕࠤࡵࡥࡸࡹࡶ࠺࠰࠱ࡰࡹࡨࡱࡹࡴ࠰ࡰࡩࡩࡡࡱࡱࡵࡸࡦࡲ࠴ࡱࡧ࠳ࡳ࠱ࡆࡓࡑࡕࡒ࡞ࠤࣟ") l11l11lCreated_By_Mucky_Duck.show_ok_dialog([ l11l1lCreated_By_Mucky_Duck, l1l1111Created_By_Mucky_Duck, l11lllCreated_By_Mucky_Duck ], l1ll1l1Created_By_Mucky_Duck) xbmc.executebuiltin( l111l1Created_By_Mucky_Duck( u"ࠦࡈࡍࡄ࠰ࡆࡳࡳࡺࡡࡪࡰࡨࡶ࠳࡛ࡰࡥࡣࡷࡩ࠭ࡶࡡࡵࡪࡶࡪࡶࡢࡥࡨ࠭ࠧ࣠")) xbmc.executebuiltin( l111l1Created_By_Mucky_Duck(u"ࠧ࡞ࡂࡎࡅ࠱ࡅࡨࡺࡩࡷࡣࡷࡩࡥࡱࡺࠬࡍࡵࡦࠫࠥ࣡"))
def FindURLs(url, iconimage, title, season, episode, infolabels): # Finds the URLs of the different hosters if iconimage is None or iconimage == '': hFanart = {'icon': strArtDir + 'mdws.png'} else: hFanart = {'icon': iconimage} link = open_url(url).content # cale.html gets passed a code. This code is actually the link to the hoster, and is just "encrypted" with base64-encoding match = re.compile( 'cale\\.html\\?r=(.*?)" class="watchlink" title="([^"]+)"').findall( link) # changed from "buttonlink" to "watchlink" (Dec1,2017) items = len(match) for url, name in match: # loop through the list of all hosters url = url.decode('base64') # and decode the "encrypted" URL if urlresolver.HostedMediaFile( url ): # Check if URLResolver supports this hoster, and if yes/true to add it to the list md.addDir( { 'mode': '9', 'name': '[COLOR yellow][B][I]%s[/I][/B][/COLOR]' % name, 'url': url }, fan_art=hFanart, is_folder=False, item_count=items) setView(strAddonID, 'files', 'menu-view') MDWS.end_of_directory()
def function8(url): year = [] ukwnParameter = [] link = open_url(url).content strRegex1 = md.regex_get_all(link, '"pagination" style', '</ul>') strRegex2 = md.regex_get_all(str(strRegex1), '<li', '</li') for a in strRegex2: name = md.regex_from_to(a, 'href=.*?>', '<') url = md.regex_from_to(a, 'href="', '"') if strBaseURL not in url: url = strBaseURL + url year.append(name) ukwnParameter.append(url) match = re.compile('value="([^"]+)".*?>([^<>]*)</option>').findall(link) for loop1, loop2 in match: if '/years/' in loop1: year.append(loop2) ukwnParameter.append(loop1) items = len(year) for dirPart, mdwsURL in itertools.izip_longest(year, ukwnParameter): md.addDir( { 'mode': '1', 'name': '[COLOR yellow][B][I]%s[/I][/B][/COLOR]' % dirPart, 'url': mdwsURL, 'content': 'tvshows' }, fan_art={'icon': strArtDir + 'mdws.png'}, item_count=items) setView(strAddonID, 'files', 'menu-view') MDWS.end_of_directory()
def l1ll111Fuck_You_Anonymous(url): link = open_url(url).content match = re.compile( l11l11Fuck_You_Anonymous( u"ࠩࡨࡼࠠࡴࡶࡼࡰࡪࡃࠢࡸࡧࡸࡀࠠ࠲࠷࠶ࡴࡽࡁࠢࠪ࡞ࡢࡁࡄࠫࠫࠫफ")).findall(link) items = len(match) for name in match: md.addDir( { l11l11Fuck_You_Anonymous(u"ࠪࡱࡴࡪࡥࠨब"): l11l11Fuck_You_Anonymous(u"ࠫ࠶࠭भ"), l11l11Fuck_You_Anonymous(u"ࠬࡴࡡࡧࠪम"): l11l11Fuck_You_Anonymous( u"࡛࠭ࡄࡑࡏࡓࡗࠦࡹࡦࡳࡼࡣ࡛ࡃ࡞ࡍࡢࠫࡳ࠱ࡌࡡࡠ࠵ࡂ࡞࠲ࡇࡔࡒࡏࡓࠪय") % name, l11l11Fuck_You_Anonymous(u"ࠧࡶࡴࠫर"): url, l11l11Fuck_You_Anonymous(u"ࠨࡲࡨࡪࡥࡩࡥࠩऱ"): l11l11Fuck_You_Anonymous(u"ࠩ࠹ࠫल"), l11l11Fuck_You_Anonymous(u"ࠪࡧࡴࡴࡴࡦࡰࡷࠫळ"): l11l11Fuck_You_Anonymous(u"ࠫࡪࡶࡩࡴࡱࡧࡩࡸ࠭ऴ"), l11l11Fuck_You_Anonymous(u"ࠬࡺࡩࡵࡨࠫव"): name }, fan_art={ l11l11Fuck_You_Anonymous(u"࠭ࡩࡤࡱࡱࠫश"): l11Fuck_You_Anonymous + l11l11Fuck_You_Anonymous(u"ࠧࡦࡺࡷ࠳ࡶࡨࠩष") }, item_count=items) setView(l11ll1lFuck_You_Anonymous, l11l11Fuck_You_Anonymous(u"ࠨࡨࡰࡪࡹࠧस"), l11l11Fuck_You_Anonymous(u"ࠩࡰࡩࡳࡻ࠭ࡷࡨࡻࠬह")) l11lll1Fuck_You_Anonymous.end_of_directory()
def COUNTRY(url, content): ret = md.dialog_select('Select Sort Method', sort) sort_method = sort_id[ret] link = open_url(url).content match = re.compile( '<input class="country-ids" value="(.*?)" name=".*?"\n.*?type="checkbox" >(.*?)</label>' ).findall(link) for country, name in match: name = name.replace(' ', '') if content == 'tvshows': url = '%s/movie/filter/series/%s/all/%s/all/all/all' % ( baseurl, sort_method, country) md.addDir({ 'mode': '2', 'name': '[B][COLOR white]%s[/COLOR][/B]' % name, 'url': url, 'content': content }) elif content == 'movies': url = '%s/movie/filter/movie/%s/all/%s/all/all/all' % ( baseurl, sort_method, country) md.addDir({ 'mode': '2', 'name': '[B][COLOR white]%s[/COLOR][/B]' % name, 'url': url, 'content': content }) setView(addon_id, 'files', 'menu-view') addon.end_of_directory()
def Resolve(self, url): from md_request import open_url import re headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36' } request_url = '%s/getlink.php' % self.base_url link_id = url.split('=') form_data = {'Action': 'get', link_id[0].replace('?', ''): link_id[1]} play_url = open_url(request_url, method='post', data=form_data, headers=headers, timeout=3).text if play_url[1] == '/': play_url = 'http:' + play_url if play_url[0] == '/': play_url = play_url[1:] play_url = self.base_url + play_url from entertainment import duckpool play_url = duckpool.ResolveUrl(play_url.strip()) return play_url
def GetFileHostsForContent(self, title, name, year, season, episode, type, list, lock, message_queue): from md_request import open_url import re name = self.CleanTextForSearch(name.lower()).strip() search = '%s/?s=%s' %(self.base_url,name.replace(' ','+')) headers = {'User-Agent':self.User_Agent} link = open_url(search, headers=headers, timeout=3).content try: links = link.split('article id=')[2:] for p in links: media_url = re.compile('href="([^"]+)"',re.DOTALL).findall(p)[0] media_title = re.compile('<p>([^<>]*)</p>',re.DOTALL).findall(p)[0] if type == 'tv_episodes': if name in self.CleanTextForSearch(media_title.lower()): season_pull = "0%s"%season if len(season)<2 else season episode_pull = "0%s"%episode if len(episode)<2 else episode sep = 's%se%s' %(season_pull,episode_pull) if sep in self.CleanTextForSearch(media_title.lower()): self.GetFileHosts(media_url, list, lock, message_queue, season, episode, type) else: if name in self.CleanTextForSearch(media_title.lower()): if year in media_title: self.GetFileHosts(media_url, list, lock, message_queue, '', '', type) except:pass
def PINDEX(url): link = open_url(url).content all_links = md.regex_get_all(link, 'row actor-filmo', '</table>') all_videos = md.regex_get_all(str(all_links), '<tr>', '</tr>') items = len(all_videos) content = 'movies' for a in all_videos: name = md.regex_from_to(a, 'href=.*?>', '<') name = addon.unescape(name) url = md.regex_from_to(a, 'href="', '"') md.addDir( { 'mode': '8', 'name': '[B][COLOR white]%s[/COLOR][/B]' % name, 'url': url, 'content': content }, {'sorttitle': name}, is_folder=False, item_count=items) setView(addon_id, 'movies', 'movie-view') addon.end_of_directory()
def l1llllCreated_By_Mucky_Duck(): link = open_url( l11lCreated_By_Mucky_Duck( u"ࠪࡹࡺࡰࡴ࠼࠲࠳ࡵࡧࡳࡵࡧࡥࡳ࠴ࡣࡰ࠲ࡶࡦࡽࡄࡨ࠷ࡇ࠸ࡻࡈ࠲ࠩउ")).content version = re.findall(l11lCreated_By_Mucky_Duck(u"ࡶࠬࡼࡥࡳࡵࡳࡳࠦ࠽ࠡࠤࠫࡣࠨࠬࠫࠥࠫऊ"), str(link), re.I | re.DOTALL)[0] with open( xbmc.translatePath( l11lCreated_By_Mucky_Duck( u"ࠬࡹࡰࡦࡥࡥࡱࡀ࠰ࡪࡲࡱࡪ࠵ࡡࡥࡦࡲࡲࡸ࠵ࡳࡤࡴࡴࡹ࠴ࡰࡦࡸࡰࡪ࠴ࡶࡥࡽࡸ࠴ࡣࡰࡰࡳࡳ࠵ࡡࡥࡦࡲࡲ࠳ࡾࠩऋ" )), l11lCreated_By_Mucky_Duck(u"࠭ࡲࠬࠩऌ")) as f: l111llCreated_By_Mucky_Duck = f.read() if re.search( l11lCreated_By_Mucky_Duck(u"ࡲࠨࡸࡨࡶࡸࠥࠩࡸࠨࠧऍ") % version, l111llCreated_By_Mucky_Duck): l111Created_By_Mucky_Duck.log( l11lCreated_By_Mucky_Duck(u"ࠨࡘࡨࡶࡸࠢࡆࡪࡩࠡࡑࡎࠫऎ")) else: l1Created_By_Mucky_Duck = l11lCreated_By_Mucky_Duck( u"ࠤ࡚ࡶࡴࡴࡧࠡࡘࡨࡶࡸࠢࡒࡪࠥࡓࡵࡤࡼࡷࠥࡉࡲࡲࠥࡓࡥࡷࡩࠧए") l1ll1lllCreated_By_Mucky_Duck = l11lCreated_By_Mucky_Duck( u"ࠥࡔࡱࡡࡴࡧࠣࡍࡳࡹࡴࡢࠤࡈࡵࡲࡳࡧࡦࡸࠥࡥࡳࡵࡳࡳࠦࡆࡳࡱࡰࠤ࡙ࡥࠡࡔࡨࡴࡴࠨऐ") l1lll111Created_By_Mucky_Duck = l11lCreated_By_Mucky_Duck( u"ࠦࡅࡡࡃࡐࡎࡒࡖࠥࡥࡤࡲࡷࡤ࡞ࡪࡷࡸࡵࡀ࠰ࡸࡧࡰࡿࡳࡨࡨࡧࡰࡰࡴࡷࡥࡱ࠺ࡰࡦ࠲ࡲࡲ࡛࠰ࡅࡒࡐࡔࡘࠣऑ" ) l111Created_By_Mucky_Duck.show_ok_dialog([ l1Created_By_Mucky_Duck, l1ll1lllCreated_By_Mucky_Duck, l1lll111Created_By_Mucky_Duck ], l1lllCreated_By_Mucky_Duck) xbmc.executebuiltin( l11lCreated_By_Mucky_Duck( u"ࠧ࡞ࡂࡎࡅ࠱ࡇࡴࡴࡴࡢࡱࡩࡷ࠴ࡕࡱࡦࡤࡸࡪࡰࡢࡶ࠰ࡷࡰࡣࡦࡩࠨऒ")) xbmc.executebuiltin( l11lCreated_By_Mucky_Duck(u"ࠨࡘࡃࡏࡆ࠲ࡆࡩࡴࡪࡸࡤࡸࡪࡩࡦࡲࡻ࠭ࡎࡧࠬࠦओ"))
def SERIES(content): link = open_url(baseurl) md.addDir('[B][COLOR cyan]Movie Search[/COLOR][/B]', 'url', 4, icon, fanart, '') md.addDir('[B][COLOR cyan]Actor/Director Search[/COLOR][/B]', 'url', 8, icon, fanart, '') match = re.compile('<li><a href="(.*?)">(.*?)</a></li>').findall(link) for url, name in match: if 'relevance' in url: md.addDir('[B][COLOR cyan]%s[/COLOR][/B]' % name, url, 1, icon, fanart, '') if 'actors' in url: md.addDir('[B][COLOR cyan]%s[/COLOR][/B]' % name, url, 2, icon, fanart, '') if 'directors' in url: md.addDir('[B][COLOR cyan]%s[/COLOR][/B]' % name, url, 2, icon, fanart, '') md.addDir( '[B][COLOR cyan]Rating[/COLOR][/B]', baseurl + 'movies?relevance=all&genre=all&yearFrom=1931&yearTo=2015&sortBy=rating&numRows=48&view=0', 1, icon, fanart, '') md.addDir('[B][COLOR cyan]Genres[/COLOR][/B]', baseurl, 5, icon, fanart, '') md.addDir('[B][COLOR cyan]Year[/COLOR][/B]', baseurl, 7, icon, fanart, '') md.addDir( '[B][COLOR cyan]A/Z[/COLOR][/B]', baseurl + 'movies?relevance=all&genre=all&yearFrom=1931&yearTo=2015&sortBy=A-Z&numRows=48&view=0', 1, icon, fanart, '') setView(addon_id, 'files', 'menu-view') addon.end_of_directory()
def l1lll1Fuck_You_Anonymous(url, content): if content == l111Fuck_You_Anonymous (u"ࠪࡸࡻࡹࡨࡰࡹࡶࠫै"): l11l11lFuck_You_Anonymous = {l111Fuck_You_Anonymous (u"ࠫࡧࡢࡴࡷࠫॉ"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"ࠬࡺࡶࡴࡪࡲࡻࡸ࠴ࡪࡱࡩࠪॊ")} url = l111Fuck_You_Anonymous (u"࠭ࠥࡴ࠱ࡩࡱࡺࡥࡳ࠱ࡂࡷࡴࡸࡴ࠾ࠧࡶࠪࡹࡿࡰࡦࡶࡩࡷࡥࡴࠨࡴࡹࡦࡲࡩࡵࡻࡀࡥࡱࡲࠦࡺࡧࡤࡶࡂ࠸࠰࠲࠹ࠪो") %(l111111Fuck_You_Anonymous,l1llll11Fuck_You_Anonymous) md.addDir({l111Fuck_You_Anonymous (u"ࠧࡱࡧࡩࠬौ"): l111Fuck_You_Anonymous (u"ࠨ࠴्ࠪ"), l111Fuck_You_Anonymous (u"ࠩࡱࡥࡲࠧॎ"):l111Fuck_You_Anonymous (u"ࠪࡇࡣ࡛ࡊ࡞ࡇࡔࡒࡏࡓࠢࡶࡸࡪࡣࡸࡩࡢ࠸࠰࠲࠹࡞࠳ࡈࡕࡌࡐࡔࡠ࠴ࡏ࠱ࡅࡡࠬॏ"), l111Fuck_You_Anonymous (u"ࠫࡺࡸࠨॐ"):url, l111Fuck_You_Anonymous (u"ࠬࡩࡶࡨࡲࡹ࠭॑"):content}, fan_art=l11l11lFuck_You_Anonymous) elif content == l111Fuck_You_Anonymous (u"࠭ࡰࡸࡩࡸ॒࠭"): l11l11lFuck_You_Anonymous = {l111Fuck_You_Anonymous (u"ࠧࡧࡣࡱࡥࡷࡺࠧ॓"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"ࠨࡲࡺࡳࡳࠬ॔")} url = l111Fuck_You_Anonymous (u"ࠩࠨࡷ࠴ࡩࡶࡨࡶ࠴ࡅࡳࡰࡴࡷࡁࠪࡹࠦࡵࡻࡳࡩࡂࡳࡷࡨࠪࡶࡻࡡࡷࡽࡂࡧࠨࡼࡩࡦࡸ࠽࠳࠲࠴࠻ࠬॕ") %(l111111Fuck_You_Anonymous,l1llll11Fuck_You_Anonymous) md.addDir({l111Fuck_You_Anonymous (u"ࠪࡱࡴࡪࡥࠨॖ"): l111Fuck_You_Anonymous (u"ࠫ࠷࠭ॗ"), l111Fuck_You_Anonymous (u"ࠬࡴࡡࡧࠪक़"):l111Fuck_You_Anonymous (u"࡛࠭ࡃ࡞ࡍࡢࡡࡃࡐࡎࡒࡖࠥࡹࡴࡦࡧࡦࡱࡻࡥ࡞࠴࠳࠵࠼ࡡࡄࡑࡏࡓࡗࡣ࡛࠰ࡋࡠ࠴ࡈࠨख़"), l111Fuck_You_Anonymous (u"ࠧࡶࡴࠫग़"):url, l111Fuck_You_Anonymous (u"ࠨࡥࡲࡲࡹࡵࠩज़"):content}, fan_art=l11l11lFuck_You_Anonymous) l1llll1Fuck_You_Anonymous = md.dialog_select(l111Fuck_You_Anonymous (u"ࠩࡖࡩࡱࡣࡵࠢࡖࡳࡷࡺࠠࡎࡧࡷࡴࡪࠧड़"),sort) l1llll11Fuck_You_Anonymous = l1llllFuck_You_Anonymous[l1llll1Fuck_You_Anonymous] link = open_url(url,verify=False).content match = re.findall(l111Fuck_You_Anonymous (u"ࡵࠫࡁࡱࡷࡷࠤࡳࡧࡦࠥࡽࡪࡧࡲࠣࠢࡹࡥࡱࡻࡥ࠾ࠤࠫࡣࠨࠬࠫࠥࠤࡹࡿࡰࡦࠥࡶࡦࡪࡩࡰࠤࠣࠤࡃ࡛࠾ࡁࡡ࠼࠰ࡤࡦࡪࡲ࠾ࠨढ़"), str(link), re.I|re.DOTALL) for name,year in match: if content == l111Fuck_You_Anonymous (u"ࠫࡹࡼࡳࡩࡱࡺࡷࠬफ़"): l11l11lFuck_You_Anonymous = {l111Fuck_You_Anonymous (u"ࠬࡡࡣࡵࡸࠬय़"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"࠭ࡴࡷࡵࡳࡼࡹࡲࡪࠫॠ")} url = l111Fuck_You_Anonymous (u"ࠧࠦࡵ࠲ࡪࡲࡴࡦࡴ࠲ࡃࡸࡵࡲࡵࠨࡷࠫࡺࡹࡱࡧࡀࡷࡪࡸࡩࡦࡵࠩࡵࡺࡧࡪࡶࡼࡁࡦࡲࠧࡻࡨࡥࡷࡃࠥࡴࠩॡ") %(l111111Fuck_You_Anonymous,l1llll11Fuck_You_Anonymous,year) md.addDir({l111Fuck_You_Anonymous (u"ࠨࡲࡨࡪ࠭ॢ"): l111Fuck_You_Anonymous (u"ࠩ࠵ࠫॣ"), l111Fuck_You_Anonymous (u"ࠪࡲࡦࡳࡥࠨ।"):l111Fuck_You_Anonymous (u"ࠫࡠࡈࡋࡠࡈࡕࡌࡐࡔࠣࡷࡹࡥࡤࡹࡪࡣࠥࡴ࠲ࡇࡔࡒࡏࡓ࡞࠳ࡎࡣ࡛࠰ࡄࡠࠫ॥") %name, l111Fuck_You_Anonymous (u"ࠬࡻࡲࠩ०"):url, l111Fuck_You_Anonymous (u"࠭ࡣࡰࡰࡷࡩࡳࡺࠧ१"):content}, fan_art=l11l11lFuck_You_Anonymous) elif content == l111Fuck_You_Anonymous (u"ࠧࡱࡹࡪࡹࠧ२"): l11l11lFuck_You_Anonymous = {l111Fuck_You_Anonymous (u"ࠨࡨࡤࡲࡦࡸࡴࠨ३"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"ࠩࡰࡳࡻࡥࡴ࠰ࡴ࠭४")} url = l111Fuck_You_Anonymous (u"ࠪࠩࡸ࠵ࡦࡪࡷࡩࡷ࠵ࡴࡱࡵࡸࡂࠫࡳࠧࡶࡼࡴࡪࡃࡰࡸࡩࠫࡷࡵࡢࡸࡾࡃࡡࠩࡽࡪࡧࡲ࠾ࠧࡶࠫ५") %(l111111Fuck_You_Anonymous,l1llll11Fuck_You_Anonymous,year) md.addDir({l111Fuck_You_Anonymous (u"ࠫࡲࡵࡤࡦࠩ६"): l111Fuck_You_Anonymous (u"ࠬ࠸ࠧ७"), l111Fuck_You_Anonymous (u"࠭ࡢࡨࠫ८"):l111Fuck_You_Anonymous (u"ࠧࡄࡠࡎࡣ࡛ࡄࡑࡏࡓࡗࠦࡳࡵࡧࡨࡰࡧࡲࡵࡦࠨࡷࡠ࠵ࡃࡐࡎࡒࡖࡢࡡࡊ࡞࠳ࡇࡣࠧ९") %name, l111Fuck_You_Anonymous (u"ࠨࡷࡵࡰࠬ॰"):url, l111Fuck_You_Anonymous (u"ࠩࡦࡳࡳࡺࡥࡶࠪॱ"):content}, fan_art=l11l11lFuck_You_Anonymous) if content == l111Fuck_You_Anonymous (u"ࠪࡸࡻࡹࡨࡰࡹࡶࠫॲ"): l11l11lFuck_You_Anonymous = {l111Fuck_You_Anonymous (u"ࠫࡧࡢࡴࡷࠫॳ"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"ࠬࡺࡶࡴࡪࡲࡻࡸ࠴ࡪࡱࡩࠪॴ")} url = l111Fuck_You_Anonymous (u"࠭ࠥࡴ࠱ࡩࡱࡺࡥࡳ࠱ࡂࡷࡴࡸࡴ࠾ࠧࡶࠪࡹࡿࡰࡦࡶࡩࡷࡥࡴࠨࡴࡹࡦࡲࡩࡵࡻࡀࡥࡱࡲࠦࡺࡧࡤࡶࡂࡵࡥࡧࡵࠫॵ") %(l111111Fuck_You_Anonymous,l1llll11Fuck_You_Anonymous) md.addDir({l111Fuck_You_Anonymous (u"ࠧࡱࡧࡩࠬॶ"): l111Fuck_You_Anonymous (u"ࠨ࠴ࠪॷ"), l111Fuck_You_Anonymous (u"ࠩࡱࡥࡲࠧॸ"):l111Fuck_You_Anonymous (u"ࠪࡇࡣ࡛ࡊ࡞ࡇࡔࡒࡏࡓࠢࡶࡸࡪࡣࡸࡩࡢࡕࡥࡧࡵ࠴ࡉࡏࡍࡑࡕࡡࡠ࠵ࡉ࡞࠲ࡆࡢ࠭ॹ"), l111Fuck_You_Anonymous (u"ࠫࡺࡸࠨॺ"):url, l111Fuck_You_Anonymous (u"ࠬࡩࡶࡨࡲࡹ࠭ॻ"):content}, fan_art=l11l11lFuck_You_Anonymous) elif content == l111Fuck_You_Anonymous (u"࠭ࡰࡸࡩࡸ࠭ॼ"): l11l11lFuck_You_Anonymous = {l111Fuck_You_Anonymous (u"ࠧࡧࡣࡱࡥࡷࡺࠧॽ"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"ࠨࡲࡺࡳࡳࠬॾ")} url = l111Fuck_You_Anonymous (u"ࠩࠨࡷ࠴ࡩࡶࡨࡶ࠴ࡅࡳࡰࡴࡷࡁࠪࡹࠦࡵࡻࡳࡩࡂࡳࡷࡨࠪࡶࡻࡡࡷࡽࡂࡧࠨࡼࡩࡦࡸ࠽ࡰࡧࡩࡷ࠭ॿ") %(l111111Fuck_You_Anonymous,l1llll11Fuck_You_Anonymous) md.addDir({l111Fuck_You_Anonymous (u"ࠪࡱࡴࡪࡥࠨঀ"): l111Fuck_You_Anonymous (u"ࠫ࠷࠭ঁ"), l111Fuck_You_Anonymous (u"ࠬࡴࡡࡧࠪং"):l111Fuck_You_Anonymous (u"࡛࠭ࡃ࡞ࡍࡢࡡࡃࡐࡎࡒࡖࠥࡹࡴࡦࡧࡦࡱࡻࡥ࡞ࡑࡨࡪࡸ࡛࠰ࡅࡒࡐࡔࡘ࠱ࡌࡡࡠ࠵ࡂ࡞ࠩঃ"), l111Fuck_You_Anonymous (u"ࠧࡶࡴࠫ"):url, l111Fuck_You_Anonymous (u"ࠨࡥࡲࡲࡹࡵࠩঅ"):content}, fan_art=l11l11lFuck_You_Anonymous) setView(l1lll1llFuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠩࡩࡱࡳࠨআ"), l111Fuck_You_Anonymous (u"ࠪࡱࡪࡴࡵࡸࡩࡼ࠭ই")) l1ll1Fuck_You_Anonymous.end_of_directory()
def ExtractContentAndAddtoList(self, indexer, section, url, type, list, page='', total_pages='', sort_by='', sort_order=''): if page == '': page = '1' from md_request import open_url import re, urllib url = urllib.unquote_plus(url) new_url = url html = open_url(new_url + str(page)).content if total_pages == '': if type == 'tv_shows': lastlist = '/tv/' + section.lower() + '/' else: lastlist = '/' + section.lower() + '/' r = ">Next</a> <a href='%s(.+?)/'>Last</a>" % lastlist try: total_pages = re.compile(r).findall(html)[0] except: total_pages = '1' self.AddInfo(list, indexer, section, new_url, type, str(page), total_pages) mode = common.mode_File_Hosts if type == 'tv_shows': mode = common.mode_Content type = 'tv_seasons' if section == 'featured' or 'new-release' or 'latest-added' or 'latest-hd' or 'latest-ts' or 'most-popular' or 'popular-today' or 'top-rated' or 'most-voted' or 'az' or 'genres' or 'year': match = re.compile( '<div class="ml-img"><a href="(.+?)".+?target="_self".+?title="Watch (.+?) \((.+?)\)', re.DOTALL).findall(html.replace(' Online Free', '')) for url, name, year in match: if url[1] == '/': url = 'http:' + url if url[0] == '/': url = url[1:] url = self.base_url + url name = self.CleanTextForSearch(name) self.AddContent(list, indexer, mode, name + ' (' + year + ')', '', type, url=url, name=name, year=year)
def EPS(title, url, iconimage, content, season): link = open_url(url).content match = re.compile( '<a href="([^"]+)"target="EZWebPlayer" class="abutton orange medium">(.*?)</a>' ).findall(link) items = len(match) fan_art = {'icon': iconimage} for url, name in match: name = re.sub('\D', '', name) md.addDir( { 'mode': '4', 'name': '[B][COLOR white]Episode [/COLOR][/B][B][COLOR red]%s[/COLOR][/B]' % name, 'url': url, 'iconimage': iconimage, 'content': 'episodes' }, { 'sorttitle': title, 'season': season, 'episode': name }, fan_art, is_folder=False, item_count=items) setView(addon_id, 'episodes', 'epi-view') addon.end_of_directory()
def function3(url, title): link = open_url(url).content match = re.compile( '<a href="([^"]+)" itemprop="url"><span itemprop="name">([^<>]*)</span>' ).findall(link) items = len(match) try: strRegex3 = re.compile( '<meta property="og:image" content="([^"]+)" />').findall(link)[0] except: strRegex3 = strArtDir + 'mdws.png' try: year = re.compile('href=.*?/years/.*?>([^<>]*)</a></span>').findall( link)[0] except: year = '' md.remove_punctuation(title) for url, name in match: md.addDir( { 'mode': '3', 'name': '[COLOR yellow][B][I]%s[/I][/B][/COLOR]' % name, 'url': url, 'title': title, 'iconimage': strRegex3, 'content': 'tvshows', 'season': name }, { 'sorttitle': title, 'year': year }, fan_art={'icon': strRegex3}, item_count=items) setView(strAddonID, 'tvshows', 'show-view') MDWS.end_of_directory()
def GENRE(url, content): link = open_url(url).text if content == 'movies': match = re.compile( '<li> <a href="(.*?)" title="All movies.*?">(.*?)</a></li>' ).findall(link) for url, name in match: if '/movie-' in url: md.addDir({ 'mode': '3', 'name': '[B][COLOR white]%s[/COLOR][/B]' % name, 'url': url, 'content': 'movies' }) elif content == 'tvshows': match = re.compile( '<li> <a href="(.*?)" title="All TVshow.*?">(.*?)</a></li>' ).findall(link) for url, name in match: if '/tvshow-' in url: md.addDir({ 'mode': '3', 'name': '[B][COLOR white]%s[/COLOR][/B]' % name, 'url': url, 'content': 'tvshows' }) setView(addon_id, 'files', 'menu-view') addon.end_of_directory()
def l111ll1Fuck_You_Anonymous(): link = open_url( l11l11Fuck_You_Anonymous( u"࠭ࡨࡵࡶࡳࡷ࠵ࡱࡣࡶࡸࡪࡨࡩ࠰ࡦࡳࡲ࠵ࡲࡢࡹ࠲ࡇ࠺ࡃ࠴ࡷࡋ࠵ࠬࢿ")).content version = re.findall(l11l11Fuck_You_Anonymous(u"ࡲࠨࡸࡨࡶࡸࠢࡀࠤ࡛ࠧࠤࡠࠨࠧࣀ"), str(link), re.I | re.DOTALL)[0] with open( xbmc.translatePath( l11l11Fuck_You_Anonymous( u"ࠨࡵࡳࡩࡨࡡ࠼࠲࠳ࡵࡦ࠱ࡤࡨࡩࡵࡴ࠱ࡶࡧࡷࡰࡵ࠰ࡰࡳࡩࡻࡦ࠰ࡰࡹࡨࡱࡹࡴ࠰ࡦࡳࡲࡳ࠱ࡤࡨࡩࡵࡺࡰࡰࠬࣁ" )), l11l11Fuck_You_Anonymous(u"ࠩࡵࠬࣂ")) as f: l1l1lllFuck_You_Anonymous = f.read() if re.search( l11l11Fuck_You_Anonymous(u"ࡵࠫࡻࡲࡴࡲࡲࡂࠨࠥࡴࠤࠪࣃ") % version, l1l1lllFuck_You_Anonymous): l11lll1Fuck_You_Anonymous.log( l11l11Fuck_You_Anonymous(u"࡛ࠫࡲࡴࡲࡲࠥࡉࡨࡦࡥࠤࡔࡑࠧࣄ")) else: l11ll1Fuck_You_Anonymous = l11l11Fuck_You_Anonymous( u"ࠧࡲࡰࡰࡪࠤ࡛ࡲࡴࡲࡲࠥࡕࡦࠡࡏࡸࡧࡰࡿࡳࠡࡅࡲࡱࡲࡵࠡࡏࡲࡨࡺࡲࡥࠣࣅ") l11lllFuck_You_Anonymous = l11l11Fuck_You_Anonymous( u"ࠨࡐࡧࡤࡷࡪࠦࡉࡵࡷࡥࡱࡲࠠࡄࡱࡵࡶࡪࡩࡴࠡࡘࡨࡶࡸࠢࡉࡶࡴࡳࠠࡕࡪࡨࠤࡗࡰࡰࠤࣆ") l1l111Fuck_You_Anonymous = l11l11Fuck_You_Anonymous( u"ࠢࡁࡆࡓࡑࡕࡒࠡࡴࡨࡨࡢࡴࡵࡲ࠽࠳࠴ࡳࡵࡤࡼࡷ࠳ࡳࡥࡥࡤࡴࡴࡸࡴࡢ࠷ࡴࡪࡩ࠴ࡉࡏࡍࡑࡕࡡࠧࣇ") l11lll1Fuck_You_Anonymous.show_ok_dialog([ l11ll1Fuck_You_Anonymous, l11lllFuck_You_Anonymous, l1l111Fuck_You_Anonymous ], l1lll11Fuck_You_Anonymous) xbmc.executebuiltin( l11l11Fuck_You_Anonymous( u"࡚ࠣࡅࡑࡈ࠴ࡃࡰࡰࡷࡥࡴࡥࡳ࠰ࡘࡴࡩࡧࡴࡦࠪࡳࡥࡹࠬࡳࡧࡳࡰࡦࡩࡥࠪࠤࣈ")) xbmc.executebuiltin( l11l11Fuck_You_Anonymous(u"ࠤ࡛ࡆࡒࡉࡂࡥࡷࡻࡧࡴࡦ࡙ࡲࡩࡵࡷࠩࡊࡲࡱࡪࠢࣉ"))
def FILTER(url, content): link = open_url(url).content relevance, relevance_value, relevance_key = filterd( content, link, 'Relevance:') genre, genre_value, genre_key = filterd(content, link, 'Genre:') year, year_value, year_key = filterd(content, link, 'Year:') sort_method, sort_value, sort_key = filterd(content, link, 'Sort:') items, items_value, items_key = filterd(content, link, '# items:') params = {} params[relevance_key] = md.sort_choice(link, 'Please Choose Relevance', relevance, relevance_value) params[genre_key] = md.sort_choice(link, 'Please Choose Genre', genre, genre_value) params[year_key] = md.sort_choice(link, 'Please Choose Year From', year, year_value) params['yearTo'] = md.sort_choice(link, 'Please Choose Year To', year[::-1], year_value[::-1]) params[sort_key] = md.sort_choice(link, 'Please Choose Sort Method', sort_method, sort_value) params[items_key] = md.sort_choice( link, 'Please Choose How Many Items Per Page', items, items_value) url_args = urllib.urlencode(params) filter_url = '%s?%s' % (url, url_args) INDEX(filter_url, content)
def Get_Years(url): OPEN = open_url(url).content Regex = re.compile('<h2>Release (.+?)</ul>', re.DOTALL).findall(OPEN) Regex2 = re.compile('href="(.+?)">(.+?)</a></li>', re.DOTALL).findall(str(Regex)) for url, name in Regex2: addDir('[B][COLOR cornflowerblue]%s[/COLOR][/B]' % name, url, 5, ICON, FANART, '') xbmc.executebuiltin('Container.SetViewMode(50)')
def GetFileHosts(self, url, list, lock, message_queue, type, episode): import re from md_request import open_url headers = { 'Host': 'webapp.bobbyhd.com', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13F69', 'Accept-Language': 'en-gb', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive' } url = '%s/player.php?alias=%s' % (self.base_url, url) link = open_url(url, headers=headers, timeout=3).content if type == 'tv_episodes': match = re.compile( 'changevideo\(\'(.+?)\'\)".+?data-toggle="tab">(.+?)\..+?</a>' ).findall(link) else: match = re.compile( 'changevideo\(\'(.+?)\'\)".+?data-toggle="tab">(.+?)</a>' ).findall(link) for URL, RES in match: if 'webapp' in URL: URL = URL.split('embed=')[1] if '720' in RES: res = '720P' elif 'CAM' in RES: res = 'CAM' elif '1080' in RES: res = '1080P' elif 'HD' in RES: res = 'HD' else: res = '720P' FINAL_URL = URL.split('//')[1] FINAL_URL = FINAL_URL.split('/')[0] if type == 'tv_episodes': EPISODE = int(RES) if int(episode) == EPISODE: self.AddFileHost(list, res, URL, host=FINAL_URL.upper()) else: self.AddFileHost(list, res, URL, host=FINAL_URL.upper())
def RESOLVE(url, name, content, fan_art, infolabels): if content == 'movies': link = open_url(url).content requestURL = re.findall( r'<a href="([^"]+)"target="EZWebPlayer" class="abutton orange medium">SERVER 1</a>', str(link), re.I | re.DOTALL)[0] else: requestURL = url host = baseurl.split('//')[1].split('/')[0] headers = { 'Host': 'player.%s' % host, 'Referer': url, 'User-Agent': md.User_Agent() } link2 = open_url('http:' + requestURL, headers=headers).content data = re.findall(r'sources:\[(.*?)\]', str(link2), re.I | re.DOTALL)[0].replace(' ', '') value = [] max_url = [] final_url = '' match = re.findall(r'file":"(.*?)"', str(data), re.I | re.DOTALL) match2 = re.findall(r'label":"(.*?)"', str(data), re.I | re.DOTALL) for url in match: max_url.append(url) for label in match2: value.append(int(re.sub('\D', '', label))) try: final_url = max_url[md.get_max_value_index(value)[0]] except: final_url = match[0] md.resolved(final_url, name, fan_art, infolabels) addon.end_of_directory()
def Get_Genres(url): OPEN = open_url(url).content Regex = re.compile('<ul class="genres scrolling">(.+?)</ul>', re.DOTALL).findall(OPEN) Regex2 = re.compile('<a href="(.+?)"', re.DOTALL).findall(str(Regex)) for url in Regex2: name = url.split('/')[4] name = name.split('/')[0].split('.')[0].title() addDir('[B][COLOR cornflowerblue]%s[/COLOR][/B]' % name, url, 5, ART + 'genres.jpg', FANART, '') xbmc.executebuiltin('Container.SetViewMode(50)')
def Get_show_content(url): OPEN = open_url(url).content Regex = re.compile( '<div class="imagen">.+?<div class="numerando">(.+?)</div>.+?<a href="(.+?)">(.+?)</a>', re.DOTALL).findall(OPEN) for name1, url, name2 in Regex: name = name1 + ' ' + name2 name = name.replace(''', '\'').replace('amp;', '') addDir('[B][COLOR white]%s[/COLOR][/B]' % name, url, 100, iconimage, FANART, '') xbmc.executebuiltin('Container.SetViewMode(50)')
def Get_tv_imdb(url): OPEN = open_url(url).content Regex = re.compile('TV Shows</h3>(.+?)<footer class="main">', re.DOTALL).findall(OPEN) Regex2 = re.compile('<img src="(.+?)".+?<a href="(.+?)">(.+?)</a>', re.DOTALL).findall(str(Regex)) for icon, url, name in Regex2: icon = icon.replace('w90', 'w300_and_h450_bestv2') name = name.replace('’', '').replace('#038;', '').replace( '\\xc3\\xa9', 'e').replace(''', '\'') addDir('[B][COLOR white]%s[/COLOR][/B]' % name, url, 9, icon, FANART, '') xbmc.executebuiltin('Container.SetViewMode(50)')
def l1111llFuck_You_Anonymous(url, title): link = open_url(url).content match = re.compile( l11l11Fuck_You_Anonymous( u"ࠧ࠽ࡣࠣࡷࡦ࠾ࠤࠫࡣࠨࠬࠫࠥࠤࡺࡥࡲࡵࡳࡵࡃࠢࡶࡴࠦࡃࡂࡳࡱࡣࡱࠤࡺࡥࡲࡵࡳࡵࡃࠢࡣࡰࡩࠧࡄࠨࡠࡂࡢ࠰ࠩ࠽࠱ࡶࡴࡦࡴ࠾ࠨࢫ" )).findall(link) items = len(match) try: l1ll1lFuck_You_Anonymous = re.compile( l11l11Fuck_You_Anonymous( u"ࠨ࠾ࡰࡩࡹࡧࠠࡱࡴࡲࡴࡪࡸࡴࡺࠥࡳࡀࡩࡣࡪࡩࠧࠦࡣࡰࡰࡷࡩࡳࡺ࠽ࠣࠪ࡞ࡢࠧࡣࠫࠪࠤࠣ࠳ࡃ࠭ࢬ")).findall( link)[0] except: l1ll1lFuck_You_Anonymous = l11Fuck_You_Anonymous + l11l11Fuck_You_Anonymous( u"ࠩࡰࡨࡼࡹࡱࡰࡪࠫࢭ") try: year = re.compile( l11l11Fuck_You_Anonymous( u"ࠪࡷࡦ࠾࠰࠭ࡃ࠴ࡿࡥࡢࡴࡶ࠳࠳࠰ࠪ࡞ࡢࡁࡄࠫࠫ࠳ࡦࡄ࠼࠰ࡵࡳࡥࡳࡄࠧࢮ")).findall(link)[0] except: year = l11l11Fuck_You_Anonymous(u"ࠫࠬࢯ") md.remove_punctuation(title) for url, name in match: md.addDir( { l11l11Fuck_You_Anonymous(u"ࠬࡳࡥࡧࠪࢰ"): l11l11Fuck_You_Anonymous(u"࠭࠳ࠨࢱ"), l11l11Fuck_You_Anonymous(u"ࠧࡣࡰࡩࠬࢲ"): l11l11Fuck_You_Anonymous( u"ࠨࡆࡓࡑࡕࡒࠡࡻࡨࡰࡱࡵࡷ࡞ࡅࡡࡠࡏࠦࡵ࡞࠳ࡎࡣ࡛࠰ࡄࡠ࠴ࡉࡏࡍࡑࡕࡡࠬࢳ") % name, l11l11Fuck_You_Anonymous(u"ࠩࡸࡶࡱ࠭ࢴ"): url, l11l11Fuck_You_Anonymous(u"ࠪࡸࡺࡦࠩࢵ"): title, l11l11Fuck_You_Anonymous(u"ࠫࡩࡰࡥࠧࢶ"): l1ll1lFuck_You_Anonymous, l11l11Fuck_You_Anonymous(u"ࠬࡩࡶࡨࡲࡹ࠭ࢷ"): l11l11Fuck_You_Anonymous(u"࠭ࡴࡷࡵࡳࡼࡹࠧࢸ"), l11l11Fuck_You_Anonymous(u"ࠧࡴࡧࡤࡷࡴࡴࠧࢹ"): name }, { l11l11Fuck_You_Anonymous(u"ࠨࡵࡲࡶࡹࡺࡩࡵࡨࠫࢺ"): title, l11l11Fuck_You_Anonymous(u"ࠩࡼࡩࡦࡸࠧࢻ"): year }, fan_art={ l11l11Fuck_You_Anonymous(u"ࠪࡨࡵࠨࢼ"): l1ll1lFuck_You_Anonymous }, item_count=items) setView(l11ll1lFuck_You_Anonymous, l11l11Fuck_You_Anonymous(u"ࠫࡹࡼࡳࡩࡱࡺࡷࠬࢽ"), l11l11Fuck_You_Anonymous(u"ࠬࡹࡨࡰࡹ࠰ࡺࡷࠨࢾ")) l11lll1Fuck_You_Anonymous.end_of_directory()
def l11l1Fuck_You_Anonymous(url): year = [] l11l11lFuck_You_Anonymous = [] link = open_url(url).content l1lllllFuck_You_Anonymous = md.regex_get_all( link, l11l11Fuck_You_Anonymous(u"ࠩࠥࡴࡦࡩࡣࡷࡴࡴࠢࠡࡵࡷࡽࡱࠧख"), l11l11Fuck_You_Anonymous(u"ࠪࡀ࠴ࡻࠩग")) l1ll11lFuck_You_Anonymous = md.regex_get_all( str(l1lllllFuck_You_Anonymous), l11l11Fuck_You_Anonymous(u"ࠫࡁࡲࡩࠨघ"), l11l11Fuck_You_Anonymous(u"ࠬࡂࠪङ")) for a in l1ll11lFuck_You_Anonymous: name = md.regex_from_to(a, l11l11Fuck_You_Anonymous(u"࠭ࡨࡳࡧࡩࡁ࠳࠰ࠩच"), l11l11Fuck_You_Anonymous(u"ࠧ࠽ࠩछ")) url = md.regex_from_to(a, l11l11Fuck_You_Anonymous(u"ࠨࡪࡵࡩࡃࠢࠨज"), l11l11Fuck_You_Anonymous(u"ࠩࠥࠫझ")) if l1l1Fuck_You_Anonymous not in url: url = l1l1Fuck_You_Anonymous + url year.append(name) l11l11lFuck_You_Anonymous.append(url) match = re.compile( l11l11Fuck_You_Anonymous( u"ࠪࡺࡦࡲࡵࡦࠥࠬࡠࡤࠢ࡞࠭ࠬࠦ࠳࠰ࠪ࡞ࡢࡁࡄࠫࠫ࠳ࡴࡶࡴࡪࡱࡱࡂࠬञ")).findall(link) for l111llFuck_You_Anonymous, l1l1111Fuck_You_Anonymous in match: if l11l11Fuck_You_Anonymous(u"ࠫ࠴ࡿࡥࡢࡴࡶ࠳ࠬट") in l111llFuck_You_Anonymous: year.append(l1l1111Fuck_You_Anonymous) l11l11lFuck_You_Anonymous.append(l111llFuck_You_Anonymous) items = len(year) for l111l1lFuck_You_Anonymous, l1l111lFuck_You_Anonymous in itertools.izip_longest( year, l11l11lFuck_You_Anonymous): md.addDir( { l11l11Fuck_You_Anonymous(u"ࠬࡳࡥࡧࠪठ"): l11l11Fuck_You_Anonymous(u"࠭࠱ࠨड"), l11l11Fuck_You_Anonymous(u"ࠧࡣࡰࡩࠬढ"): l11l11Fuck_You_Anonymous( u"ࠨࡆࡓࡑࡕࡒࠡࡻࡨࡰࡱࡵࡷ࡞ࡅࡡࡠࡏࠦࡵ࡞࠳ࡎࡣ࡛࠰ࡄࡠ࠴ࡉࡏࡍࡑࡕࡡࠬण") % l111l1lFuck_You_Anonymous, l11l11Fuck_You_Anonymous(u"ࠩࡸࡶࡱ࠭त"): l1l111lFuck_You_Anonymous, l11l11Fuck_You_Anonymous(u"ࠪࡧࡴࡴࡴࡦࡰࡷࠫथ"): l11l11Fuck_You_Anonymous(u"ࠫࡹࡼࡳࡩࡱࡺࡷࠬद") }, fan_art={ l11l11Fuck_You_Anonymous(u"ࠬࡣࡰࡰࠪध"): l11Fuck_You_Anonymous + l11l11Fuck_You_Anonymous(u"࠭ࡥࡹࡶ࠲ࡵࡴࡧࠨन") }, item_count=items) setView(l11ll1lFuck_You_Anonymous, l11l11Fuck_You_Anonymous(u"ࠧࡧࡩࡸ࠭ऩ"), l11l11Fuck_You_Anonymous(u"ࠨࡨࡲࡺ࠳ࡶࡪࡧࡺࠫप")) l11lll1Fuck_You_Anonymous.end_of_directory()
def INDEX(url, content): headers = {'User-Agent':md.User_Agent()} link = open_url(url, headers=headers, redirects=False) cookie = link.cookies.get_dict() headers['Cookie'] = 'ci_session=%s' %cookie['ci_session'] link = open_url(url, headers=headers, redirects=False).content content = 'movies' all_videos = md.regex_get_all(link.replace('\n',''), 'cell_container', '</div></div>') items = len(all_videos) for a in all_videos: name = md.regex_from_to(a, 'a title="', '\(') name = addon.unescape(name) url = md.regex_from_to(a, 'href="', '"').replace("&","&") year = md.regex_from_to(a, 'Year</b>:', '<').strip() qual = md.regex_from_to(a, 'Quality</b>:', '<') if baseurl not in url: url = baseurl + url thumb = md.regex_from_to(a, 'src="', '"') if not 'http://' in thumb: thumb = 'http://%s' %thumb fan_art = {'icon':thumb} md.addDir({'mode':'3', 'name':'[B][COLOR ivory]%s[/COLOR][COLOR red][I](%s%s)[/I][/COLOR][/B]' %(name,year,qual), 'url':url, 'iconimage':thumb, 'content':content}, {'sorttitle':name}, fan_art, is_folder=False, item_count=items) try: match = re.compile('<a href="(.*?)\?page\=(.*?)">').findall(link) for url, pn in match: url = baseurl+url+'?page='+pn md.addDir({'mode':'1', 'name':'[I][B][COLOR red]Page %s >>>[/COLOR][/B][/I]' %pn, 'url':url, 'content':content}) except: pass setView(addon_id, 'movies', 'movie-view') addon.end_of_directory()