コード例 #1
0
ファイル: default.py プロジェクト: ItsMYZTIK/tdbaddon
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()
コード例 #2
0
ファイル: default.py プロジェクト: ItsMYZTIK/tdbaddon
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
コード例 #3
0
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)')
コード例 #4
0
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()
コード例 #5
0
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"ࠧ࡞ࡂࡎࡅ࠱ࡅࡨࡺࡩࡷࡣࡷࡩ࡜࡯࡮ࡥࡱࡺࠬࡍࡵ࡭ࡦࠫࠥ࣡"))
コード例 #6
0
ファイル: default.py プロジェクト: chileanchili/cuddly-potato
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()
コード例 #7
0
ファイル: default.py プロジェクト: chileanchili/cuddly-potato
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()
コード例 #8
0
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()
コード例 #9
0
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()
コード例 #10
0
    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
コード例 #11
0
    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
            
コード例 #12
0
ファイル: default.py プロジェクト: krzysztofuu/Bonitillonew
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()
コード例 #13
0
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"ࠨࡘࡃࡏࡆ࠲ࡆࡩࡴࡪࡸࡤࡸࡪ࡝ࡩ࡯ࡦࡲࡻ࠭ࡎ࡯࡮ࡧࠬࠦओ"))
コード例 #14
0
ファイル: default.py プロジェクト: krzysztofuu/Bonitillonew
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()
コード例 #15
0
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()
コード例 #16
0
    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>&nbsp;&nbsp;&nbsp;<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)
コード例 #17
0
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()
コード例 #18
0
ファイル: default.py プロジェクト: chileanchili/cuddly-potato
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()
コード例 #19
0
ファイル: default.py プロジェクト: krzysztofuu/Bonitillonew
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()
コード例 #20
0
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"ࠤ࡛ࡆࡒࡉ࠮ࡂࡥࡷ࡭ࡻࡧࡴࡦ࡙࡬ࡲࡩࡵࡷࠩࡊࡲࡱࡪ࠯ࠢࣉ"))
コード例 #21
0
ファイル: default.py プロジェクト: krzysztofuu/Bonitillonew
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)
コード例 #22
0
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)')
コード例 #23
0
    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())
コード例 #24
0
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()
コード例 #25
0
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)')
コード例 #26
0
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('&#039;', '\'').replace('amp;', '')
        addDir('[B][COLOR white]%s[/COLOR][/B]' % name, url, 100, iconimage,
               FANART, '')
    xbmc.executebuiltin('Container.SetViewMode(50)')
コード例 #27
0
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('&#8217;', '').replace('#038;', '').replace(
            '\\xc3\\xa9', 'e').replace('&#039;', '\'')
        addDir('[B][COLOR white]%s[/COLOR][/B]' % name, url, 9, icon, FANART,
               '')
    xbmc.executebuiltin('Container.SetViewMode(50)')
コード例 #28
0
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()
コード例 #29
0
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()
コード例 #30
0
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("&amp;","&")
		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()