Exemple #1
0
def main():
    try:
        html = xbmctools.sifre3()
        name = __settings__.getSetting("Name")
        login = __settings__.getSetting("Username")
        password = __settings__.getSetting("password")
        match = re.compile('<!-- XX-(.*?)-->').findall(html)
        print match
        for url in match:
            link = xbmctools.get_url(url)
            match = re.compile(
                '<a href="(.*?)" title=".*?">\n\t\t\t\t\t\t<img src="/assets/images/cover_front_catalogs/(.*?).jpg"'
            ).findall(link)
            for a, b in match:
                url1 = url.replace('/en/', '')
                url1 = url1 + a
                name = b
                xbmctools.addDir(
                    fileName, '[COLOR beige][B][COLOR blue]>>[/COLOR]' + name +
                    '[/B][/COLOR]', "Recent(url)", url1, "")

    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()
Exemple #2
0
def main():
    try:
        html = xbmctools.sifre3()
        name = __settings__.getSetting("Name")
        login = __settings__.getSetting("Username")
        password = __settings__.getSetting("password")
        match = re.compile("<!-- XX-(.*?)-->").findall(html)
        print match
        for url in match:
            link = xbmctools.get_url(url)
            match = re.compile(
                '<a href="(.*?)" title=".*?">\n\t\t\t\t\t\t<img src="/assets/images/cover_front_catalogs/(.*?).jpg"'
            ).findall(link)
            for a, b in match:
                url1 = url.replace("/en/", "")
                url1 = url1 + a
                name = b
                xbmctools.addDir(
                    fileName, "[COLOR beige][B][COLOR blue]>>[/COLOR]" + name + "[/B][/COLOR]", "Recent(url)", url1, ""
                )

    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()
Exemple #3
0
def pick_source(sources, auto_pick=None):

    from xbmctools import addDir
    print "sources", sources
    for source in sources:
        addDir(source[0], source[1], 0, '', '', 1, link=True)

    return sources

    if auto_pick is None:
        auto_pick = common.get_setting('auto_pick') == 'true'

    if len(sources) == 1:
        return sources[0][1]
    elif len(sources) > 1:
        if auto_pick:
            return sources[0][1]
        else:
            result = xbmcgui.Dialog().select(common.i18n('choose_the_link'), [
                str(source[0]) if source[0] else 'Unknown'
                for source in sources
            ])
            if result == -1:
                raise ResolverError(common.i18n('no_link_selected'))
            else:
                return sources[result][1]
    else:
        raise ResolverError(common.i18n('no_video_link'))
Exemple #4
0
def Yeni(url):
    link = xbmctools.get_url(url)
    soup = BeautifulSoup(link)
    panel = soup.findAll("div", {"class": "orta-ici"}, smartQuotesTo=None)
    panel = panel[0].findAll("div", {"class": "kutu"})
    for i in range(len(panel)):
        url = panel[i].find("a")["href"]
        name = panel[i].find("a")["title"].encode("utf-8", "ignore")
        thumbnail = panel[i].find("img")["src"].encode("utf-8", "ignore")
        xbmctools.addDir(
            fileName,
            "[COLOR beige][B][COLOR blue]>[/COLOR]" + name + "[/B][/COLOR]",
            "dizivideolinks(url,name)",
            url,
            thumbnail,
            thumbnail,
        )
    ####---------------Sonraki sayfa-------------------------------########
    page = re.compile('\'current\'>.*?</.*?="page larger" 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",
        )
Exemple #5
0
def main():

    #-------------------------------------------------#
    try:
        html = xbmctools.sifre2()
        name = __settings__.getSetting("Name")
        login = __settings__.getSetting("Username")
        password = __settings__.getSetting("password")
        match = re.compile('<!--#li2#(.*?)-->').findall(html)
        for web in match:
            web = xbmctools.angel(base64.b64decode(web))
            tr = re.compile(
                '<isim>(.*?)</isim>\n<link>(.*?)</link>\n<resim>(.*?)</resim>'
            ).findall(web)
            for name, url2, Thumbnail in tr:
                if "--" in name:
                    pass
                else:
                    if "ugur" in name:
                        pass
                    else:
                        xbmctools.addDir(
                            fileName,
                            '[COLOR orange][B][COLOR purple]>>[/COLOR]  ' +
                            name + '[/B][/COLOR]', "VideoLinks2(name,url)",
                            url2, Thumbnail, Thumbnail)

        html = xbmctools.sifre5()
        name = __settings__.getSetting("Name")
        login = __settings__.getSetting("Username")
        password = __settings__.getSetting("password")
        match = re.compile('<!--#(.*?)-->').findall(html)
        for web in match:
            web = xbmctools.angel(base64.b64decode(web))
            tr = re.compile(
                '<isim>(.*?)</isim>\n  <link>(.*?)</link>\n  <thumbnail>(.*?)</thumbnail>'
            ).findall(web)
            for name, url, Thumbnail in tr:
                url = url.replace('<![CDATA[', '').replace(']]>', '')
                name = name.replace('<![CDATA[', '').replace(']]>', '')
                Thumbnail = Thumbnail.replace('<![CDATA[',
                                              '').replace(']]>', '')
                xbmctools.addDir(fileName, name, "VideoLinks(name,url)", url,
                                 Thumbnail, Thumbnail)

    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 ayrisdirma(name,url):
        url=url+'7'
        link=xbmctools.get_url(url)
        name="Secenek - 1"
        url1=url.replace('/7','/')
        xbmctools.addDir('[COLOR yellow][B]'+name+'[/B][/COLOR]',url1,44,"")
        match=re.compile('href="(.*?)"><span>(.*?)</span>').findall(link)
        for url,name in match:
                addDir('[COLOR yellow][B]'+name+'[/B][/COLOR]',url,44,'')
Exemple #7
0
def Recent(url1):
        link=xbmctools.get_url(url1)
        match=re.compile('<a href="(.*?)" title=".*?">\n\t\t\t<img src="(.*?)" alt="(.*?)">').findall(link)
        for url,thumbnail,name in match:
                thumbnail=z+thumbnail                
                url=z+url
                xbmctools.addDir(fileName,'[COLOR beige][B][COLOR blue]>>[/COLOR]'+name+'[/B][/COLOR]', "ayrisdirma(url)",url,thumbnail)
        page=re.compile('<span>.*?</span></li>\n<li><a href="(.*?)">(.*?)</a>').findall(link)
        for url,name in page:
                url=url1+url
                xbmctools.addDir(fileName,'[COLOR blue][B]NEXT Page >>[/B][/COLOR]'+ '[COLOR red][B]'+name+'[/B][/COLOR]', "Recent(url)",url,"special://home/addons/plugin.video.magicTR/resources/images/sonrakisayfa.png")
Exemple #8
0
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)
Exemple #9
0
def main():
    try:
        html = xbmctools.sifre3()
        name = __settings__.getSetting("Name")
        login = __settings__.getSetting("Username")
        password = __settings__.getSetting("password")
        match = re.compile("<!-- D2(.*?)-->").findall(html)
        for web in match:
            web = xbmctools.angel(base64.b64decode(web))
            tr = re.compile("<link>(.*?)</link>").findall(web)
            for url in tr:
                xbmctools.addDir(
                    fileName,
                    "[COLOR red][B]>>>>>>>[/B][/COLOR] [COLOR orange][B]Arama/Search[/B][/COLOR]",
                    "Arama()",
                    "",
                    "",
                    "special://home/addons/plugin.video.magicTR/fanart.jpg",
                )
                xbmctools.addDir(
                    fileName,
                    "[COLOR blue][B]>>[/B][/COLOR] [COLOR yellow][B]Enson Eklenen Diziler [/B][/COLOR]",
                    "Yeni(url)",
                    url,
                    "special://home/addons/plugin.video.Test/resources/images/yeni.png",
                    "special://home/addons/plugin.video.magicTR/fanart.jpg",
                )
                # xbmctools.addDir(fileName,'[COLOR blue][B]>>[/B][/COLOR] [COLOR lightblue][B]Yerli Diziler Hepsi[/B][/COLOR]', "Kategoriler()",url,"special://home/addons/plugin.video.Test/resources/images/yeni.png",'special://home/addons/plugin.video.magicTR/fanart.jpg' )
                xbmctools.addDir(
                    fileName,
                    "[COLOR blue][B]>>[/B][/COLOR] [COLOR red][B]Yeni Yerli Diziler [/B][/COLOR]",
                    "YeniDiziler()",
                    url,
                    "special://home/addons/plugin.video.Test/resources/images/yeni.png",
                    "special://home/addons/plugin.video.magicTR/fanart.jpg",
                )
                # xbmctools.addDir(fileName,'[COLOR blue][B]>>[/B][/COLOR] [COLOR orange][B]Eski Yerli Diziler [/B][/COLOR]', "EskiDiziler()",url,"special://home/addons/plugin.video.Test/resources/images/yeni.png",'special://home/addons/plugin.video.magicTR/fanart.jpg' )
                xbmctools.addDir(
                    fileName,
                    "[COLOR blue][B]>>[/B][/COLOR] [COLOR pink][B]Yarisma Programlari [/B][/COLOR]",
                    "Yarisma()",
                    url,
                    "special://home/addons/plugin.video.Test/resources/images/yeni.png",
                    "special://home/addons/plugin.video.magicTR/fanart.jpg",
                )

    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()
Exemple #10
0
def main():
    #############
    klasorler=os.walk(channels).next()[1]
    for klasor in klasorler:
        fileName=klasor.replace(" ","")
        name='[COLOR lightgreen][B]'+klasor+'[/B][/COLOR]'
        thumbnail= os.path.join(IMAGES_PATH,klasor+".png")
        url=xbmc.translatePath(os.path.join(channels, klasor))
        xbmctools.addDir("xbmctools", name,"listing(IMAGES_PATH,url)", url,thumbnail)
    xbmc.executebuiltin("Container.SetViewMode(500)")
##    threadName=[]
##    delay=[]
##    mem.baslamak(threadName, delay)
##    mem.playlist3()
    versiyonkontrol()
Exemple #11
0
def Yeni(url):
        link=xbmctools.get_url(url)
        soup = BeautifulSoup(link)
        panel = soup.findAll("div", {"class": "leftC"},smartQuotesTo=None)
        panel = panel[0].findAll("div", {"class": "moviefilm"})
        for i in range (len (panel)):
                url=panel[i].find('a')['href']
                name=panel[i].find('img')['alt'].encode('utf-8', 'ignore')
                thumbnail=panel[i].find('img')['src'].encode('utf-8', 'ignore')
                xbmctools.addDir(fileName,'[COLOR beige][B][COLOR blue]>[/COLOR]'+name+'[/B][/COLOR]',"dizivideolinks(url,name)",url,thumbnail,thumbnail)
         ####---------------Sonraki sayfa-------------------------------########
        page=re.compile('<span class=\'current\'>.*?</span><a class="page larger" 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")
Exemple #12
0
def main():
    #############
    klasorler = os.walk(channels).next()[1]
    for klasor in klasorler:
        fileName = klasor.replace(" ", "")
        name = '[COLOR lightgreen][B]' + klasor + '[/B][/COLOR]'
        thumbnail = os.path.join(IMAGES_PATH, klasor + ".png")
        url = xbmc.translatePath(os.path.join(channels, klasor))
        xbmctools.addDir("xbmctools", name, "listing(IMAGES_PATH,url)", url,
                         thumbnail)
    xbmc.executebuiltin("Container.SetViewMode(500)")
    ##    threadName=[]
    ##    delay=[]
    ##    mem.baslamak(threadName, delay)
    ##    mem.playlist3()
    versiyonkontrol()
Exemple #13
0
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")
Exemple #14
0
def get_video_url(url):

    data = readnet(url)
    regx = '''file:"(.+?)"}'''  #,{file:"http://s12.vidshare.tv/pdomaj6nlsm4f4kmlebsh2tsh2vb4c7qykuv3fadqktvuwjirpegrcdrlwoq/v.mp4",label:"360"}],'''
    regx2 = '''file:"(.+?)",label:"(.+?)"'''
    try:
        href = re.findall(regx, data, re.M | re.I)[0]
    except:
        trace_error()
    print "href2", href
    #get_servericon(server)
    addDir('m3u8', href, 9, "img/server.png", '', 1, link=True)
    match2 = re.findall(regx2, data.split("m3u8")[1], re.M | re.I)
    for href in match2:
        print "href2", href
        addDir(href[1], href[0], 9, "img/server.png", '', 1, link=True)

    return href[1], href[0]
Exemple #15
0
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)
Exemple #16
0
def main():
        
#-------------------------------------------------#
        try:
                html = xbmctools.sifre2()
                name=__settings__.getSetting("Name")
                login=__settings__.getSetting("Username")
                password=__settings__.getSetting("password")
                match = re.compile('<!--#li2#(.*?)-->').findall(html)
                for web in match:
                        web=xbmctools.angel(base64.b64decode(web))
                        tr=re.compile('<isim>(.*?)</isim>\n<link>(.*?)</link>\n<resim>(.*?)</resim>').findall(web)
                        for name,url2,Thumbnail in tr:
                                if "--" in name:
                                        pass
                                else:
                                        if "ugur" in name:
                                                pass
                                        else:
                                                xbmctools.addDir(fileName,'[COLOR orange][B][COLOR purple]>>[/COLOR]  '+name+'[/B][/COLOR]',"VideoLinks2(name,url)",url2,Thumbnail,Thumbnail)  
                

                html = xbmctools.sifre5()
                name=__settings__.getSetting("Name")
                login=__settings__.getSetting("Username")
                password=__settings__.getSetting("password")           
                match = re.compile('<!--#(.*?)-->').findall(html)
                for web in match:
                        web=xbmctools.angel(base64.b64decode(web))
                        tr=re.compile('<isim>(.*?)</isim>\n  <link>(.*?)</link>\n  <thumbnail>(.*?)</thumbnail>').findall(web)
                        for name,url,Thumbnail in tr:
                                url=url.replace('<![CDATA[','').replace(']]>','')
                                name=name.replace('<![CDATA[','').replace(']]>','')
                                Thumbnail=Thumbnail.replace('<![CDATA[','').replace(']]>','')
                                xbmctools.addDir(fileName,name,"VideoLinks(name,url)",url,Thumbnail,Thumbnail)

        
        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()
Exemple #17
0
def Recent(url1):
    link = xbmctools.get_url(url1)
    match = re.compile(
        '<a href="(.*?)" title=".*?">\n\t\t\t<img src="(.*?)" alt="(.*?)">'
    ).findall(link)
    for url, thumbnail, name in match:
        thumbnail = z + thumbnail
        url = z + url
        xbmctools.addDir(
            fileName,
            '[COLOR beige][B][COLOR blue]>>[/COLOR]' + name + '[/B][/COLOR]',
            "ayrisdirma(url)", url, thumbnail)
    page = re.compile(
        '<span>.*?</span></li>\n<li><a href="(.*?)">(.*?)</a>').findall(link)
    for url, name in page:
        url = url1 + url
        xbmctools.addDir(
            fileName, '[COLOR blue][B]NEXT Page >>[/B][/COLOR]' +
            '[COLOR red][B]' + name + '[/B][/COLOR]', "Recent(url)", url,
            "special://home/addons/plugin.video.magicTR/resources/images/sonrakisayfa.png"
        )
Exemple #18
0
def ok_ru(url):
        fileName ="cozuculer"


        sources = []

        if(re.search(r'ok.ru', url)):
            
               # try:
            id = re.search('\d+', url).group(0)
            jsonUrl = 'http://ok.ru/dk?cmd=videoPlayerMetadata&mid=' + id
            jsonSource = json.loads(http_req(jsonUrl))
            
            for source in jsonSource['videos']:
                    name = '%s %s' % ('', source['name'])
                    link = '%s|User-Agent=%s&Accept=%s&Referer=%s' % (source['url'], USER_AGENT, ACCEPT, urllib.quote_plus(url))
                    #item = {'name': name, 'url': link}
                    #sources.append(item)
                    url = link
                    print url
                    xbmctools.addDir(fileName,'[COLOR beige][B][COLOR blue]>>[/COLOR]'+name+'[/B][/COLOR]', "yeni4(name,url)",url,"")
Exemple #19
0
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()
Exemple #20
0
def ok_ru(url):
    fileName = "cozuculer"

    sources = []

    if (re.search(r'ok.ru', url)):

        # try:
        id = re.search('\d+', url).group(0)
        jsonUrl = 'http://ok.ru/dk?cmd=videoPlayerMetadata&mid=' + id
        jsonSource = json.loads(http_req(jsonUrl))

        for source in jsonSource['videos']:
            name = '%s %s' % ('', source['name'])
            link = '%s|User-Agent=%s&Accept=%s&Referer=%s' % (
                source['url'], USER_AGENT, ACCEPT, urllib.quote_plus(url))
            #item = {'name': name, 'url': link}
            #sources.append(item)
            url = link
            print url
            xbmctools.addDir(
                fileName, '[COLOR beige][B][COLOR blue]>>[/COLOR]' + name +
                '[/B][/COLOR]', "yeni4(name,url)", url, "")
Exemple #21
0
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,
                    )
Exemple #22
0
def Yeni(url):
    link = xbmctools.get_url(url)
    soup = BeautifulSoup(link)
    panel = soup.findAll("div", {"class": "leftC"}, smartQuotesTo=None)
    panel = panel[0].findAll("div", {"class": "moviefilm"})
    for i in range(len(panel)):
        url = panel[i].find('a')['href']
        name = panel[i].find('img')['alt'].encode('utf-8', 'ignore')
        thumbnail = panel[i].find('img')['src'].encode('utf-8', 'ignore')
        xbmctools.addDir(
            fileName,
            '[COLOR beige][B][COLOR blue]>[/COLOR]' + name + '[/B][/COLOR]',
            "dizivideolinks(url,name)", url, thumbnail, thumbnail)
    ####---------------Sonraki sayfa-------------------------------########
    page = re.compile(
        '<span class=\'current\'>.*?</span><a class="page larger" 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"
        )
Exemple #23
0
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"
        )
Exemple #24
0
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()
Exemple #25
0
def ayrisdirma(url):
    link = xbmctools.get_url(url)
    match = re.compile('var films\= "http:\/\/(.*?).flv"').findall(link)
    for url in match:
        url = "http://" + url + ".flv"
        name = " Now"
        xbmctools.addDir("[COLOR red]Watch " + name + "[/COLOR]", url, 44, t)
    link = xbmctools.get_url(url)
    match1 = re.compile("http:\/\/(.*?)part_(.*?).mp4").findall(link)
    for url, name in match1:
        url = "http://" + url + "part_" + name + ".mp4"
        xbmctools.addDir(fileName, "[COLOR red]Part " + name + "[/COLOR]", "VideoLinks(url)", url, "")
    link = xbmctools.get_url(url)
    match2 = re.compile("http:\/\/(.*?).mp4").findall(link)
    for url in match2:
        url = "http://" + url + ".mp4"
        name = " Now"
        xbmctools.addDir(fileName, "[COLOR red]Watch" + name + "[/COLOR]", "VideoLinks(name,url)", url, "")
Exemple #26
0
def ayrisdirma(url):
        link=xbmctools.get_url(url)     
        match=re.compile('var films\= "http:\/\/(.*?).flv"').findall(link)
        for url in match:
                url='http://'+url+'.flv'
                name=' Now'
                xbmctools.addDir('[COLOR red]Watch '+name+'[/COLOR]',url,44,t)
        link=xbmctools.get_url(url)
        match1=re.compile("http:\/\/(.*?)part_(.*?).mp4").findall(link)
        for url,name in match1:
                url='http://'+url+'part_'+name+'.mp4'
                xbmctools.addDir(fileName,'[COLOR red]Part '+name+'[/COLOR]', "VideoLinks(url)",url,"")
        link=xbmctools.get_url(url)
        match2=re.compile("http:\/\/(.*?).mp4").findall(link)
        for url in match2:
                url='http://'+url+'.mp4'
                name=' Now'
                xbmctools.addDir(fileName,'[COLOR red]Watch'+name+'[/COLOR]',"VideoLinks(name,url)",url,"")               
Exemple #27
0
def ayrisdirma(url):
    link = xbmctools.get_url(url)
    match = re.compile('var films\= "http:\/\/(.*?).flv"').findall(link)
    for url in match:
        url = 'http://' + url + '.flv'
        name = ' Now'
        xbmctools.addDir('[COLOR red]Watch ' + name + '[/COLOR]', url, 44, t)
    link = xbmctools.get_url(url)
    match1 = re.compile("http:\/\/(.*?)part_(.*?).mp4").findall(link)
    for url, name in match1:
        url = 'http://' + url + 'part_' + name + '.mp4'
        xbmctools.addDir(fileName, '[COLOR red]Part ' + name + '[/COLOR]',
                         "VideoLinks(url)", url, "")
    link = xbmctools.get_url(url)
    match2 = re.compile("http:\/\/(.*?).mp4").findall(link)
    for url in match2:
        url = 'http://' + url + '.mp4'
        name = ' Now'
        xbmctools.addDir(fileName, '[COLOR red]Watch' + name + '[/COLOR]',
                         "VideoLinks(name,url)", url, "")
Exemple #28
0
def main():
    try:
        html = xbmctools.sifre()
        name = __settings__.getSetting("Name")
        login = __settings__.getSetting("Username")
        password = __settings__.getSetting("password")
        match = re.compile('<!-- D1(.*?)-->').findall(html)
        for web in match:
            web = xbmctools.angel(base64.b64decode(web))
            tr = re.compile('<link>(.*?)</link>').findall(web)
            for url in tr:
                xbmctools.addDir(
                    fileName,
                    '[COLOR red][B]>>>[/B][/COLOR] [COLOR orange][B]Arama/Search[/B][/COLOR]',
                    "Arama()", "", "",
                    'special://home/addons/plugin.video.magicTR/fanart.jpg')
                xbmctools.addDir(
                    fileName,
                    '[COLOR blue][B]>>[/B][/COLOR] [COLOR yellow][B]Enson Eklenen Diziler [/B][/COLOR]',
                    "Yeni(url)", url,
                    "special://home/addons/plugin.video.Test/resources/images/yeni.png",
                    'special://home/addons/plugin.video.magicTR/fanart.jpg')
                xbmctools.addDir(
                    fileName,
                    '[COLOR blue][B]>>[/B][/COLOR] [COLOR lightblue][B]Yerli Diziler Hepsi[/B][/COLOR]',
                    "Kategoriler()", url,
                    "special://home/addons/plugin.video.Test/resources/images/yeni.png",
                    'special://home/addons/plugin.video.magicTR/fanart.jpg')
                xbmctools.addDir(
                    fileName,
                    '[COLOR blue][B]>>[/B][/COLOR] [COLOR red][B]Yeni Yerli Diziler [/B][/COLOR]',
                    "YeniDiziler()", url,
                    "special://home/addons/plugin.video.Test/resources/images/yeni.png",
                    'special://home/addons/plugin.video.magicTR/fanart.jpg')
                xbmctools.addDir(
                    fileName,
                    '[COLOR blue][B]>>[/B][/COLOR] [COLOR orange][B]Eski Yerli Diziler [/B][/COLOR]',
                    "EskiDiziler()", url,
                    "special://home/addons/plugin.video.Test/resources/images/yeni.png",
                    'special://home/addons/plugin.video.magicTR/fanart.jpg')
                xbmctools.addDir(
                    fileName,
                    '[COLOR blue][B]>>[/B][/COLOR] [COLOR pink][B]Yarisma Programlari [/B][/COLOR]',
                    "Yarisma()", url,
                    "special://home/addons/plugin.video.Test/resources/images/yeni.png",
                    'special://home/addons/plugin.video.magicTR/fanart.jpg')

    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()
Exemple #29
0
# -*- coding: utf-8 -*-
Exemple #30
0
# -*- coding: utf-8 -*-