Exemplo n.º 1
0
def getstreams(url):
    # url = 'https://www.037hd.com/maze-runner-death-cure-2018-%E0%B9%80%E0%B8%A1%E0%B8%8B-%E0%B8%A3%E0%B8%B1%E0%B8%99%E0%B9%80%E0%B8%99%E0%B8%AD%E0%B8%A3%E0%B9%8C-%E0%B9%84%E0%B8%82%E0%B9%89%E0%B8%A1%E0%B8%A3%E0%B8%93%E0%B8%B0/'
    # url = 'https://www.037hd.com/foreigner-2017-2-%e0%b9%82%e0%b8%84%e0%b8%95%e0%b8%a3%e0%b8%9e%e0%b8%a2%e0%b8%b1%e0%b8%84%e0%b8%86%e0%b9%8c%e0%b8%9c%e0%b8%b9%e0%b9%89%e0%b8%a2%e0%b8%b4%e0%b9%88%e0%b8%87%e0%b9%83%e0%b8%ab/"'
    # uri = getitems(url, 'class="moviefilm.*\n.*?href="([^"]+)"')
    # print uri
    if url is not None:
        r = requests.get(url)
        r = HTMLParser.HTMLParser().unescape(r).text
        player = re.compile('<iframe.*?src="(.*?leoplay.*?)"').findall(r)
        # soup = BeautifulSoup(r.text, 'html5lib')
        # soup.prettify()
        # div = soup.find('h2', {"style": "text-align: center;"})
        # print (player)
        strmlist = []
        for i,surl in enumerate(player,1):
            if 'container' in surl:
                if i == 1:  # cheak soundtrack with player
                    sound = 'Subthai'
                else:
                    sound = 'Soundtrack'

                r = requests.get(surl)
                r = HTMLParser.HTMLParser().unescape(r).text
                play = re.compile('<a href="(.*?)"').findall(r)
                for leo in play:
                    r = requests.get(leo)
                    r = HTMLParser.HTMLParser().unescape(r).text
                    strm = re.compile('<iframe.*?src="(.*?)"').findall(r)

                    title = '037HD >'+sound+' >> '+chksrv(strm[0])
                    # print strm[0]
                    # strhost = strm[0]
                    # strhost = strhost[strhost.find('//')+2:strhost.find('.')].capitalize()
                    strmlist.append({"url": strm[0], "title": title})
            else:
                strmlist.append({"url": surl, "title": '037HD >> ' + chksrv(surl)})

    return strmlist
Exemplo n.º 2
0
def getstreams(url, title=None):
    orgtitle = get_title(title)
    # xbmcgui.Dialog().ok('test',title,orgtitle)
    if url is not None:
        url = url + '#tab'  #call tab

        player = y_reguests(url, 'iframe src="([^"]+)"')
        strmlist = []

        for strm in player:
            print strm
            title = 'Uta > ' + chksrv(strm) + orgtitle
            strmlist.append({"url": strm, "title": title})
    return strmlist
Exemplo n.º 3
0
def getstreams(url, title=None):

    wurl = 'https://www2.popuplayer.com/'
    player = ('player1.php?id=', 'v2/gdrive.php?id=')
    epid = getepid(url)

    strmlist = []
    for p in player:
        purl = wurl + p + str(epid)
        surl = y_reguests(purl, '(https.\/\/.*\W)" width')
        if (surl):
            strm = surl[0].replace('\\', '')
            title = ' > ' + chksrv(strm)
            strmlist.append({"url": strm, "title": title})
    return strmlist
Exemplo n.º 4
0
def getstreams(url, title=None):
    # orgtitle = get_title(title)
    strmlist = []
    opt = y_reguests(url, regex='<option.value="(.*?)"')
    if opt != None:
        for frm in opt:
            id = frm
            # print id
            surl = url + '?Player=' + id
            # print surl
            # r = requests.get(surl)
            # r = HTMLParser.HTMLParser().unescape(r).text
            strm = y_reguests(surl, '<iframe.*?src="(http+[^"]+)"')
            if len(strm) > 0:
                strmlist.append({
                    "url": strm[0],
                    "title": 'Nungsub >> ' + chksrv(strm[0])
                })

        return strmlist
Exemplo n.º 5
0
def getstreams(url,title=None):
    orgtitle = get_title(title)
    # xbmcgui.Dialog().ok('test',title,orgtitle)
    if url is not None:
        r = requests.get(url)
        r = HTMLParser.HTMLParser().unescape(r).text
        player = re.compile('<iframe.*?src="(.*?leoplay.*?)"').findall(r)
        # soup = BeautifulSoup(r.text, 'html5lib')
        # soup.prettify()
        # div = soup.find('h2', {"style": "text-align: center;"})
        # print (player)
        strmlist = []
        for i,surl in enumerate(player,1):
            # if 'container' in surl:
                if i == 1:  # cheak soundtrack with player
                    sound = u'พากย์ไทย'
                else:
                    sound = 'Soundtrack'

                r = requests.get(surl)
                r = HTMLParser.HTMLParser().unescape(r).text
                play = re.compile('<a href="(.*?)"').findall(r)
                for leo in play:
                    r = requests.get(leo)
                    r = HTMLParser.HTMLParser().unescape(r).text
                    strm = re.compile('<iframe.*?src="(.*?)"').findall(r)

                    title = '037HD >'+sound+' >> '+chksrv(strm[0])
                    # print strm[0]
                    # strhost = strm[0]
                    # strhost = strhost[strhost.find('//')+2:strhost.find('.')].capitalize()
                    strmlist.append({"url": strm[0], "title": title})
            # else:
            #     strmlist.append({"url": surl, "title": '037HD >> ' + chksrv(surl) + orgtitle})

    return strmlist
Exemplo n.º 6
0
def getstreams(url, title=None):
    # orgtitle = get_title(title)
    # xbmcgui.Dialog().ok('url', url)
    if url is not None:
        r = requests.get(url)
        soup = BeautifulSoup(r.text, 'html5lib')
        soup.prettify()
        # print soup
        div = soup.findAll('div', {"class": "video-player-section"})
        # print div

        strmlist = []
        for frm in div:
            # print frm
            surl = frm.find('source').get('src')
            sid = frm.find('video').get('id')
            # print sid
            if 'videojs-hls-player-vod_m3u8_sub' in sid:
                stitle = 'Soundtrack'
            else:
                stitle = 'Thai sound (T)'

            strmlist.append({
                "url": surl,
                "title": 'Mastermovie-HD >> ' + stitle
            })

        div2 = soup.findAll('div', {'class': 'videoWrapper'})
        # print (div2)
        for player in div2:
            purl = player.find('iframe').get('src')
            strmlist.append({
                "url": purl,
                "title": 'Mastermovie-HD >> ' + chksrv(purl)
            })
    return strmlist