Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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()
Exemplo n.º 3
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()
Exemplo n.º 4
0
def l11ll1Fuck_You_Anonymous(url,content):
	if l111111Fuck_You_Anonymous not in url:
		url = l111111Fuck_You_Anonymous + url
	link = open_url(url,verify=False).content
	l11llFuck_You_Anonymous = md.regex_get_all(link, l111Fuck_You_Anonymous (u"ࠩࡦࡰࡦࡹࡳ࠾ࠤࡰࡰ࠲࡯ࡴࡦ࡯ࠥࡂࠬ࢘"), l111Fuck_You_Anonymous (u"ࠪࡀ࠴ࡪࡩࡷࡀ࢙ࠪ"))
	items = len(l11llFuck_You_Anonymous)
	for a in l11llFuck_You_Anonymous:
		name = md.regex_from_to(a, l111Fuck_You_Anonymous (u"ࠫࡹ࡯ࡴ࡭ࡧࡀ࢚ࠦࠬ"), l111Fuck_You_Anonymous (u"ࠬࠨ࢛ࠧ")).replace(l111Fuck_You_Anonymous (u"ࠨ࡜࡝ࠩࠥ࢜"),l111Fuck_You_Anonymous (u"ࠢࠨࠤ࢝"))
		name = l1ll1Fuck_You_Anonymous.unescape(name)
		url = md.regex_from_to(a, l111Fuck_You_Anonymous (u"ࠨࡪࡵࡩ࡫ࡃࠢࠨ࢞"), l111Fuck_You_Anonymous (u"ࠩࠥࠫ࢟"))
		l1l1Fuck_You_Anonymous = md.regex_from_to(a, l111Fuck_You_Anonymous (u"ࠪࡨࡦࡺࡡ࠮ࡱࡵ࡭࡬࡯࡮ࡢ࡮ࡀࠦࠬࢠ"), l111Fuck_You_Anonymous (u"ࠫࠧ࠭ࢡ"))
		l1llllllFuck_You_Anonymous = md.regex_from_to(a, l111Fuck_You_Anonymous (u"ࠬࡷࡵࡢ࡮࡬ࡸࡾࡢࠧ࠿ࠩࢢ"), l111Fuck_You_Anonymous (u"࠭࠼ࠨࢣ"))
		l1l111l1Fuck_You_Anonymous = md.regex_from_to(a, l111Fuck_You_Anonymous (u"ࠧࡦࡲࡶࡠࠬࡄࠧࢤ"), l111Fuck_You_Anonymous (u"ࠨ࠾࠲ࠫࢥ"))
		l1l111l1Fuck_You_Anonymous = l1l111l1Fuck_You_Anonymous.replace(l111Fuck_You_Anonymous (u"ࠩ࠿ࡷࡵࡧ࡮࠿ࠩࢦ"),l111Fuck_You_Anonymous (u"ࠪࠤࠬࢧ")).replace(l111Fuck_You_Anonymous (u"ࠫࡁ࡯࠾ࠨࢨ"),l111Fuck_You_Anonymous (u"ࠬࠦࠧࢩ"))
		if content == l111Fuck_You_Anonymous (u"࠭࡭ࡰࡸ࡬ࡩࡸ࠭ࢪ"):
			l11l11lFuck_You_Anonymous = {l111Fuck_You_Anonymous (u"ࠧࡧࡣࡱࡥࡷࡺࠧࢫ"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"ࠨ࡯ࡲࡺ࡮࡫ࡳ࠯࡬ࡳ࡫ࠬࢬ")}
			if l1llllllFuck_You_Anonymous:
				title = name
				md.remove_punctuation(title)
				md.addDir({l111Fuck_You_Anonymous (u"ࠩࡰࡳࡩ࡫ࠧࢭ"): l111Fuck_You_Anonymous (u"ࠪ࠻ࠬࢮ"), l111Fuck_You_Anonymous (u"ࠫࡳࡧ࡭ࡦࠩࢯ"):l111Fuck_You_Anonymous (u"ࠬࡡࡂ࡞࡝ࡆࡓࡑࡕࡒࠡࡹ࡫࡭ࡹ࡫࡝ࠦࡵ࡞࠳ࡈࡕࡌࡐࡔࡠ࡟ࡎࡣ࡛ࡄࡑࡏࡓࡗࠦࡳࡵࡧࡨࡰࡧࡲࡵࡦ࡟ࠫࠩࡸ࠯࡛࠰ࡅࡒࡐࡔࡘ࡝࡜࠱ࡌࡡࡠ࠵ࡂ࡞ࠩࢰ") %(name,l1llllllFuck_You_Anonymous),
					   l111Fuck_You_Anonymous (u"࠭ࡵࡳ࡮ࠪࢱ"):url+l111Fuck_You_Anonymous (u"ࠧࡸࡣࡷࡧ࡭࠭ࢲ"), l111Fuck_You_Anonymous (u"ࠨ࡫ࡦࡳࡳ࡯࡭ࡢࡩࡨࠫࢳ"):l1l1Fuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠩࡦࡳࡳࡺࡥ࡯ࡶࠪࢴ"):content}, {l111Fuck_You_Anonymous (u"ࠪࡷࡴࡸࡴࡵ࡫ࡷࡰࡪ࠭ࢵ"):title},
					  fan_art=l11l11lFuck_You_Anonymous, is_folder=False, item_count=items)
		elif content == l111Fuck_You_Anonymous (u"ࠫࡹࡼࡳࡩࡱࡺࡷࠬࢶ"):
			l11l11lFuck_You_Anonymous = {l111Fuck_You_Anonymous (u"ࠬ࡬ࡡ࡯ࡣࡵࡸࠬࢷ"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"࠭ࡴࡷࡵ࡫ࡳࡼࡹ࠮࡫ࡲࡪࠫࢸ")}
			if l1l111l1Fuck_You_Anonymous:
				data = name.split(l111Fuck_You_Anonymous (u"ࠧ࠮ࠢࡖࡩࡦࡹ࡯࡯ࠩࢹ"))
				l1ll1lllFuck_You_Anonymous = data[0].strip()
				md.remove_punctuation(l1ll1lllFuck_You_Anonymous)
				try:
					l11111lFuck_You_Anonymous = data[1].strip()
				except:
					l11111lFuck_You_Anonymous = l111Fuck_You_Anonymous (u"ࠨࠩࢺ")
				md.addDir({l111Fuck_You_Anonymous (u"ࠩࡰࡳࡩ࡫ࠧࢻ"): l111Fuck_You_Anonymous (u"ࠪ࠷ࠬࢼ"), l111Fuck_You_Anonymous (u"ࠫࡳࡧ࡭ࡦࠩࢽ"):l111Fuck_You_Anonymous (u"ࠬࡡࡂ࡞࡝ࡆࡓࡑࡕࡒࠡࡹ࡫࡭ࡹ࡫࡝ࠦࡵ࡞࠳ࡈࡕࡌࡐࡔࡠࠤࡠࡏ࡝࡜ࡅࡒࡐࡔࡘࠠࡴࡶࡨࡩࡱࡨ࡬ࡶࡧࡠࠩࡸࡡ࠯ࡄࡑࡏࡓࡗࡣ࡛࠰ࡋࡠ࡟࠴ࡈ࡝ࠨࢾ") %(name,l1l111l1Fuck_You_Anonymous),
					   l111Fuck_You_Anonymous (u"࠭ࡴࡪࡶ࡯ࡩࠬࢿ"):l1ll1lllFuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠧࡶࡴ࡯ࠫࣀ"):url+l111Fuck_You_Anonymous (u"ࠨࡹࡤࡸࡨ࡮ࠧࣁ"), l111Fuck_You_Anonymous (u"ࠩ࡬ࡧࡴࡴࡩ࡮ࡣࡪࡩࠬࣂ"):l1l1Fuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠪࡧࡴࡴࡴࡦࡰࡷࠫࣃ"):content, l111Fuck_You_Anonymous (u"ࠫࡸ࡫ࡡࡴࡱࡱࠫࣄ"):l11111lFuck_You_Anonymous},
					  {l111Fuck_You_Anonymous (u"ࠬࡹ࡯ࡳࡶࡷ࡭ࡹࡲࡥࠨࣅ"):l1ll1lllFuck_You_Anonymous}, l11l11lFuck_You_Anonymous, item_count=items)
	try:
		l111ll1Fuck_You_Anonymous = re.findall(l111Fuck_You_Anonymous (u"ࡸࠧ࠽࡮࡬ࠤࡨࡲࡡࡴࡵࡀࠦ࠳࠰࠿ࠣࡀ࠿ࡥࠥ࡮ࡲࡦࡨࡀࠦࠪࡹࠨ࠯ࠬࡂ࠭ࠧࠦࡤࡢࡶࡤ࠱ࡨ࡯࠭ࡱࡣࡪ࡭ࡳࡧࡴࡪࡱࡱ࠱ࡵࡧࡧࡦ࠿ࠥ࠲࠯ࡅࠢࠡࡴࡨࡰࡂࠨࠨ࠯ࠬࡂ࠭ࠧࡄ࠮ࠫࡁ࠿࠳ࡦࡄ࠼࠰࡮࡬ࡂࠬࣆ") %l111111Fuck_You_Anonymous, str(link), re.I|re.DOTALL)
		for url,name in l111ll1Fuck_You_Anonymous:
			url = url.replace(l111Fuck_You_Anonymous (u"ࠧࠧࡣࡰࡴࡀ࠭ࣇ"),l111Fuck_You_Anonymous (u"ࠨࠨࠪࣈ"))
			l1lll1l1Fuck_You_Anonymous = [l111Fuck_You_Anonymous (u"ࠩࡳࡶࡪࡼࠧࣉ"), l111Fuck_You_Anonymous (u"ࠪࡲࡪࡾࡴࠨ࣊")]
			if name in l1lll1l1Fuck_You_Anonymous:
				name = name.replace(l111Fuck_You_Anonymous (u"ࠫࡳ࡫ࡸࡵࠩ࣋"),l111Fuck_You_Anonymous (u"ࠬࡄ࠾ࡏࡧࡻࡸࠥࡖࡡࡨࡧࡁࡂࡃ࠭࣌"))
				name = name.replace(l111Fuck_You_Anonymous (u"࠭ࡰࡳࡧࡹࠫ࣍"),l111Fuck_You_Anonymous (u"ࠧ࠽࠾࠿ࡔࡷ࡫ࡶࡪࡱࡸࡷࠥࡖࡡࡨࡧ࠿ࡀࠬ࣎"))
				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)
	except: pass
	if content == l111Fuck_You_Anonymous (u"ࠧ࡮ࡱࡹ࡭ࡪࡹࠧࣕ"):
		setView(l1lll1llFuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠨ࡯ࡲࡺ࡮࡫ࡳࠨࣖ"), l111Fuck_You_Anonymous (u"ࠩࡰࡳࡻ࡯ࡥ࠮ࡸ࡬ࡩࡼ࠭ࣗ"))
	elif content == l111Fuck_You_Anonymous (u"ࠪࡸࡻࡹࡨࡰࡹࡶࠫࣘ"):
		setView(l1lll1llFuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠫࡹࡼࡳࡩࡱࡺࡷࠬࣙ"), l111Fuck_You_Anonymous (u"ࠬࡹࡨࡰࡹ࠰ࡺ࡮࡫ࡷࠨࣚ"))
	l1ll1Fuck_You_Anonymous.end_of_directory()
Exemplo n.º 5
0
def l1lll11lFuck_You_Anonymous(title, url, l11111Fuck_You_Anonymous, content, l11111lFuck_You_Anonymous):
	if l111111Fuck_You_Anonymous not in url:
		url = l111111Fuck_You_Anonymous + url
	if l11111Fuck_You_Anonymous == l111Fuck_You_Anonymous (u"࠭ࠧࣛ") or l11111Fuck_You_Anonymous == None:
		fan_art = {l111Fuck_You_Anonymous (u"ࠧࡪࡥࡲࡲࠬࣜ"):l1l11l11Fuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠨࡨࡤࡲࡦࡸࡴࠨࣝ"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"ࠩࡷࡺࡸ࡮࡯ࡸࡵ࠱࡮ࡵ࡭ࠧࣞ")}
	else:
		fan_art = {l111Fuck_You_Anonymous (u"ࠪ࡭ࡨࡵ࡮ࠨࣟ"):l11111Fuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠫ࡫ࡧ࡮ࡢࡴࡷࠫ࣠"):l11l1lFuck_You_Anonymous+l111Fuck_You_Anonymous (u"ࠬࡺࡶࡴࡪࡲࡻࡸ࠴ࡪࡱࡩࠪ࣡")}
	link = open_url(url,verify=False).content
	if not l11ll11Fuck_You_Anonymous == l111Fuck_You_Anonymous (u"࠭ࡴࡳࡷࡨࠫ࣢"):
		l11l111Fuck_You_Anonymous = re.findall(l111Fuck_You_Anonymous (u"ࡲࠨ࠾࡬ࠤࡨࡲࡡࡴࡵࡀࠦ࡫ࡧࠠࡧࡣ࠰ࡷࡪࡸࡶࡦࡴࠣࡱࡷ࠻ࠢ࠿࠾࠲࡭ࡃࡂࡳࡵࡴࡲࡲ࡬ࡄࠨ࡜ࡠ࠿ࡂࡢ࠰ࠩ࠽࠱ࡶࡸࡷࡵ࡮ࡨࡀࣣࠪ"), str(link), re.I|re.DOTALL)
		l111l11Fuck_You_Anonymous = []
		l1l1lllFuck_You_Anonymous = []
		l1ll1lFuck_You_Anonymous = l111Fuck_You_Anonymous (u"ࠨࠩࣤ")
		for l1lll1lFuck_You_Anonymous in l11l111Fuck_You_Anonymous:
			if l111Fuck_You_Anonymous (u"ࠩࡖࡉࡗ࡜ࡅࡓࠩࣥ") in l1lll1lFuck_You_Anonymous:
				l1ll1lFuck_You_Anonymous = l111Fuck_You_Anonymous (u"ࠪ࡟ࡇࡣ࡛ࡊ࡟࡞ࡇࡔࡒࡏࡓࠢࡶࡸࡪ࡫࡬ࡣ࡮ࡸࡩࡢࠫࡳ࡜࠱ࡆࡓࡑࡕࡒ࡞࡝࠲ࡍࡢࡡ࠯ࡃ࡟ࣦࠪ") %l1lll1lFuck_You_Anonymous
				l111l11Fuck_You_Anonymous.append(l1ll1lFuck_You_Anonymous)
				l1l1lllFuck_You_Anonymous.append(l1lll1lFuck_You_Anonymous)
		if len(l111l11Fuck_You_Anonymous) > 1:
			l1llll1Fuck_You_Anonymous = md.dialog_select(l111Fuck_You_Anonymous (u"ࠫࡕࡲࡥࡢࡵࡨࠤࡈ࡮࡯ࡰࡵࡨࠤࡆࠦࡓࡦࡴࡹࡩࡷ࠭ࣧ"),l111l11Fuck_You_Anonymous)
			if l1llll1Fuck_You_Anonymous == -1:
				return
			elif l1llll1Fuck_You_Anonymous > -1:
				l111l1lFuck_You_Anonymous = md.regex_get_all(link, l111Fuck_You_Anonymous (u"ࠬࡂࡳࡵࡴࡲࡲ࡬ࡄࠥࡴ࠾࠲ࡷࡹࡸ࡯࡯ࡩࡁࠫࣨ") %l1l1lllFuck_You_Anonymous[l1llll1Fuck_You_Anonymous], l111Fuck_You_Anonymous (u"࠭ࠢࡤ࡮ࡨࡥࡷ࡬ࡩࡹࠤࣩࠪ"))
		else:
			l111l1lFuck_You_Anonymous = md.regex_get_all(link, l111Fuck_You_Anonymous (u"ࠧࡪࡦࡀࠦࡱ࡯ࡳࡵ࠯ࡨࡴࡸࠨࠧ࣪"), l111Fuck_You_Anonymous (u"ࠨࠤࡦࡰࡪࡧࡲࡧ࡫ࡻࠦࠬ࣫"))
	else:
		l111l1lFuck_You_Anonymous = md.regex_get_all(link, l111Fuck_You_Anonymous (u"ࠩ࡬ࡨࡂࠨ࡬ࡪࡵࡷ࠱ࡪࡶࡳࠣࠩ࣬"), l111Fuck_You_Anonymous (u"ࠪࠦࡨࡲࡥࡢࡴࡩ࡭ࡽࠨ࣭ࠧ"))
	l11llFuck_You_Anonymous = md.regex_get_all(str(l111l1lFuck_You_Anonymous), l111Fuck_You_Anonymous (u"ࠫࡁࡧ࣮ࠧ"), l111Fuck_You_Anonymous (u"ࠬࡧ࠾ࠨ࣯"))
	items = len(l11llFuck_You_Anonymous)
	for a in l11llFuck_You_Anonymous:
		name = md.regex_from_to(a, l111Fuck_You_Anonymous (u"࠭ࡢࡵࡰ࠰ࡩࡵࡹࠠࡧ࡫ࡵࡷࡹ࠳ࡥࡱࠢ࠱࠮ࡄࠨ࠾ࠨࣰ"), l111Fuck_You_Anonymous (u"ࠧ࠽࠱ࣱࠪ")).replace(l111Fuck_You_Anonymous (u"ࠣ࡞࡟ࣲࠫࠧ"),l111Fuck_You_Anonymous (u"ࠤࠪࠦࣳ"))
		name = name.replace(l111Fuck_You_Anonymous (u"ࠪࡉࡵ࡯ࡳࡰࡦࡨࠫࣴ"),l111Fuck_You_Anonymous (u"ࠫࡠࡉࡏࡍࡑࡕࠤࡸࡺࡥࡦ࡮ࡥࡰࡺ࡫࡝ࡆࡲ࡬ࡷࡴࡪࡥ࡜࠱ࡆࡓࡑࡕࡒ࡞ࠩࣵ")).replace(l111Fuck_You_Anonymous (u"ࠧࡢ࡜ࡵࠤࣶ"),l111Fuck_You_Anonymous (u"ࠨࠢࣷ"))
		name = l1ll1Fuck_You_Anonymous.unescape(name)
		url = md.regex_from_to(a, l111Fuck_You_Anonymous (u"ࠧࡩࡴࡨࡪࡂࠨࠧࣸ"), l111Fuck_You_Anonymous (u"ࠨࠤࣹࠪ"))
		if l111Fuck_You_Anonymous (u"ࠩ࠲ࡷࡪࡸࡶࡦࡴ࠰ࣺࠫ") in url:
			try:
				l1l111llFuck_You_Anonymous = name.split(l111Fuck_You_Anonymous (u"ࠪ࠾ࠬࣻ"))[0].strip()
			except:pass
			md.remove_punctuation(title)
			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"ࠩ࡬ࡧࡴࡴࡩ࡮ࡣࡪࡩࠬँ"):l11111Fuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠪࡧࡴࡴࡴࡦࡰࡷࠫं"):l111Fuck_You_Anonymous (u"ࠫࡪࡶࡩࡴࡱࡧࡩࡸ࠭ः")},
				  {l111Fuck_You_Anonymous (u"ࠬࡹ࡯ࡳࡶࡷ࡭ࡹࡲࡥࠨऄ"):title, l111Fuck_You_Anonymous (u"࠭ࡳࡦࡣࡶࡳࡳ࠭अ"):l11111lFuck_You_Anonymous, l111Fuck_You_Anonymous (u"ࠧࡦࡲ࡬ࡷࡴࡪࡥࠨआ"):l1l111llFuck_You_Anonymous},
				  fan_art, is_folder=False, item_count=items)
	setView(l1lll1llFuck_You_Anonymous,l111Fuck_You_Anonymous (u"ࠨࡧࡳ࡭ࡸࡵࡤࡦࡵࠪइ"), l111Fuck_You_Anonymous (u"ࠩࡨࡴ࡮࠳ࡶࡪࡧࡺࠫई"))
	l1ll1Fuck_You_Anonymous.end_of_directory()
Exemplo n.º 6
0
def function10(content, query):
    if content is None:
        content = 'tvshows'
    try:
        if query:
            search = query.replace(' ', '%20')
        else:
            search = md.search('%20')
            if search == '':
                md.notification(
                    '[COLOR gold][B]EMPTY QUERY[/B][/COLOR],Aborting search',
                    hIcon)
                return
            else:
                pass
        url = '%s/search/%s' % (strBaseURL, search)
        link = open_url(url).content
        strRegex2 = md.regex_get_all(link, 'ih-item', 'Add Link')
        items = len(strRegex2)
        for a in strRegex2:
            name = md.regex_from_to(a, '<strong>', '</').replace("\\'", "'")
            name = MDWS.unescape(name)
            url = md.regex_get_all(a, 'href="', '"', bTrue=True)[2]
            strRegex3 = md.regex_from_to(a, 'src="', '"')
            if not strRegex3:
                strRegex3 = strArtDir + 'mdws.png'
            if strBaseURL not in url:
                url = strBaseURL + url
            md.remove_punctuation(name)
            md.addDir(
                {
                    'mode': '2',
                    'name': '[B][COLOR white]%s[/COLOR][/B]' % name,
                    'url': url,
                    'title': name,
                    'iconimage': strRegex3,
                    'content': content
                }, {'sorttitle': name},
                fan_art={'icon': strRegex3},
                item_count=items)
        setView(strAddonID, 'tvshows', 'show-view')
        MDWS.end_of_directory()
    except:
        md.notification('[COLOR gold][B]Sorry No Results[/B][/COLOR]', hIcon)
Exemplo n.º 7
0
def l1l1l1Created_By_Mucky_Duck(url,content):
	link = open_url(url,verify=False).content
	l1l1lCreated_By_Mucky_Duck = md.regex_get_all(link, 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"ࠦࠬࠨ࢓"))
		url = md.regex_from_to(a, l11lCreated_By_Mucky_Duck (u"ࠬ࡮ࡲࡦࡨࡀࠦࠬ࢔"), l11lCreated_By_Mucky_Duck (u"࠭ࠢࠨ࢕"))
		l11Created_By_Mucky_Duck = md.regex_from_to(a, l11lCreated_By_Mucky_Duck (u"ࠧࡰࡴ࡬࡫࡮ࡴࡡ࡭࠿ࠥࠫ࢖"), l11lCreated_By_Mucky_Duck (u"ࠨࠤࠪࢗ"))
		l111lllCreated_By_Mucky_Duck = md.regex_from_to(a, l11lCreated_By_Mucky_Duck (u"ࠩࡰࡰ࡮࠳ࡱࡶࡣ࡯࡭ࡹࡿࠢ࠿ࠩ࢘"), l11lCreated_By_Mucky_Duck (u"ࠪࡀ࢙ࠬ"))
		l1l11l1lCreated_By_Mucky_Duck = md.regex_from_to(a, l11lCreated_By_Mucky_Duck (u"ࠫࠧࡳ࡬ࡪ࠯ࡨࡴࡸࠨ࠾ࠨ࢚"), l11lCreated_By_Mucky_Duck (u"ࠬࡂ࠯ࠨ࢛"))
		l1l11l1lCreated_By_Mucky_Duck = l1l11l1lCreated_By_Mucky_Duck.replace(l11lCreated_By_Mucky_Duck (u"࠭࠼ࡴࡲࡤࡲࡃ࠭࢜"),l11lCreated_By_Mucky_Duck (u"ࠧࠡࠩ࢝")).replace(l11lCreated_By_Mucky_Duck (u"ࠨ࠾࡬ࡂࠬ࢞"),l11lCreated_By_Mucky_Duck (u"ࠩࠣࠫ࢟"))
		if content == l11lCreated_By_Mucky_Duck (u"ࠪࡱࡴࡼࡩࡦࡵࠪࢠ"):
			if l111lllCreated_By_Mucky_Duck:
                                title = name
                                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,l111lllCreated_By_Mucky_Duck),
					   l11lCreated_By_Mucky_Duck (u"ࠨࡷࡵࡰࠬࢥ"):url+l11lCreated_By_Mucky_Duck (u"ࠩࡺࡥࡹࡩࡨࡪࡰࡪ࠲࡭ࡺ࡭࡭ࠩࢦ"), l11lCreated_By_Mucky_Duck (u"ࠪ࡭ࡨࡵ࡮ࡪ࡯ࡤ࡫ࡪ࠭ࢧ"):l11Created_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"ࠫࡨࡵ࡮ࡵࡧࡱࡸࠬࢨ"):content}, {l11lCreated_By_Mucky_Duck (u"ࠬࡹ࡯ࡳࡶࡷ࡭ࡹࡲࡥࠨࢩ"):title},
					  fan_art={l11lCreated_By_Mucky_Duck (u"࠭ࡩࡤࡱࡱࠫࢪ"):l11Created_By_Mucky_Duck}, is_folder=False, item_count=items)
		elif content == l11lCreated_By_Mucky_Duck (u"ࠧࡵࡸࡶ࡬ࡴࡽࡳࠨࢫ"):
			if l1l11l1lCreated_By_Mucky_Duck:
				data = name.split(l11lCreated_By_Mucky_Duck (u"ࠨ࠯ࠣࡗࡪࡧࡳࡰࡰࠪࢬ"))
				l111111Created_By_Mucky_Duck = data[0].strip()
				md.remove_punctuation(l111111Created_By_Mucky_Duck)
				try:
					l11l11lCreated_By_Mucky_Duck = data[1].strip()
				except:
					l11l11lCreated_By_Mucky_Duck = l11lCreated_By_Mucky_Duck (u"ࠩࠪࢭ")
				md.addDir({l11lCreated_By_Mucky_Duck (u"ࠪࡱࡴࡪࡥࠨࢮ"): l11lCreated_By_Mucky_Duck (u"ࠫ࠸࠭ࢯ"), l11lCreated_By_Mucky_Duck (u"ࠬࡴࡡ࡮ࡧࠪࢰ"):l11lCreated_By_Mucky_Duck (u"࡛࠭ࡃ࡟࡞ࡇࡔࡒࡏࡓࠢࡺ࡬࡮ࡺࡥ࡞ࠧࡶ࡟࠴ࡉࡏࡍࡑࡕࡡࠥࡡࡉ࡞࡝ࡆࡓࡑࡕࡒࠡࡴࡨࡨࡢࠫࡳ࡜࠱ࡆࡓࡑࡕࡒ࡞࡝࠲ࡍࡢࡡ࠯ࡃ࡟ࠪࢱ") %(name,l1l11l1lCreated_By_Mucky_Duck),
					   l11lCreated_By_Mucky_Duck (u"ࠧࡵ࡫ࡷࡰࡪ࠭ࢲ"):l111111Created_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"ࠨࡷࡵࡰࠬࢳ"):url+l11lCreated_By_Mucky_Duck (u"ࠩࡺࡥࡹࡩࡨࡪࡰࡪ࠲࡭ࡺ࡭࡭ࠩࢴ"), l11lCreated_By_Mucky_Duck (u"ࠪ࡭ࡨࡵ࡮ࡪ࡯ࡤ࡫ࡪ࠭ࢵ"):l11Created_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"ࠫࡨࡵ࡮ࡵࡧࡱࡸࠬࢶ"):content, l11lCreated_By_Mucky_Duck (u"ࠬࡹࡥࡢࡵࡲࡲࠬࢷ"):l11l11lCreated_By_Mucky_Duck},
					  {l11lCreated_By_Mucky_Duck (u"࠭ࡳࡰࡴࡷࡸ࡮ࡺ࡬ࡦࠩࢸ"):l111111Created_By_Mucky_Duck}, fan_art={l11lCreated_By_Mucky_Duck (u"ࠧࡪࡥࡲࡲࠬࢹ"):l11Created_By_Mucky_Duck}, item_count=items)
	try:
		l1l1Created_By_Mucky_Duck = re.compile(l11lCreated_By_Mucky_Duck (u"ࠨ࠾࡯࡭ࠥࡩ࡬ࡢࡵࡶࡁࠧࡴࡥࡹࡶࠥࡂࡁࡧࠠࡩࡴࡨࡪࡂࠨࠨ࠯ࠬࡂ࠭ࠧࠦࡤࡢࡶࡤ࠱ࡨ࡯࠭ࡱࡣࡪ࡭ࡳࡧࡴࡪࡱࡱ࠱ࡵࡧࡧࡦ࠿ࠥ࠲࠯ࡅࠢࠡࡴࡨࡰࡂࠨ࡮ࡦࡺࡷࠦࡃ࠭ࢺ")).findall(link)[0]
		md.addDir({l11lCreated_By_Mucky_Duck (u"ࠩࡰࡳࡩ࡫ࠧࢻ"): l11lCreated_By_Mucky_Duck (u"ࠪ࠶ࠬࢼ"), l11lCreated_By_Mucky_Duck (u"ࠫࡳࡧ࡭ࡦࠩࢽ"):l11lCreated_By_Mucky_Duck (u"ࠬࡡࡂ࡞࡝ࡆࡓࡑࡕࡒࠡࡴࡨࡨࡢࡄ࠾ࡏࡧࡻࡸࠥࡖࡡࡨࡧࡁࡂࡃࡡ࠯ࡄࡑࡏࡓࡗࡣ࡛࠰ࡄࡠࠫࢾ"), l11lCreated_By_Mucky_Duck (u"࠭ࡵࡳ࡮ࠪࢿ"):l1l1Created_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"ࠧࡤࡱࡱࡸࡪࡴࡴࠨࣀ"):content})
	except: pass
	if content == l11lCreated_By_Mucky_Duck (u"ࠨ࡯ࡲࡺ࡮࡫ࡳࠨࣁ"):
		setView(l1111llCreated_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"ࠩࡰࡳࡻ࡯ࡥࡴࠩࣂ"), l11lCreated_By_Mucky_Duck (u"ࠪࡱࡴࡼࡩࡦ࠯ࡹ࡭ࡪࡽࠧࣃ"))
	elif content == l11lCreated_By_Mucky_Duck (u"ࠫࡹࡼࡳࡩࡱࡺࡷࠬࣄ"):
		setView(l1111llCreated_By_Mucky_Duck, l11lCreated_By_Mucky_Duck (u"ࠬࡺࡶࡴࡪࡲࡻࡸ࠭ࣅ"), l11lCreated_By_Mucky_Duck (u"࠭ࡳࡩࡱࡺ࠱ࡻ࡯ࡥࡸࠩࣆ"))
	l111Created_By_Mucky_Duck.end_of_directory()
Exemplo n.º 8
0
def l1lll1Fuck_You_Anonymous(content, query):
    if content is None:
        content = l11l11Fuck_You_Anonymous(u"ࠪࡸࡻࡹࡨࡰࡹࡶࠫऺ")
    try:
        if query:
            search = query.replace(l11l11Fuck_You_Anonymous(u"ࠫࠥ࠭ऻ"),
                                   l11l11Fuck_You_Anonymous(u"ࠬࠫ࠲࠱़ࠩ"))
        else:
            search = md.search(l11l11Fuck_You_Anonymous(u"࠭ࠥ࠳࠲ࠪऽ"))
            if search == l11l11Fuck_You_Anonymous(u"ࠧࠨा"):
                md.notification(
                    l11l11Fuck_You_Anonymous(
                        u"ࠨ࡝ࡆࡓࡑࡕࡒࠡࡩࡲࡰࡩࡣ࡛ࡃ࡟ࡈࡑࡕ࡚࡙ࠡࡓࡘࡉࡗ࡟࡛࠰ࡄࡠ࡟࠴ࡉࡏࡍࡑࡕࡡ࠱ࡇࡢࡰࡴࡷ࡭ࡳ࡭ࠠࡴࡧࡤࡶࡨ࡮ࠧि"
                    ), l1111lFuck_You_Anonymous)
                return
            else:
                pass
        url = l11l11Fuck_You_Anonymous(u"ࠩࠨࡷ࠴ࡹࡥࡢࡴࡦ࡬࠴ࠫࡳࠨी") % (
            l1l1Fuck_You_Anonymous, search)
        link = open_url(url).content
        l1ll11lFuck_You_Anonymous = md.regex_get_all(
            link, l11l11Fuck_You_Anonymous(u"ࠪ࡭࡭࠳ࡩࡵࡧࡰࠫु"),
            l11l11Fuck_You_Anonymous(u"ࠫࡆࡪࡤࠡࡎ࡬ࡲࡰ࠭ू"))
        items = len(l1ll11lFuck_You_Anonymous)
        for a in l1ll11lFuck_You_Anonymous:
            name = md.regex_from_to(
                a, l11l11Fuck_You_Anonymous(u"ࠬࡂࡳࡵࡴࡲࡲ࡬ࡄࠧृ"),
                l11l11Fuck_You_Anonymous(u"࠭࠼࠰ࠩॄ")).replace(
                    l11l11Fuck_You_Anonymous(u"ࠢ࡝࡞ࠪࠦॅ"),
                    l11l11Fuck_You_Anonymous(u"ࠣࠩࠥॆ"))
            name = l11lll1Fuck_You_Anonymous.unescape(name)
            url = md.regex_get_all(a,
                                   l11l11Fuck_You_Anonymous(u"ࠩ࡫ࡶࡪ࡬࠽ࠣࠩे"),
                                   l11l11Fuck_You_Anonymous(u"ࠪࠦࠬै"),
                                   l11l1l1Fuck_You_Anonymous=True)[2]
            l1ll1lFuck_You_Anonymous = md.regex_from_to(
                a, l11l11Fuck_You_Anonymous(u"ࠫࡸࡸࡣ࠾ࠤࠪॉ"),
                l11l11Fuck_You_Anonymous(u"ࠬࠨࠧॊ"))
            if not l1ll1lFuck_You_Anonymous:
                l1ll1lFuck_You_Anonymous = l11Fuck_You_Anonymous + l11l11Fuck_You_Anonymous(
                    u"࠭࡭ࡥࡹࡶ࠲ࡵࡴࡧࠨो")
            if l1l1Fuck_You_Anonymous not in url:
                url = l1l1Fuck_You_Anonymous + url
            md.remove_punctuation(name)
            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"ࠬࡺࡩࡵ࡮ࡨࠫ॑"):
                    name,
                    l11l11Fuck_You_Anonymous(u"࠭ࡩࡤࡱࡱ࡭ࡲࡧࡧࡦ॒ࠩ"):
                    l1ll1lFuck_You_Anonymous,
                    l11l11Fuck_You_Anonymous(u"ࠧࡤࡱࡱࡸࡪࡴࡴࠨ॓"):
                    content
                }, {l11l11Fuck_You_Anonymous(u"ࠨࡵࡲࡶࡹࡺࡩࡵ࡮ࡨࠫ॔"): name},
                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()
    except:
        md.notification(
            l11l11Fuck_You_Anonymous(
                u"ࠬࡡࡃࡐࡎࡒࡖࠥ࡭࡯࡭ࡦࡠ࡟ࡇࡣࡓࡰࡴࡵࡽࠥࡔ࡯ࠡࡔࡨࡷࡺࡲࡴࡴ࡝࠲ࡆࡢࡡ࠯ࡄࡑࡏࡓࡗࡣࠧक़"),
            l1111lFuck_You_Anonymous)
Exemplo n.º 9
0
def l1Fuck_You_Anonymous(url, title, l1l11Fuck_You_Anonymous, content):
    link = open_url(url).content
    if l1l11Fuck_You_Anonymous == l11l11Fuck_You_Anonymous(u"ࠬ࠼ࠧࡣ"):
        link = md.regex_get_all(
            link, title, l11l11Fuck_You_Anonymous(u"࠭࠼ࡶ࡮ࠣࡧࡱࡧࡳࡴ࠿ࠥࡸࡦࡨࡳࠣࡀࠪࡤ"))
    l1lllllFuck_You_Anonymous = md.regex_get_all(
        str(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"ࠪࡀ࠴ࡲࡩࠨࡨ"))
    items = len(l1ll11lFuck_You_Anonymous)
    for a in l1ll11lFuck_You_Anonymous:
        name = md.regex_from_to(a, l11l11Fuck_You_Anonymous(u"ࠫࡹ࡯ࡴ࡭ࡧࡀࠦࠬࡩ"),
                                l11l11Fuck_You_Anonymous(u"ࠬࠨࠧࡪ")).replace(
                                    l11l11Fuck_You_Anonymous(u"ࠨ࡜࡝ࠩࠥ࡫"),
                                    l11l11Fuck_You_Anonymous(u"ࠢࠨࠤ࡬"))
        name = l11lll1Fuck_You_Anonymous.unescape(name)
        url = md.regex_from_to(a, l11l11Fuck_You_Anonymous(u"ࠨࡪࡵࡩ࡫ࡃࠢࠨ࡭"),
                               l11l11Fuck_You_Anonymous(u"ࠩࠥࠫ࡮"))
        if l11l11Fuck_You_Anonymous(u"ࠪ࡮ࡦࡼࡡࡴࡥࡵ࡭ࡵࡺ࠺ࠨ࡯") in url:
            url = md.regex_get_all(a, l11l11Fuck_You_Anonymous(u"ࠫ࡭ࡸࡥࡧ࠿ࠥࠫࡰ"),
                                   l11l11Fuck_You_Anonymous(u"ࠬࠨࠧࡱ"), True)[1]
        if l11l11Fuck_You_Anonymous(u"࠭ࡪࡢࡸࡤࡷࡨࡸࡩࡱࡶ࠽ࠫࡲ") in url:
            url = md.regex_get_all(a, l11l11Fuck_You_Anonymous(u"ࠧࡩࡴࡨࡪࡂࠨࠧࡳ"),
                                   l11l11Fuck_You_Anonymous(u"ࠨࠤࠪࡴ"), True)[2]
        l1ll1lFuck_You_Anonymous = md.regex_from_to(
            a, l11l11Fuck_You_Anonymous(u"ࠩࡶࡶࡨࡃࠢࠨࡵ"),
            l11l11Fuck_You_Anonymous(u"ࠪࠦࠬࡶ"))
        if not l1ll1lFuck_You_Anonymous:
            l1ll1lFuck_You_Anonymous = l11Fuck_You_Anonymous + l11l11Fuck_You_Anonymous(
                u"ࠫࡲࡪࡷࡴ࠰ࡳࡲ࡬࠭ࡷ")
        if l1l1Fuck_You_Anonymous not in url:
            url = l1l1Fuck_You_Anonymous + url
        if content == l11l11Fuck_You_Anonymous(u"ࠬ࡫ࡰࡪࡵࡲࡨࡪࡹࠧࡸ"):
            info = name.split(l11l11Fuck_You_Anonymous(u"࠭࠭ࠡࡕࡨࡥࡸࡵ࡮ࠨࡹ"))
            title = info[0].strip()
            try:
                sep = md.regex_from_to(a,
                                       l11l11Fuck_You_Anonymous(u"ࠧ࠽ࡤࡵ࠳ࡃ࠭ࡺ"),
                                       l11l11Fuck_You_Anonymous(u"ࠨ࠾ࡥࡶ࠴ࡄࠧࡻ"))
                l11l1llFuck_You_Anonymous = sep.split(
                    l11l11Fuck_You_Anonymous(u"ࠩࡈࡴ࡮ࡹ࡯ࡥࡧࠪࡼ"))[1]
                l11l111Fuck_You_Anonymous = sep.split(
                    l11l11Fuck_You_Anonymous(u"ࠪࡉࡵ࡯ࡳࡰࡦࡨࠫࡽ"))[0]
            except:
                l11l111Fuck_You_Anonymous = info[1].split(
                    l11l11Fuck_You_Anonymous(u"ࠫࡊࡶࡩࡴࡱࡧࡩࠬࡾ"))[0]
                l11l1llFuck_You_Anonymous = info[1].split(
                    l11l11Fuck_You_Anonymous(u"ࠬࡋࡰࡪࡵࡲࡨࡪ࠭ࡿ"))[1].split(
                        l11l11Fuck_You_Anonymous(u"࠭࠭ࠨࢀ"))[0]
            md.remove_punctuation(title)
            md.addDir(
                {
                    l11l11Fuck_You_Anonymous(u"ࠧ࡮ࡱࡧࡩࠬࢁ"):
                    l11l11Fuck_You_Anonymous(u"ࠨ࠺ࠪࢂ"),
                    l11l11Fuck_You_Anonymous(u"ࠩࡱࡥࡲ࡫ࠧࢃ"):
                    l11l11Fuck_You_Anonymous(
                        u"ࠪ࡟ࡇࡣ࡛ࡄࡑࡏࡓࡗࠦࡷࡩ࡫ࡷࡩࡢࠫࡳ࡜࠱ࡆࡓࡑࡕࡒ࡞࡝ࡆࡓࡑࡕࡒࠡࡻࡨࡰࡱࡵࡷ࡞࡝ࡌࡡࠥ࠳ࠠࡔࡧࡤࡷࡴࡴࠠࠦࡵ࡞࠳ࡎࡣ࡛࠰ࡅࡒࡐࡔࡘ࡝࡜࠱ࡅࡡࠬࢄ"
                    ) % (title, info[1]),
                    l11l11Fuck_You_Anonymous(u"ࠫࡺࡸ࡬ࠨࢅ"):
                    url,
                    l11l11Fuck_You_Anonymous(u"ࠬࡩ࡯࡯ࡶࡨࡲࡹ࠭ࢆ"):
                    content,
                    l11l11Fuck_You_Anonymous(u"࠭ࡴࡪࡶ࡯ࡩࠬࢇ"):
                    title,
                    l11l11Fuck_You_Anonymous(u"ࠧࡴࡧࡤࡷࡴࡴࠧ࢈"):
                    l11l111Fuck_You_Anonymous,
                    l11l11Fuck_You_Anonymous(u"ࠨ࡫ࡦࡳࡳ࡯࡭ࡢࡩࡨࠫࢉ"):
                    l1ll1lFuck_You_Anonymous,
                    l11l11Fuck_You_Anonymous(u"ࠩࡨࡴ࡮ࡹ࡯ࡥࡧࠪࢊ"):
                    l11l1llFuck_You_Anonymous
                }, {
                    l11l11Fuck_You_Anonymous(u"ࠪࡷࡴࡸࡴࡵ࡫ࡷࡰࡪ࠭ࢋ"):
                    title,
                    l11l11Fuck_You_Anonymous(u"ࠫࡸ࡫ࡡࡴࡱࡱࠫࢌ"):
                    l11l111Fuck_You_Anonymous,
                    l11l11Fuck_You_Anonymous(u"ࠬ࡫ࡰࡪࡵࡲࡨࡪ࠭ࢍ"):
                    l11l1llFuck_You_Anonymous
                },
                fan_art={
                    l11l11Fuck_You_Anonymous(u"࠭ࡩࡤࡱࡱࠫࢎ"):
                    l1ll1lFuck_You_Anonymous
                },
                item_count=items)
        else:
            if l1l11Fuck_You_Anonymous == l11l11Fuck_You_Anonymous(u"ࠧ࠵ࠩ࢏"):
                l11ll11Fuck_You_Anonymous = {}
            else:
                l11ll11Fuck_You_Anonymous = {
                    l11l11Fuck_You_Anonymous(u"ࠨࡵࡲࡶࡹࡺࡩࡵ࡮ࡨࠫ࢐"): name
                }
            md.remove_punctuation(name)
            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"ࠩࡦࡳࡳࡺࡥ࡯ࡶࠪ࢘"):
                    content
                },
                l11ll11Fuck_You_Anonymous,
                fan_art={
                    l11l11Fuck_You_Anonymous(u"ࠪ࡭ࡨࡵ࡮ࠨ࢙"):
                    l1ll1lFuck_You_Anonymous
                },
                item_count=items)
    try:
        l1l11llFuck_You_Anonymous = re.compile(
            l11l11Fuck_You_Anonymous(
                u"ࠫࡁࡲࡩࠡࡀ࠿ࡥࠥ࡮ࡲࡦࡨࡀࠦ࠭ࡡ࡞ࠣ࡟࠮࠭ࠧࡄࡎࡦࡺࡷࠤࡕࡧࡧࡦ࠾࠲ࡥࡃࡂ࠯࡭࡫ࡁ࢚ࠫ")).findall(
                    link)[0]
        md.addDir(
            {
                l11l11Fuck_You_Anonymous(u"ࠬࡳ࡯ࡥࡧ࢛ࠪ"):
                l11l11Fuck_You_Anonymous(u"࠭࠱ࠨ࢜"),
                l11l11Fuck_You_Anonymous(u"ࠧ࡯ࡣࡰࡩࠬ࢝"):
                l11l11Fuck_You_Anonymous(
                    u"ࠨ࡝ࡆࡓࡑࡕࡒࠡࡻࡨࡰࡱࡵࡷ࡞࡝ࡅࡡࡠࡏ࡝࠿ࡀࡑࡩࡽࡺࠠࡑࡣࡪࡩࡃࡄ࠾࡜࠱ࡌࡡࡠ࠵ࡂ࡞࡝࠲ࡇࡔࡒࡏࡓ࡟ࠪ࢞"),
                l11l11Fuck_You_Anonymous(u"ࠩࡸࡶࡱ࠭࢟"):
                l1l11llFuck_You_Anonymous,
                l11l11Fuck_You_Anonymous(u"ࠪࡸ࡮ࡺ࡬ࡦࠩࢠ"):
                title,
                l11l11Fuck_You_Anonymous(u"ࠫࡨࡵ࡮ࡵࡧࡱࡸࠬࢡ"):
                content,
                l11l11Fuck_You_Anonymous(u"ࠬࡳ࡯ࡥࡧࡢ࡭ࡩ࠭ࢢ"):
                l1l11Fuck_You_Anonymous
            },
            fan_art={
                l11l11Fuck_You_Anonymous(u"࠭ࡩࡤࡱࡱࠫࢣ"):
                l11Fuck_You_Anonymous +
                l11l11Fuck_You_Anonymous(u"ࠧ࡮ࡦࡺࡷ࠳ࡶ࡮ࡨࠩࢤ")
            })
    except:
        pass
    if content == l11l11Fuck_You_Anonymous(u"ࠨࡶࡹࡷ࡭ࡵࡷࡴࠩࢥ"):
        setView(l11ll1lFuck_You_Anonymous,
                l11l11Fuck_You_Anonymous(u"ࠩࡷࡺࡸ࡮࡯ࡸࡵࠪࢦ"),
                l11l11Fuck_You_Anonymous(u"ࠪࡷ࡭ࡵࡷ࠮ࡸ࡬ࡩࡼ࠭ࢧ"))
    elif content == l11l11Fuck_You_Anonymous(u"ࠫࡪࡶࡩࡴࡱࡧࡩࡸ࠭ࢨ"):
        setView(l11ll1lFuck_You_Anonymous,
                l11l11Fuck_You_Anonymous(u"ࠬ࡫ࡰࡪࡵࡲࡨࡪࡹࠧࢩ"),
                l11l11Fuck_You_Anonymous(u"࠭ࡥࡱ࡫࠰ࡺ࡮࡫ࡷࠨࢪ"))
    l11lll1Fuck_You_Anonymous.end_of_directory()
Exemplo n.º 10
0
def l1Created_By_Mucky_Duck(url, content):
    link = open_url(url).text
    l1l1lllCreated_By_Mucky_Duck = md.regex_get_all(
        link, l111l1Created_By_Mucky_Duck(u"࠭ࠢࡪࡶࡨࡱࠧ࠭ࢎ"),
        l111l1Created_By_Mucky_Duck(u"ࠧࡤ࡮ࡨࡥࡷࡀࡢࡰࡶ࡫ࠫ࢏"))
    items = len(l1l1lllCreated_By_Mucky_Duck)
    for a in l1l1lllCreated_By_Mucky_Duck:
        if content == l111l1Created_By_Mucky_Duck(u"ࠨ࡯ࡲࡺ࡮࡫ࡳࠨ࢐"):
            name = md.regex_from_to(a,
                                    l111l1Created_By_Mucky_Duck(u"ࠩࡦ࡭ࡹ࡫࠾ࠨ࢑"),
                                    l111l1Created_By_Mucky_Duck(u"ࠪࡀࠬ࢒"))
        elif content == l111l1Created_By_Mucky_Duck(u"ࠫࡹࡼࡳࡩࡱࡺࡷࠬ࢓"):
            name = md.regex_from_to(
                a, l111l1Created_By_Mucky_Duck(u"ࠬ࡮ࡲࡦࡨࡀ࠲࠯ࡅ࠾ࠨ࢔"),
                l111l1Created_By_Mucky_Duck(u"࠭࠼ࠨ࢕"))
        name = l11l11lCreated_By_Mucky_Duck.unescape(name)
        name = name.encode(l111l1Created_By_Mucky_Duck(u"ࠧࡢࡵࡦ࡭࡮࠭࢖"),
                           l111l1Created_By_Mucky_Duck(u"ࠨ࡫ࡪࡲࡴࡸࡥࠨࢗ")).decode(
                               l111l1Created_By_Mucky_Duck(u"ࠩࡤࡷࡨ࡯ࡩࠨ࢘"))
        l11llllCreated_By_Mucky_Duck = md.regex_from_to(
            a, l111l1Created_By_Mucky_Duck(u"ࠪࡧࡱࡧࡳࡴ࠿ࠥ࡬࠸࠳ࡱࡶࡣ࡯࡭ࡹࡿࠢ࠯ࠬࡂࡂ࢙ࠬ"),
            l111l1Created_By_Mucky_Duck(u"ࠫࡁ࢚࠭"))
        url = md.regex_from_to(a, l111l1Created_By_Mucky_Duck(u"ࠬ࡮ࡲࡦࡨࡀ࢛ࠦࠬ"),
                               l111l1Created_By_Mucky_Duck(u"࠭ࠢࠨ࢜"))
        l1ll1lCreated_By_Mucky_Duck = md.regex_from_to(
            a, l111l1Created_By_Mucky_Duck(u"ࠧࡴࡴࡦࡁࠬ࢝"),
            l111l1Created_By_Mucky_Duck(u"ࠨࡣ࡯ࡸࡂ࠭࢞")).replace(
                l111l1Created_By_Mucky_Duck(u"ࠩࠣࠫ࢟"),
                l111l1Created_By_Mucky_Duck(u"ࠪࠫࢠ"))
        l1l1l11Created_By_Mucky_Duck = md.regex_from_to(
            a, l111l1Created_By_Mucky_Duck(u"ࠫࠧ࡮࠴࠮ࡥࡤࡸࠧ࠴ࠪࡀࡀࠪࢡ"),
            l111l1Created_By_Mucky_Duck(u"ࠬࡂࠧࢢ"))
        if l111l1Created_By_Mucky_Duck(
                u"࠭࠼ࡢࠢࡷ࡭ࡹࡲࡥࠨࢣ") in l1l1l11Created_By_Mucky_Duck:
            l1l1l11Created_By_Mucky_Duck = md.regex_from_to(
                a, l111l1Created_By_Mucky_Duck(u"ࠧࠣࡪ࠷࠱ࡨࡧࡴࠣ࠰࠭ࡃࡃ࠴ࠪࡀ࠾࠱࠮ࡄࡄࠧࢤ"),
                l111l1Created_By_Mucky_Duck(u"ࠨ࠾ࠪࢥ"))
        fan_art = {
            l111l1Created_By_Mucky_Duck(u"ࠩ࡬ࡧࡴࡴࠧࢦ"):
            l1ll1lCreated_By_Mucky_Duck,
            l111l1Created_By_Mucky_Duck(u"ࠪࡪࡦࡴࡡࡳࡶࠪࢧ"):
            l11Created_By_Mucky_Duck +
            l111l1Created_By_Mucky_Duck(u"ࠫࡲ࠺ࡵ࠯࡬ࡳ࡫ࠬࢨ")
        }
        title = name
        md.remove_punctuation(title)
        if content == l111l1Created_By_Mucky_Duck(u"ࠬࡺࡶࡴࡪࡲࡻࡸ࠭ࢩ"):
            if l111l1Created_By_Mucky_Duck(u"࠭࠭ࡵࡸࡶ࡬ࡴࡽ࠭ࠨࢪ") in url:
                md.addDir(
                    {
                        l111l1Created_By_Mucky_Duck(u"ࠧ࡮ࡱࡧࡩࠬࢫ"):
                        l111l1Created_By_Mucky_Duck(u"ࠨ࠸ࠪࢬ"),
                        l111l1Created_By_Mucky_Duck(u"ࠩࡱࡥࡲ࡫ࠧࢭ"):
                        l111l1Created_By_Mucky_Duck(
                            u"ࠪ࡟ࡇࡣ࡛ࡄࡑࡏࡓࡗࠦࡷࡩ࡫ࡷࡩࡢࠫࡳ࡜࠱ࡆࡓࡑࡕࡒ࡞࡝ࡌࡡࡠࡉࡏࡍࡑࡕࠤࡩࡵࡤࡨࡧࡵࡦࡱࡻࡥ࡞ࠧࡶ࡟࠴ࡉࡏࡍࡑࡕࡡࡠ࠵ࡉ࡞࡝࠲ࡆࡢ࠭ࢮ"
                        ) % (name, l1l1l11Created_By_Mucky_Duck),
                        l111l1Created_By_Mucky_Duck(u"ࠫࡹ࡯ࡴ࡭ࡧࠪࢯ"):
                        title,
                        l111l1Created_By_Mucky_Duck(u"ࠬࡻࡲ࡭ࠩࢰ"):
                        url,
                        l111l1Created_By_Mucky_Duck(u"࠭ࡩࡤࡱࡱ࡭ࡲࡧࡧࡦࠩࢱ"):
                        l1ll1lCreated_By_Mucky_Duck,
                        l111l1Created_By_Mucky_Duck(u"ࠧࡤࡱࡱࡸࡪࡴࡴࠨࢲ"):
                        l111l1Created_By_Mucky_Duck(u"ࠨࡶࡹࡷ࡭ࡵࡷࡴࠩࢳ")
                    }, {l111l1Created_By_Mucky_Duck(u"ࠩࡶࡳࡷࡺࡴࡪࡶ࡯ࡩࠬࢴ"): title},
                    fan_art,
                    item_count=items)
        else:
            if l111l1Created_By_Mucky_Duck(u"ࠪ࠱ࡹࡼࡳࡩࡱࡺ࠱ࠬࢵ") not in url:
                md.addDir(
                    {
                        l111l1Created_By_Mucky_Duck(u"ࠫࡲࡵࡤࡦࠩࢶ"):
                        l111l1Created_By_Mucky_Duck(u"ࠬ࠽ࠧࢷ"),
                        l111l1Created_By_Mucky_Duck(u"࠭࡮ࡢ࡯ࡨࠫࢸ"):
                        l111l1Created_By_Mucky_Duck(
                            u"ࠧ࡜ࡄࡠ࡟ࡈࡕࡌࡐࡔࠣࡻ࡭࡯ࡴࡦ࡟ࠨࡷࡠ࠵ࡃࡐࡎࡒࡖࡢࡡࡉ࡞࡝ࡆࡓࡑࡕࡒࠡࡦࡲࡨ࡬࡫ࡲࡣ࡮ࡸࡩࡢࠫࡳ࡜࠱ࡆࡓࡑࡕࡒ࡞࡝࠲ࡍࡢࡡ࠯ࡃ࡟ࠪࢹ"
                        ) % (name, l11llllCreated_By_Mucky_Duck),
                        l111l1Created_By_Mucky_Duck(u"ࠨࡷࡵࡰࠬࢺ"):
                        url,
                        l111l1Created_By_Mucky_Duck(u"ࠩ࡬ࡧࡴࡴࡩ࡮ࡣࡪࡩࠬࢻ"):
                        l1ll1lCreated_By_Mucky_Duck,
                        l111l1Created_By_Mucky_Duck(u"ࠪࡧࡴࡴࡴࡦࡰࡷࠫࢼ"):
                        l111l1Created_By_Mucky_Duck(u"ࠫࡲࡵࡶࡪࡧࡶࠫࢽ")
                    }, {l111l1Created_By_Mucky_Duck(u"ࠬࡹ࡯ࡳࡶࡷ࡭ࡹࡲࡥࠨࢾ"): title},
                    fan_art,
                    is_folder=False,
                    item_count=items)
    try:
        l1ll1llCreated_By_Mucky_Duck = {
            l111l1Created_By_Mucky_Duck(u"࠭ࡩࡤࡱࡱࠫࢿ"):
            l11Created_By_Mucky_Duck +
            l111l1Created_By_Mucky_Duck(u"ࠧ࡯ࡧࡻࡸ࠳ࡶ࡮ࡨࠩࣀ"),
            l111l1Created_By_Mucky_Duck(u"ࠨࡨࡤࡲࡦࡸࡴࠨࣁ"):
            l11Created_By_Mucky_Duck +
            l111l1Created_By_Mucky_Duck(u"ࠩࡰ࠸ࡺ࠴ࡪࡱࡩࠪࣂ")
        }
        l1lllllCreated_By_Mucky_Duck = re.compile(
            l111l1Created_By_Mucky_Duck(
                u"ࠥࡀࡦࠦࡩࡥ࠿ࠪࡶ࡮࡭ࡨࡵࠩࠣ࡬ࡷ࡫ࡦ࠾ࠩࠫ࠲࠯ࡅࠩࠨࡀࠣࡀ࡮ࡳࡧࠡࡵࡵࡧࡂ࠭࡮ࡦࡺࡷࡠ࠳ࡶ࡮ࡨࠩࠣࡥࡱࡺ࠽ࠨ࠰࠭ࡃࠬࠦࡷࡪࡦࡷ࡬ࡂ࠭࠵࠱ࠩࡁࡀ࠴ࡧ࠾ࠣࣃ"
            )).findall(link)[0]
        md.addDir(
            {
                l111l1Created_By_Mucky_Duck(u"ࠫࡲࡵࡤࡦࠩࣄ"):
                l111l1Created_By_Mucky_Duck(u"ࠬ࠹ࠧࣅ"),
                l111l1Created_By_Mucky_Duck(u"࠭࡮ࡢ࡯ࡨࠫࣆ"):
                l111l1Created_By_Mucky_Duck(
                    u"ࠧ࡜ࡋࡠ࡟ࡇࡣ࡛ࡄࡑࡏࡓࡗࠦࡤࡰࡦࡪࡩࡷࡨ࡬ࡶࡧࡠࡋࡴࠦࡔࡰࠢࡑࡩࡽࡺࠠࡑࡣࡪࡩࡃࡄ࠾࡜࠱ࡆࡓࡑࡕࡒ࡞࡝࠲ࡆࡢࡡ࠯ࡊ࡟ࠪࣇ"
                ),
                l111l1Created_By_Mucky_Duck(u"ࠨࡷࡵࡰࠬࣈ"):
                l1lllllCreated_By_Mucky_Duck,
                l111l1Created_By_Mucky_Duck(u"ࠩࡦࡳࡳࡺࡥ࡯ࡶࠪࣉ"):
                content
            },
            fan_art=l1ll1llCreated_By_Mucky_Duck)
    except:
        pass
    try:
        l1lllllCreated_By_Mucky_Duck = re.compile(
            l111l1Created_By_Mucky_Duck(
                u"ࠪࡀࡦࠦࡣ࡭ࡣࡶࡷࡂࠨࡢࡵࡰࡳ࡫ࠥࡨࡴ࡯ࡲࡪ࠱ࡦࡲࡴࠡࡤࡷࡲࡵ࡭࠭ࡧ࡮ࡤࡸࠥࡽࡡࡷࡧࡶ࠱ࡧࡻࡴࡵࡱࡱࠤࡼࡧࡶࡦࡵ࠰ࡩ࡫࡬ࡥࡤࡶࠥࠤ࡭ࡸࡥࡧ࠿ࠥࠬ࠳࠰࠿ࠪࠤࡁࠬ࠳࠰࠿ࠪ࠾࠲ࡥࡃ࠴ࠪࡀࠩ࣊"
            )).findall(link)
        for url, name in l1lllllCreated_By_Mucky_Duck:
            md.addDir(
                {
                    l111l1Created_By_Mucky_Duck(u"ࠫࡲࡵࡤࡦࠩ࣋"):
                    l111l1Created_By_Mucky_Duck(u"ࠬ࠹ࠧ࣌"),
                    l111l1Created_By_Mucky_Duck(u"࠭࡮ࡢ࡯ࡨࠫ࣍"):
                    l111l1Created_By_Mucky_Duck(
                        u"ࠧ࡜ࡋࡠ࡟ࡇࡣ࡛ࡄࡑࡏࡓࡗࠦࡤࡰࡦࡪࡩࡷࡨ࡬ࡶࡧࡠࡔࡦ࡭ࡥࠡࠧࡶࠤࡃࡄ࠾࡜࠱ࡆࡓࡑࡕࡒ࡞࡝࠲ࡆࡢࡡ࠯ࡊ࡟ࠪ࣎"
                    ) % name,
                    l111l1Created_By_Mucky_Duck(u"ࠨࡷࡵࡰ࣏ࠬ"):
                    url,
                    l111l1Created_By_Mucky_Duck(u"ࠩࡦࡳࡳࡺࡥ࡯ࡶ࣐ࠪ"):
                    content
                }, l1ll1llCreated_By_Mucky_Duck)
    except:
        pass
    if content == l111l1Created_By_Mucky_Duck(u"ࠪࡱࡴࡼࡩࡦࡵ࣑ࠪ"):
        setView(l11l111Created_By_Mucky_Duck,
                l111l1Created_By_Mucky_Duck(u"ࠫࡲࡵࡶࡪࡧࡶ࣒ࠫ"),
                l111l1Created_By_Mucky_Duck(u"ࠬࡳ࡯ࡷ࡫ࡨ࠱ࡻ࡯ࡥࡸ࣓ࠩ"))
    elif content == l111l1Created_By_Mucky_Duck(u"࠭ࡴࡷࡵ࡫ࡳࡼࡹࠧࣔ"):
        setView(l11l111Created_By_Mucky_Duck,
                l111l1Created_By_Mucky_Duck(u"ࠧࡵࡸࡶ࡬ࡴࡽࡳࠨࣕ"),
                l111l1Created_By_Mucky_Duck(u"ࠨࡵ࡫ࡳࡼ࠳ࡶࡪࡧࡺࠫࣖ"))
    l11l11lCreated_By_Mucky_Duck.end_of_directory()
Exemplo n.º 11
0
def function2(url, title, modeid, content):
    link = open_url(url).content
    if modeid == '6':
        link = md.regex_get_all(link, title, '<ul class="tabs">')
    strRegex1 = md.regex_get_all(str(link), '"listings">', '</ul>')
    strRegex2 = md.regex_get_all(str(strRegex1), '<li', '</li')
    items = len(strRegex2)
    for a in strRegex2:
        name = md.regex_from_to(a, 'title="', '"').replace("\\'", "'")
        name = MDWS.unescape(name)
        url = md.regex_from_to(a, 'href="', '"')
        if 'javascript:' in url:
            url = md.regex_get_all(a, 'href="', '"', True)[1]
        if 'javascript:' in url:
            url = md.regex_get_all(a, 'href="', '"', True)[2]
        strRegex3 = md.regex_from_to(a, 'src="', '"')
        if not strRegex3:
            strRegex3 = strArtDir + 'mdws.png'
        if strBaseURL not in url:
            url = strBaseURL + url
        if content == 'episodes':
            info = name.split('- Season')
            title = info[0].strip()
            try:
                sep = md.regex_from_to(a, '<br/>', '<br/>')
                episode = sep.split('Episode')[1]
                season = sep.split('Episode')[0]
            except:
                season = info[1].split('Episode')[0]
                episode = info[1].split('Episode')[1].split('-')[0]
            md.remove_punctuation(title)
            md.addDir(
                {
                    'mode':
                    '8',
                    'name':
                    '[B][COLOR white]%s[/COLOR][COLOR yellow][I] - Season %s[/I][/COLOR][/B]'
                    % (title, info[1]),
                    'url':
                    url,
                    'content':
                    content,
                    'title':
                    title,
                    'season':
                    season,
                    'iconimage':
                    strRegex3,
                    'episode':
                    episode
                }, {
                    'sorttitle': title,
                    'season': season,
                    'episode': episode
                },
                fan_art={'icon': strRegex3},
                item_count=items)
        else:
            if modeid == '4':
                infolabels = {}
            else:
                infolabels = {'sorttitle': name}
            md.remove_punctuation(name)
            md.addDir(
                {
                    'mode': '2',
                    'name': '[B][COLOR white]%s[/COLOR][/B]' % name,
                    'url': url,
                    'title': title,
                    'iconimage': strRegex3,
                    'content': content
                },
                infolabels,
                fan_art={'icon': strRegex3},
                item_count=items)
    try:
        rePatternObject = re.compile(
            '<li ><a href="([^"]+)">Next Page</a></li>').findall(link)[0]
        md.addDir(
            {
                'mode': '1',
                'name': '[COLOR yellow][B][I]>>Next Page>>>[/I][/B][/COLOR]',
                'url': rePatternObject,
                'title': title,
                'content': content,
                'mode_id': modeid
            },
            fan_art={'icon': strArtDir + 'mdws.png'})
    except:
        pass
    if content == 'tvshows':
        setView(strAddonID, 'tvshows', 'show-view')
    elif content == 'episodes':
        setView(strAddonID, 'episodes', 'epi-view')
    MDWS.end_of_directory()