Exemple #1
0
def Playvid(url, name, download=None):
    listhtml = utils.getHtml2(url)
    listhtml = utils.unescapes(listhtml)
    match480 = re.search(r'[[]480p[]]=([^"]*?)&video_vars', listhtml)
    if match480: videourl = match480.group(1)
    else:
     match360 = re.search(r'[[]360p[]]=([^"]*?)&video_vars', listhtml)
     videourl = match360.group(1)
     
    if download == 1:
        utils.downloadVideo(videourl, name)
    else:
        iconimage = xbmc.getInfoImage("ListItem.Thumb")
        listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
        listitem.setProperty("IsPlayable","true")
        if int(sys.argv[1]) == -1:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            pl.add(videourl, listitem)
            xbmc.Player().play(pl)
        else:
            listitem.setPath(str(videourl))
            xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
        return
Exemple #2
0
def List(url):
    listhtml = utils.getHtml2(url)
    listhtml = utils.unescapes(listhtml)
    match = re.compile('data-href.+?title="([^"]*?)"><span class="image"><a href="([^"]*?)" class="ajax"><img src="([^"]*?)"></a>.+?<span class="duration">([^"]*?)</span>', re.DOTALL | re.IGNORECASE).findall(listhtml)
    for name,url,thumb,duration in match:
        name = utils.cleantext(name)
        name = name + " [COLOR blue]" + duration + "[/COLOR]"
        url = main_url + url
        utils.addDownLink(name, url, 524, thumb, '')

    matchnext = re.findall('class="next ajax" href="([^"]*?)">Next</a>',listhtml)
    for url in matchnext:
     url = main_url + url
     utils.addDir('Next Page >', url, 523, '', '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
Exemple #3
0
def Cat(url):
        listhtml = utils.getHtml(url,'')
        listhtml = utils.unescapes(listhtml)
        match = re.findall('data-url="([^"]*?)".+?data-image="([^"]*?)".+?ajax overlay" href=".+?" title="([^"]*?)"></a></div>', listhtml)
        for url,thumb,name in match:
         utils.addDir(name,url,523,thumb)