def main(): try: html = xbmctools.sifre4() name=__settings__.getSetting("Name") login=__settings__.getSetting("Username") password=__settings__.getSetting("password") match = re.compile('<!-- Site-(.*?)-->').findall(html) for url in match: xbmctools.addDir(fileName,'[COLOR red][B]>>>>>>>>>>>>>>>>>[/B][/COLOR][COLOR yellow][B] Film ARA - SEARCH[/B][/COLOR][COLOR red][B] <<<<<<<<<<<<<<<<<[/B][/COLOR]', "Search()", "","http://fs2.directupload.net/images/150212/sqoaaulb.jpg","http://fs1.directupload.net/images/150213/htof3hyc.jpg") xbmctools.addDir(fileName,'[COLOR blue][B]>>[/B][/COLOR] [COLOR yellow][B]Yeni Eklenen Filmler [/B][/COLOR]', "Yeni(url)",url,"http://fs1.directupload.net/images/150212/w6az9wna.jpg","http://fs1.directupload.net/images/150213/htof3hyc.jpg") if name in html: match = re.compile('<!--SK-(.*?)-->').findall(html) if match: for web in match: web=xbmctools.angel(base64.b64decode(str(web))) tr=re.compile('<isim>(.*?)</isim><link>(.*?)</link><resim>(.*?)</resim><thumb>(.*?)</thumb>').findall(web) for name,url,thumbnail,thumb in tr: name=fix.decode_fix(name) xbmctools.addDir(fileName,'[COLOR blue][B]>>[/B][/COLOR] [COLOR lightblue][B]'+name+'[/B][/COLOR]', "Yeni(url)",url,thumbnail,thumb) except: showMessage("[COLOR blue][B]MagicTR[/B][/COLOR]","[COLOR blue][B]IP Adresiniz Kitlendi[/B][/COLOR]","[COLOR red][B]Lutfen Musteri Hizmetlerine Basvurun!! [email protected][/B][/COLOR]") dialog = xbmcgui.DialogProgress() dialog1 = xbmcgui.Dialog() dialog1.ok('[COLOR red][B]Hesabiniz Kitlendi[/B][/COLOR]','[COLOR yellow][B] Lutfen Musteri Hizmetlerine Basvurun!! [email protected][/B][/COLOR]') sys.exit()
def get_url(url): req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') response = urllib2.urlopen(req) link=response.read() link=fix.decode_fix(link) response.close() return link
def get_url(url): req = urllib2.Request(url) req.add_header( 'User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3' ) response = urllib2.urlopen(req) link = response.read() link = fix.decode_fix(link) response.close() return link
def YeniDiziler(): html = xbmctools.sifre() name=__settings__.getSetting("Name") login=__settings__.getSetting("Username") password=__settings__.getSetting("password") if name in html: match = re.compile('<!--YeniDizi(.*?)-->').findall(html) if match: for web in match: web=xbmctools.angel(base64.b64decode(str(web))) tr=re.compile('<link>(.*?)</link><isim>(.*?)</isim><resim>(.*?)</resim>').findall(web) for url,name,thumbnail in tr: name=fix.decode_fix(name) xbmctools.addDir(fileName,'[COLOR beige][B][COLOR orange]>[/COLOR]'+name+'[/B][/COLOR]', "Yeni(url)",url,thumbnail,thumbnail)
def main(): try: html = xbmctools.sifre4() name = __settings__.getSetting("Name") login = __settings__.getSetting("Username") password = __settings__.getSetting("password") match = re.compile('<!-- Site-(.*?)-->').findall(html) for url in match: xbmctools.addDir( fileName, '[COLOR red][B]>>>>>>>>>>>>>>>>>[/B][/COLOR][COLOR yellow][B] Film ARA - SEARCH[/B][/COLOR][COLOR red][B] <<<<<<<<<<<<<<<<<[/B][/COLOR]', "Search()", "", "http://fs2.directupload.net/images/150212/sqoaaulb.jpg", "http://fs1.directupload.net/images/150213/htof3hyc.jpg") xbmctools.addDir( fileName, '[COLOR blue][B]>>[/B][/COLOR] [COLOR yellow][B]Yeni Eklenen Filmler [/B][/COLOR]', "Yeni(url)", url, "http://fs1.directupload.net/images/150212/w6az9wna.jpg", "http://fs1.directupload.net/images/150213/htof3hyc.jpg") if name in html: match = re.compile('<!--SK-(.*?)-->').findall(html) if match: for web in match: web = xbmctools.angel(base64.b64decode(str(web))) tr = re.compile( '<isim>(.*?)</isim><link>(.*?)</link><resim>(.*?)</resim><thumb>(.*?)</thumb>' ).findall(web) for name, url, thumbnail, thumb in tr: name = fix.decode_fix(name) xbmctools.addDir( fileName, '[COLOR blue][B]>>[/B][/COLOR] [COLOR lightblue][B]' + name + '[/B][/COLOR]', "Yeni(url)", url, thumbnail, thumb) except: showMessage( "[COLOR blue][B]MagicTR[/B][/COLOR]", "[COLOR blue][B]IP Adresiniz Kitlendi[/B][/COLOR]", "[COLOR red][B]Lutfen Musteri Hizmetlerine Basvurun!! [email protected][/B][/COLOR]" ) dialog = xbmcgui.DialogProgress() dialog1 = xbmcgui.Dialog() dialog1.ok( '[COLOR red][B]Hesabiniz Kitlendi[/B][/COLOR]', '[COLOR yellow][B] Lutfen Musteri Hizmetlerine Basvurun!! [email protected][/B][/COLOR]' ) sys.exit()
def Yeni(url): link=xbmctools.get_url(url) soup = BeautifulSoup(link) panel = soup.findAll("div", {"class": "three-column"}) liste=BeautifulSoup(str(panel)) for li in liste.findAll('figure'): a=li.find('a') img=li.find('img') url= a['href'] name=a['title'].encode('utf-8', 'ignore') name=fix.decode_fix(name) thumbnail=img['src'].encode('utf-8', 'ignore') xbmctools.addDir(fileName,'[COLOR beige][B]'+name+'[/B][/COLOR]', "ayrisdirma(url)",url,thumbnail,thumbnail) page=re.compile('page-numbers current\'>.*?</span>\n<a class=\'page-numbers\' href=\'(.*?)\'>(.*?)</a>').findall(link) for url,name in page: xbmctools.addDir(fileName,'[COLOR blue][B]SAYFA >>[/B][/COLOR]'+'[COLOR red][B]'+name+'[/B][/COLOR]', "Yeni(url)",url,"special://home/addons/plugin.video.magicTR/resources/images/sonrakisayfa.png")
def Yarisma(): html = xbmctools.sifre() name = __settings__.getSetting("Name") login = __settings__.getSetting("Username") password = __settings__.getSetting("password") if name in html: match = re.compile('<!--Yarisma(.*?)-->').findall(html) if match: for web in match: web = xbmctools.angel(base64.b64decode(str(web))) tr = re.compile( '<link>(.*?)</link><isim>(.*?)</isim><resim>(.*?)</resim>' ).findall(web) for url, name, thumbnail in tr: name = fix.decode_fix(name) xbmctools.addDir( fileName, '[COLOR beige][B][COLOR orange]>[/COLOR]' + name + '[/B][/COLOR]', "Yeni(url)", url, thumbnail, thumbnail)
def Yarisma(): html = xbmctools.sifre3() name = __settings__.getSetting("Name") login = __settings__.getSetting("Username") password = __settings__.getSetting("password") if name in html: match = re.compile("<!--Yarisma(.*?)-->").findall(html) if match: for web in match: web = xbmctools.angel(base64.b64decode(str(web))) tr = re.compile("<link>(.*?)</link><isim>(.*?)</isim><resim>(.*?)</resim><thumb>(.*?)</thumb>").findall( web ) for url, name, thumbnail, thumb in tr: name = fix.decode_fix(name) xbmctools.addDir( fileName, "[COLOR beige][B][COLOR orange]>[/COLOR]" + name + "[/B][/COLOR]", "Yeni(url)", url, thumbnail, thumb, )
def Yeni(url): link = xbmctools.get_url(url) soup = BeautifulSoup(link) panel = soup.findAll("div", {"class": "three-column"}) liste = BeautifulSoup(str(panel)) for li in liste.findAll('figure'): a = li.find('a') img = li.find('img') url = a['href'] name = a['title'].encode('utf-8', 'ignore') name = fix.decode_fix(name) thumbnail = img['src'].encode('utf-8', 'ignore') xbmctools.addDir(fileName, '[COLOR beige][B]' + name + '[/B][/COLOR]', "ayrisdirma(url)", url, thumbnail, thumbnail) page = re.compile( 'page-numbers current\'>.*?</span>\n<a class=\'page-numbers\' href=\'(.*?)\'>(.*?)</a>' ).findall(link) for url, name in page: xbmctools.addDir( fileName, '[COLOR blue][B]SAYFA >>[/B][/COLOR]' + '[COLOR red][B]' + name + '[/B][/COLOR]', "Yeni(url)", url, "special://home/addons/plugin.video.magicTR/resources/images/sonrakisayfa.png" )