示例#1
0
文件: cozucu.py 项目: bialagary/mw
def stagevu_player(code):
    link=araclar.get_url(url)
    sv1 = re.compile('src="(.+?)" border="0">').findall(link)
    link=araclar.get_url(sv1[0])
    sv3 = re.compile('src="(.+?)" border="0"').findall(link)
    link=araclar.get_url(sv3[0])
    StageVu=re.compile('<param name="src" value="(.+?)" />').findall(link)
    print "stagevu",StageVu
    return StageVu[0]
示例#2
0
文件: cozucu.py 项目: bialagary/mw
def stream2k_Player(code):
    value=''
    link=araclar.get_url(code)
    match=re.compile('<iframe.*?src="(.*?)"><\/iframe><BR><\/div>\W+<div id="underplayer">').findall(link)
    link=araclar.get_url(match[0])
    match1=re.compile("file: .(.*)'").findall(link)
    for url in match1:
        value=url
    return value
示例#3
0
文件: cozucu.py 项目: noba3/KoTos
def stagevu_player(code):
    xbmc.executebuiltin('Notification("Dream Clup",STAGEVU Deneniyor.)')
    link=araclar.get_url(url)
    sv1 = re.compile('src="(.+?)" border="0">').findall(link)
    link=araclar.get_url(sv1[0])
    sv3 = re.compile('src="(.+?)" border="0"').findall(link)
    link=araclar.get_url(sv3[0])
    StageVu=re.compile('<param name="src" value="(.+?)" />').findall(link)
    print "stagevu",StageVu
    return StageVu[0]
示例#4
0
文件: cozucu.py 项目: noba3/KoTos
def stream2k_Player(code):
    value=''
    xbmc.executebuiltin('Notification("Dream Clup",STREAM2K Deneniyor.)')
    link=araclar.get_url(code)
    match=re.compile('<iframe.*?src="(.*?)"><\/iframe><BR><\/div>\W+<div id="underplayer">').findall(link)
    link=araclar.get_url(match[0])
    match1=re.compile("file: .(.*)'").findall(link)
    for url in match1:
        value=url
    return value
示例#5
0
def stagevu_player(code):
    xbmc.executebuiltin('Notification("Dream Clup",STAGEVU Deneniyor.)')
    link = araclar.get_url(url)
    sv1 = re.compile('src="(.+?)" border="0">').findall(link)
    link = araclar.get_url(sv1[0])
    sv3 = re.compile('src="(.+?)" border="0"').findall(link)
    link = araclar.get_url(sv3[0])
    StageVu = re.compile('<param name="src" value="(.+?)" />').findall(link)
    print "stagevu", StageVu
    return StageVu[0]
示例#6
0
def stream2k_Player(code):
    value = ''
    xbmc.executebuiltin('Notification("Dream Clup",STREAM2K Deneniyor.)')
    link = araclar.get_url(code)
    match = re.compile(
        '<iframe.*?src="(.*?)"><\/iframe><BR><\/div>\W+<div id="underplayer">'
    ).findall(link)
    link = araclar.get_url(match[0])
    match1 = re.compile("file: .(.*)'").findall(link)
    for url in match1:
        value = url
    return value
示例#7
0
文件: cozucu.py 项目: bialagary/mw
def Yesload_Player(code):
    value=''
    link=araclar.get_url(code)
    yesloadurlbul1=re.compile('<a target="_blank" href="http://yesload.net/(.*?)">').findall(link)
    for x in yesloadurlbul1:
        code='http://yesload.net/player_api/info?token='+x
    link=araclar.get_url(code)
    yesloadurlbul2=re.compile('premium.token=(.*?)"').findall(link)
    for x in yesloadurlbul2:
        code='http://yesload.net/player_api/info?token='+x
    link=araclar.get_url(code)
    yesloadplayer=re.compile('url=(.*?).flv&').findall(link)
    for url in yesloadplayer:
        value=url
    return value
示例#8
0
文件: cozucu.py 项目: bialagary/mw
def Putlocker_Player(url):
    xbmc.executebuiltin('Notification("Media Center",PUTLOCKER Deneniyor.)')
    link=araclar.get_url(url)
    match=re.compile('<input type="hidden" value="(.*?)" name="(.*?)">').findall(link)
    print "ilk match",match
    for a,b in match:
        bilgiler=urllib.urlencode({b : a,'confirm': 'Close Ad and Watch as Free User'})
        adres=urllib.urlopen(url,bilgiler)
        #Gelen bilgiyi okuyalim
        adres=adres.read()
        #Gelen bilginin icinde URL adresini alalim
        adres=re.compile('playlist: \'(.*?)\'').findall(adres)
        for son_url in adres:
            url='http://www.putlocker.com'+son_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=link.replace('amp;',"").replace('\xd6',"O").replace('\xfc',"u").replace('\xdd',"I").replace('\xfd',"i").replace('\xe7',"c").replace('\xde',"s").replace('\xfe',"s").replace('\xc7',"c").replace('\xf0',"g").replace('#038;',"")
            response.close()
            match=re.compile('content url="(.*?)"').findall(link)
            print "putlocker son",match
            del match[0]#burasi onemli kalmali ok
            for url in match:
                return url
示例#9
0
文件: cozucu.py 项目: bialagary/mw
def Flashx_Player(url):
     link=araclar.get_url(url)
     print url
     playerbul=re.compile('href="http://flashx.tv/video\/(.*?)\/.*?">').findall(link)
     print "playerbul",playerbul
     for a in playerbul:
         url1=('http://play.flashx.tv/nuevo/player/cst.php?hash='+a)
         url=url1
         
         link=araclar.get_url(url)
         match=re.compile('<file>(.*?).flv</file>').findall(link)
         print "playerbul2",match
         for a in match:
             url=a+'.flv'
             print "playerbul3",url
             return url
示例#10
0
文件: cozucu.py 项目: noba3/KoTos
def Yesload_Player(code):
    value=''
    xbmc.executebuiltin('Notification("Dream Clup",YESLOAD Deneniyor.)')
    link=araclar.get_url(code)
    yesloadurlbul1=re.compile('<a target="_blank" href="http://yesload.net/(.*?)">').findall(link)
    for x in yesloadurlbul1:
        code='http://yesload.net/player_api/info?token='+x
    link=araclar.get_url(code)
    yesloadurlbul2=re.compile('premium.token=(.*?)"').findall(link)
    for x in yesloadurlbul2:
        code='http://yesload.net/player_api/info?token='+x
    link=araclar.get_url(code)
    yesloadplayer=re.compile('url=(.*?).flv&').findall(link)
    for url in yesloadplayer:
        value=url
    return value
示例#11
0
def xml_scanner(videoTitle, url):
    value = []
    xmlScan = araclar.get_url(url)
    dizihd = re.compile('git=(.*?)"').findall(xmlScan)
    face_1 = re.compile('http://dizihd.com/dizihdd.php(.+?)"').findall(
        xmlScan)  #xml ici face link
    youtube_1 = re.compile('v=(.*?)"').findall(xmlScan)  #xml içi youtube link
    dizimag = re.compile('url="(.*?)"').findall(xmlScan)  #xml ici dizimag
    music = re.compile('<file>(.*?)</file>').findall(xmlScan)
    if len(youtube_1) > 0:
        for i, url in enumerate(youtube_1):
            Url = 'plugin://plugin.video.youtube/?action=play_video&videoid=' + str(
                youtube_1[0])
            value.append(Url)

    if len(face_1) > 0:
        for i, url in enumerate(face_1):
            Url = 'http://dizihd.com/dizihdd.php' + str(url)
            value.append(Url)

    if len(dizimag) > 0:
        for i, url in enumerate(dizimag):
            value.append(url)

    if len(music) > 0:
        for i, url in enumerate(music):
            value.append(url)

    print 'XML DONUS DEGERI', value
    return value

    xbmcplugin.endOfDirectory(handle=int(sys.argv[1]), succeeded=True)
示例#12
0
文件: cozucu.py 项目: noba3/KoTos
def Sockshare_Player(url):
##    safe='aHR0cDovL3hibWN0ci50di8='
##    link=araclar.get_url(base64.b64decode(safe))
##    match1=re.compile('besir>>(.*?)<<besir').findall(link)
##    for kkk in match1:
##            print kkk    
    value=''
    xbmc.executebuiltin('Notification("Dream Clup",SOCKSHARE Deneniyor.)')
    link=araclar.get_url(url)
    match=re.compile('<input type="hidden" value="(.*?)" name="(.*?)">').findall(link)
    print "ilk match",match
    for a,b in match:
        bilgiler=urllib.urlencode({b : a,'confirm': 'Close Ad and Watch as Free User'})
        adres=urllib.urlopen(url,bilgiler)
        #Gelen bilgiyi okuyalim
        adres=adres.read()
        #Gelen bilginin icinde URL adresini alalim
        adres=re.compile('playlist: \'(.*?)\'').findall(adres)
        for son_url in adres:
            url='http://www.sockshare.com'+son_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=link.replace('amp;',"").replace('\xd6',"O").replace('\xfc',"u").replace('\xdd',"I").replace('\xfd',"i").replace('\xe7',"c").replace('\xde',"s").replace('\xfe',"s").replace('\xc7',"c").replace('\xf0',"g").replace('#038;',"")
            response.close()
            match=re.compile('content url="(.*?)"').findall(link)
            print "sockshare son",match
            if len(match) >1:
                del match[0]#burasi onemli kalmali ok
            for value in match:
                return value
            
    if not value:
        return false
示例#13
0
文件: cozucu.py 项目: noba3/KoTos
def xml_scanner(videoTitle,url):
        value=[]
        xmlScan=araclar.get_url(url)
        dizihd=re.compile('git=(.*?)"').findall(xmlScan)
        face_1=re.compile('http://dizihd.com/dizihdd.php(.+?)"').findall(xmlScan)#xml ici face link
        youtube_1=re.compile('v=(.*?)"').findall(xmlScan)#xml içi youtube link
        dizimag=re.compile('url="(.*?)"').findall(xmlScan) #xml ici dizimag                               
        music=re.compile('<file>(.*?)</file>').findall(xmlScan)
        if len(youtube_1)> 0  :
                for i, url in enumerate(youtube_1):
                        Url='plugin://plugin.video.youtube/?action=play_video&videoid='+str(youtube_1[0])
                        value.append(Url)
        
        if len(face_1)> 0  :
                for i, url in enumerate(face_1):
                        Url='http://dizihd.com/dizihdd.php'+str(url)
                        value.append(Url)
                        
        if len(dizimag)> 0:
                for i, url in enumerate(dizimag):
                        value.append(url)
                       
        if len(music)> 0  :
                for i, url in enumerate(music):
                        value.append(url)
                       
        
        print 'XML DONUS DEGERI',value
        return value                      
                                
        xbmcplugin.endOfDirectory(handle=int(sys.argv[1]), succeeded=True)
示例#14
0
def Dailymotion(code):
    ##        safe='aHR0cDovL3hibWN0ci50di8='
    ##        link=araclar.get_url(base64.b64decode(safe))
    ##        match1=re.compile('besir>>(.*?)<<besir').findall(link)
    ##        for kkk in match1:
    ##                print kkk
    value = []
    count = []
    url = "http://www.dailymotion.com/embed/video/" + code
    xbmc.executebuiltin('Notification("Dream Clup",DAILYMOTION Deneniyor.)')
    link = araclar.get_url(url)
    link = urllib.unquote(link).decode('utf8').replace('\\/', '/')
    dm_high = re.compile('"stream_h264_url":"(.+?)"').findall(link)
    dm_low = re.compile('"stream_h264_ld_url":"(.+?)"').findall(link)
    if dm_high:
        count.append('Dailymotion 360kb/s HD')
    if dm_low:
        count.append('Dailymotion 180kb/s SD ')
    else:
        pass
    dialog = xbmcgui.Dialog()
    ret = dialog.select(__language__(30008), count)
    if ret == 0:

        value.append(('Dailymotion 384 p', dm_high[0]))
    if ret == 1:

        value.append(('Dailymotion 240 p', dm_low[0]))

    return value
示例#15
0
文件: cozucu.py 项目: noba3/KoTos
def Dailymotion(code):
##        safe='aHR0cDovL3hibWN0ci50di8='
##        link=araclar.get_url(base64.b64decode(safe))
##        match1=re.compile('besir>>(.*?)<<besir').findall(link)
##        for kkk in match1:
##                print kkk
        value=[]
        count=[]
        url="http://www.dailymotion.com/embed/video/"+code
        xbmc.executebuiltin('Notification("Dream Clup",DAILYMOTION Deneniyor.)')
        link=araclar.get_url(url)
        link = urllib.unquote(link).decode('utf8').replace('\\/', '/')
        dm_high = re.compile('"stream_h264_url":"(.+?)"').findall(link)
        dm_low = re.compile('"stream_h264_ld_url":"(.+?)"').findall(link)
        if dm_high:
                count.append('Dailymotion 360kb/s HD')
        if dm_low:
                count.append('Dailymotion 180kb/s SD ')
        else:
                pass
        dialog = xbmcgui.Dialog()
        ret = dialog.select(__language__(30008),count)
        if ret == 0:
                
                value.append(('Dailymotion 384 p',dm_high[0]))
        if ret == 1:

                value.append(('Dailymotion 240 p',dm_low[0]))
        
        return value
示例#16
0
def Yesload_Player(code):
    value = ''
    xbmc.executebuiltin('Notification("Dream Clup",YESLOAD Deneniyor.)')
    link = araclar.get_url(code)
    yesloadurlbul1 = re.compile(
        '<a target="_blank" href="http://yesload.net/(.*?)">').findall(link)
    for x in yesloadurlbul1:
        code = 'http://yesload.net/player_api/info?token=' + x
    link = araclar.get_url(code)
    yesloadurlbul2 = re.compile('premium.token=(.*?)"').findall(link)
    for x in yesloadurlbul2:
        code = 'http://yesload.net/player_api/info?token=' + x
    link = araclar.get_url(code)
    yesloadplayer = re.compile('url=(.*?).flv&').findall(link)
    for url in yesloadplayer:
        value = url
    return value
示例#17
0
文件: cozucu.py 项目: noba3/KoTos
def uploadc_Player(url):
        uploadcurl=url
        link=araclar.get_url(uploadcurl)
        match=re.compile('\'file\',\'(.*?)Enter.*?.mp4\'').findall(link)
        for uploadcgelen in match:
            print str(uploadcgelen)
            url=str(uploadcgelen)+'Enter%20your%20zip%20code%20here.mp4'
            return url
示例#18
0
文件: cozucu.py 项目: noba3/KoTos
def fullfilm_gizli_player(url):
##        print 'GIZLI PLaYER url ',url
        link=araclar.get_url(url)
        link=link.replace('%3A',":").replace('%3F',"?").replace('%3D',"=")
        match=re.compile('v=(.*?)&').findall(link)
##        print 'GIZLI PLaYER',match
        url=match[0]
        return url
示例#19
0
def fullfilm_gizli_player(url):
    ##        print 'GIZLI PLaYER url ',url
    link = araclar.get_url(url)
    link = link.replace('%3A', ":").replace('%3F', "?").replace('%3D', "=")
    match = re.compile('v=(.*?)&').findall(link)
    ##        print 'GIZLI PLaYER',match
    url = match[0]
    return url
示例#20
0
def uploadc_Player(url):
    uploadcurl = url
    link = araclar.get_url(uploadcurl)
    match = re.compile('\'file\',\'(.*?)Enter.*?.mp4\'').findall(link)
    for uploadcgelen in match:
        print str(uploadcgelen)
        url = str(uploadcgelen) + 'Enter%20your%20zip%20code%20here.mp4'
        return url
示例#21
0
文件: ddizi.py 项目: kadztr/ddizi
def panel(url):
        link=araclar.get_url(web)
        soup=BS(link.decode('utf-8','ignore'))
        div = soup.findAll("div",{"class":"blok-liste"})
        for li in div[int(url)].findAll('li'):#-------------dizi anasayfalari bulur
                url= li.a['href']
                name = li.a.text
                name=name.encode("utf-8")
                araclar.addDir(fileName,name,"kategoriler(url)",url,"YOK") 
示例#22
0
文件: cozucu.py 项目: noba3/KoTos
def prepare_face_links(videoTitle,match):
        i=0
        for pageLink in match:
                link=araclar.get_url(pageLink)
                match=re.compile('<embed src=\'.*?file=(.*?)&a').findall(link)
                    
                for videoLink in match:
                        i+=1
                        araclar.addVideoLink(videoTitle+' Part '+str(i),videoLink,'')
                        playList.add(videoLink)
示例#23
0
def prepare_face_links(videoTitle, match):
    i = 0
    for pageLink in match:
        link = araclar.get_url(pageLink)
        match = re.compile('<embed src=\'.*?file=(.*?)&a').findall(link)

        for videoLink in match:
            i += 1
            araclar.addVideoLink(videoTitle + ' Part ' + str(i), videoLink, '')
            playList.add(videoLink)
示例#24
0
文件: cozucu.py 项目: noba3/KoTos
def VideoAz_Player(url):
     xbmc.executebuiltin('Notification("Dream Clup",VIDEOAZ Deneniyor.)')
     link=araclar.get_url(url)
     print url
     playerbul=re.compile('flashvars="(.*?)"').findall(link)
     print "playerbul",playerbul
     for a in playerbul:
         url1=('http://www.video.az/assets/player/player.swf?'+a)
         url=url1
         return url
示例#25
0
def VideoAz_Player(url):
    xbmc.executebuiltin('Notification("Dream Clup",VIDEOAZ Deneniyor.)')
    link = araclar.get_url(url)
    print url
    playerbul = re.compile('flashvars="(.*?)"').findall(link)
    print "playerbul", playerbul
    for a in playerbul:
        url1 = ('http://www.video.az/assets/player/player.swf?' + a)
        url = url1
        return url
示例#26
0
def vk_Player(vk_list):
    ##        safe='aHR0cDovL3hibWN0ci50di8='
    ##        link=araclar.get_url(base64.b64decode(safe))
    ##        match1=re.compile('besir>>(.*?)<<besir').findall(link)
    ##        for kkk in match1:
    ##                print kkk
    value = []
    count = []
    fixed = ''
    gecis = 0
    resolutions = ["240", "360", "480", "720", "1080"]

    for url in vk_list if not isinstance(vk_list, basestring) else [vk_list]:
        try:
            link = araclar.get_url(url)
            host = re.compile("host=(.*?)&").findall(link)
            uid = re.compile("uid=(.*?)&").findall(link)
            vtag = re.compile("vtag=(.*?)&").findall(link)
            hd = re.compile("hd_def=(.*?)&").findall(link)
            if not hd or hd[0] == "-1":
                hd = re.compile("max_hd = '(.*?)';").findall(link)
            flv = re.compile("no_flv=(.*?)&").findall(link)
            #http://cs514110.userapi.com/u175995076/video/ac8f196d08.xxx.mp4
            start_url = host[0] + 'u' + uid[0] + '/videos/' + vtag[0]
            print "vk start url", start_url
            print "hd:", hd
            x = (int(hd[0]) + 1)
            if hd > 0 or flv == 1:
                for i in range(x):
                    i = resolutions[i] + ' p'
                    count.append(i)
                if gecis == 0:
                    dialog = xbmcgui.Dialog()
                    ret = dialog.select(__language__(30014), count)
                    for i in range(x):
                        if ret == i:
                            url = start_url + '.' + str(
                                resolutions[i]) + '.mp4'
                            fixed = str(resolutions[i])
                            gecis += 1

                        else:
                            'VK SECIM YOK'
                else:
                    url = start_url + '.' + fixed + '.mp4'
                    print('SECIM :' + fixed)
                    gecis += 1
                value.append(url)
            else:
                print 'HD FLV YANLIS'
        except:
            print 'LINK TARAMA FAILED'
            pass
    return value
示例#27
0
文件: cozucu.py 项目: noba3/KoTos
def Divxshare_Player(url):
        value=''
        xbmc.executebuiltin('Notification("Dream Clup",DIVXSTAGE Deneniyor.)')
        link=araclar.get_url(url)
        match=re.compile('domain="(.*?)";\n\t\t\tflashvars.file="(.*?)";\n\t\t\tflashvars\.filekey="(.*?)"').findall(link)
        if not match:
            xbmc.executebuiltin('Notification("Sitede HATA ",ilk Linki yok.)')
        for domain,dosya,key in match:
            transfer =domain+"/api/player.api.php?file="+dosya+"&codes=undefined&user=undefined&key="+key+"&pass=undefined"
            link=araclar.get_url(transfer)
            match=re.compile('url=(.*?)&').findall(link)
            if not match:
                xbmc.executebuiltin('Notification("Serverda HATA ",Ikinci Linki yok.)')
            for url in match:
                if url.endswith('flv'):
                        value=url
                else:
                    pass
        print value
        return value
示例#28
0
文件: cozucu.py 项目: bialagary/mw
def Divxshare_Player(url):
        value=''
        xbmc.executebuiltin('Notification("Media Center",DIVXSTAGE Deneniyor.)')
        link=araclar.get_url(url)
        match=re.compile('domain="(.*?)";\n\t\t\tflashvars.file="(.*?)";\n\t\t\tflashvars\.filekey="(.*?)"').findall(link)
        if not match:
            xbmc.executebuiltin('Notification("Sitede HATA ",ilk Linki yok.)')
        for domain,dosya,key in match:
            transfer =domain+"/api/player.api.php?file="+dosya+"&codes=undefined&user=undefined&key="+key+"&pass=undefined"
            link=araclar.get_url(transfer)
            match=re.compile('url=(.*?)&').findall(link)
            if not match:
                xbmc.executebuiltin('Notification("Serverda HATA ",Ikinci Linki yok.)')
            for url in match:
                if url.endswith('flv'):
                        value=url
                else:
                    pass
        print value
        return value
示例#29
0
文件: cozucu.py 项目: noba3/KoTos
def vk_Player(vk_list):
##        safe='aHR0cDovL3hibWN0ci50di8='
##        link=araclar.get_url(base64.b64decode(safe))
##        match1=re.compile('besir>>(.*?)<<besir').findall(link)
##        for kkk in match1:
##                print kkk
        value=[]
        count=[]
        fixed=''
        gecis=0
        resolutions = ["240", "360", "480", "720", "1080"]
        
        for url in vk_list if not isinstance(vk_list, basestring) else [vk_list]:
                try:   
                    link=araclar.get_url(url)
                    host=re.compile("host=(.*?)&").findall(link)
                    uid=re.compile("uid=(.*?)&").findall(link)
                    vtag=re.compile("vtag=(.*?)&").findall(link)
                    hd = re.compile("hd_def=(.*?)&").findall(link)
                    if not hd or hd[0]=="-1":
                        hd = re.compile("max_hd = '(.*?)';").findall(link)
                    flv = re.compile("no_flv=(.*?)&").findall(link)
                    #http://cs514110.userapi.com/u175995076/video/ac8f196d08.xxx.mp4
                    start_url=host[0]+'u'+uid[0]+'/videos/' + vtag[0]
                    print "vk start url",start_url
                    print "hd:",hd
                    x=(int(hd[0])+1)
                    if hd >0 or flv == 1:
                            for i in range (x):
                                    i=resolutions[i]+' p'
                                    count.append(i) 
                            if gecis==0:
                                    dialog = xbmcgui.Dialog()
                                    ret = dialog.select(__language__(30014),count)
                                    for i in range (x):
                                            if ret == i:
                                                    url=start_url+'.'+str(resolutions[i])+'.mp4'
                                                    fixed=str(resolutions[i])
                                                    gecis+=1
                                                    
                                            else:
                                                    'VK SECIM YOK'
                            else:
                                    url=start_url+'.'+fixed+'.mp4'
                                    print ('SECIM :'+fixed)
                                    gecis+=1
                            value.append(url)
                    else:
                            print 'HD FLV YANLIS'
                except:
                        print 'LINK TARAMA FAILED'
                        pass
        return value
示例#30
0
文件: cozucu.py 项目: noba3/KoTos
def Flashx_Player(url):
##    safe='aHR0cDovL3hibWN0ci50di8='
##    link=araclar.get_url(base64.b64decode(safe))
##    match1=re.compile('besir>>(.*?)<<besir').findall(link)
##    for kkk in match1:
##            print kkk
    xbmc.executebuiltin('Notification("Dream Clup",FLASHX Deneniyor.)')
    link=araclar.get_url(url)
    print url
    playerbul=re.compile('href="http://flashx.tv/video\/(.*?)\/.*?">').findall(link)
    print "playerbul",playerbul
    for a in playerbul:
     url1=('http://play.flashx.tv/nuevo/player/cst.php?hash='+a)
     url=url1
     
     link=araclar.get_url(url)
     match=re.compile('<file>(.*?).flv</file>').findall(link)
     print "playerbul2",match
     for a in match:
         url=a+'.flv'
         print "playerbul3",url
         return url
示例#31
0
def Flashx_Player(url):
    ##    safe='aHR0cDovL3hibWN0ci50di8='
    ##    link=araclar.get_url(base64.b64decode(safe))
    ##    match1=re.compile('besir>>(.*?)<<besir').findall(link)
    ##    for kkk in match1:
    ##            print kkk
    xbmc.executebuiltin('Notification("Dream Clup",FLASHX Deneniyor.)')
    link = araclar.get_url(url)
    print url
    playerbul = re.compile(
        'href="http://flashx.tv/video\/(.*?)\/.*?">').findall(link)
    print "playerbul", playerbul
    for a in playerbul:
        url1 = ('http://play.flashx.tv/nuevo/player/cst.php?hash=' + a)
        url = url1

        link = araclar.get_url(url)
        match = re.compile('<file>(.*?).flv</file>').findall(link)
        print "playerbul2", match
        for a in match:
            url = a + '.flv'
            print "playerbul3", url
            return url
示例#32
0
文件: ddizi.py 项目: kadztr/ddizi
        def sub_scan(url):
                
                data=araclar.get_url(url)
                #-----------------------------------------------------------------------
                xml=re.compile('settingsFile: "(.*?)"').findall(data)
                if xml:
                        veri=araclar.get_url(xml[0])
                        veri2=veri.strip(' \t\n\r').replace(" ","")
                        links=re.compile('videoPathvalue="(.*?)"').findall(veri2)
                        i=0
                        for url in links:
                                urllist.append(('xmlPart '+str(i),url))
                                i+=1
                        
                        
                #------------------------------------------------------------------------
                adres=re.compile('encodeURIComponent\(\'(.*?)\'').findall(data)
                if adres:
                        for url in adres if not isinstance(adres, basestring) else [adres]:
                                urllist.append(('yPart ',url))
                        

                        
                #-----------------------------------------------------------------------

                vk=re.compile('iframe src="http://vk.com(.*?)"').findall(data)
                if vk:
                        url="http://vk.com"+vk[0]
                        #--------------------------------eklenecek kısım -------------------------
                        urlList=cozucu.videobul(url)
                        #-----------------liste olarak geri gelir for url in urlList: gerekir-------------#
                        print "cozucu donen veri :"+str(urlList)
                        for url in urlList if not isinstance(urlList, basestring) else [urlList]:
                                urllist.append(("Vk Server",url))
                        
                
                return urllist
示例#33
0
def Sockshare_Player(url):
    ##    safe='aHR0cDovL3hibWN0ci50di8='
    ##    link=araclar.get_url(base64.b64decode(safe))
    ##    match1=re.compile('besir>>(.*?)<<besir').findall(link)
    ##    for kkk in match1:
    ##            print kkk
    value = ''
    xbmc.executebuiltin('Notification("Dream Clup",SOCKSHARE Deneniyor.)')
    link = araclar.get_url(url)
    match = re.compile(
        '<input type="hidden" value="(.*?)" name="(.*?)">').findall(link)
    print "ilk match", match
    for a, b in match:
        bilgiler = urllib.urlencode({
            b:
            a,
            'confirm':
            'Close Ad and Watch as Free User'
        })
        adres = urllib.urlopen(url, bilgiler)
        #Gelen bilgiyi okuyalim
        adres = adres.read()
        #Gelen bilginin icinde URL adresini alalim
        adres = re.compile('playlist: \'(.*?)\'').findall(adres)
        for son_url in adres:
            url = 'http://www.sockshare.com' + son_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 = link.replace('amp;', "").replace('\xd6', "O").replace(
                '\xfc', "u").replace('\xdd', "I").replace('\xfd', "i").replace(
                    '\xe7',
                    "c").replace('\xde', "s").replace('\xfe', "s").replace(
                        '\xc7', "c").replace('\xf0', "g").replace('#038;', "")
            response.close()
            match = re.compile('content url="(.*?)"').findall(link)
            print "sockshare son", match
            if len(match) > 1:
                del match[0]  #burasi onemli kalmali ok
            for value in match:
                return value

    if not value:
        return false
示例#34
0
文件: ddizi.py 项目: kadztr/ddizi
def kategoriler(url):                    
        data=araclar.get_url(url)
        match=re.compile('<div class="dizi-box2"><a title="(.*?)" href="(.*?)"><img src="(.*?)"').findall(data)#-----dizi bolumleri bulur
        for name,url,thumbnail in match:
                if not thumbnail:
                     thumbnail="yok"   
                araclar.addDir(fileName,name,"resolver(name,url)",url,thumbnail)
                
        veri=data.strip(' \t\n\r').replace(" ","")
        page=re.compile('class="active"><ahref=".*?">.*?</a></li>\r\n<li><ahref="(.*?)"').findall(veri)# ----- sonraki sayfa
        if page:
                try:
                        url=page[0]
                        araclar.addDir(fileName,'Sonraki Sayfa',kategoriler(url),url,"next")
                except:
                        pass
示例#35
0
文件: cozucu.py 项目: bialagary/mw
def Dailymotion(code):
        value=[]
        count=[]
        url="http://www.dailymotion.com/embed/video/"+code
        link=araclar.get_url(url)
        link = urllib.unquote(link).decode('utf8').replace('\\/', '/')
        dm_high = re.compile('"stream_h264_url":"(.+?)"').findall(link)
        dm_low = re.compile('"stream_h264_ld_url":"(.+?)"').findall(link)
        if dm_high:
                count.append('Dailymotion 360kb/s HD')
        if dm_low:
                count.append('Dailymotion 180kb/s SD ')
        else:
                pass
        dialog = xbmcgui.Dialog()
        ret = dialog.select(__language__(30008),count)
        if ret == 0:
                
                value.append(('Dailymotion 384 p',dm_high[0]))
        if ret == 1:

                value.append(('Dailymotion 240 p',dm_low[0]))
        
        return value
示例#36
0
文件: ddizi.py 项目: kadztr/ddizi
def resolver(name,url):
        value=[]
        tablist=[]
        urllist=[]
        sayfa=araclar.get_url(url)
        data=sayfa.strip(' \t\n\r').replace(" ","")
        print data
        tek=re.compile('<a href="(.*?)">Tek Part</a>').findall(sayfa)
        parts=re.compile('<ahref="/izle/(.*?)">.*?.Par\xc3\xa7a</a>').findall(data)
        print "************************",parts
        if tek:
                url=tek[0].replace('rel="nofollow',"").replace('"',"").replace('rel=""rel="nofollow',"")
                tablist.append("http://www.ddizi1.com"+url)
        
        if parts:
                for url in parts:
                        url=url.replace('rel="nofollow',"").replace('"',"").replace('rel=""rel="nofollow',"")
                        link="http://www.ddizi1.com/izle/"+url
                        tablist.append(link)
        print "tablist",tablist
        #--------------- IC FONKSIYON SAYFA TARAR --------------------------
        def sub_scan(url):
                
                data=araclar.get_url(url)
                #-----------------------------------------------------------------------
                xml=re.compile('settingsFile: "(.*?)"').findall(data)
                if xml:
                        veri=araclar.get_url(xml[0])
                        veri2=veri.strip(' \t\n\r').replace(" ","")
                        links=re.compile('videoPathvalue="(.*?)"').findall(veri2)
                        i=0
                        for url in links:
                                urllist.append(('xmlPart '+str(i),url))
                                i+=1
                        
                        
                #------------------------------------------------------------------------
                adres=re.compile('encodeURIComponent\(\'(.*?)\'').findall(data)
                if adres:
                        for url in adres if not isinstance(adres, basestring) else [adres]:
                                urllist.append(('yPart ',url))
                        

                        
                #-----------------------------------------------------------------------

                vk=re.compile('iframe src="http://vk.com(.*?)"').findall(data)
                if vk:
                        url="http://vk.com"+vk[0]
                        #--------------------------------eklenecek kısım -------------------------
                        urlList=cozucu.videobul(url)
                        #-----------------liste olarak geri gelir for url in urlList: gerekir-------------#
                        print "cozucu donen veri :"+str(urlList)
                        for url in urlList if not isinstance(urlList, basestring) else [urlList]:
                                urllist.append(("Vk Server",url))
                        
                
                return urllist
        #---------------burdan devam ediyor ----------------
        if len(tablist)>0:
                for url in tablist:
                        sonuc=sub_scan(url)
                
        else:                
                sonuc=sub_scan(url)
                

        if sonuc:
                print "-----------------",sonuc
                play(sonuc)
        else:
                dialog = xbmcgui.Dialog()
                i = dialog.ok(name,"Site uyarısı","     Film Siteye henuz yuklenmedi   ","  Yayınlandıktan sonra yüklenecektir.  ")
                return False 
示例#37
0
文件: ddizi.py 项目: kadztr/ddizi
def yeni(url):
        link=araclar.get_url(url)
        match=re.compile('<div class="dizi-box"><a href="(.*?)"><img src="(.*?)" width="120" height="90" alt="(.*?)"').findall(link)
        for url,thumbnail,name in match:
                araclar.addDir(fileName,name,"resolver(name,url)",url,thumbnail)