Пример #1
0
def listPart(m3u, url):
    txt = xurl.load2(url)
    for m in re.finditer(r'<a href="([^"]*)" target="_blank"><img src=', txt):
        part = m.group(1)
        if re.search('nbahd.net', part):
            for link in xsrc.findLink(part):
                addEntry(m3u, part, link)
    return
Пример #2
0
def findLink(url):
    urls = []
    for m in re.finditer(
        r'(http://|https://|)(www.|)(dailymotion|videomega|videowood|youtube|openload)(.com|.tv|.co)([^"]*)',
        xurl.load2(url),
    ):
        link = xurl.absURL(m.group())
        if link not in urls:
            urls.append(link)
    srcs = []
    for link in urls:
        if youtubedl.checkURL(link):
            vids = youtubedl.extractURL2(link)
            if vids:
                srcs = srcs + vids
        else:
            srcs.append(link)
    return srcs
Пример #3
0
def unpackURL(url):
    txt = xurl.load2(url)
    return unpack(txt)
Пример #4
0
def load(url, local=None, options=None):
    return xurl.load2(url, local, options)