• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python servertools.findvideos函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中servers.servertools.findvideos函数的典型用法代码示例。如果您正苦于以下问题:Python findvideos函数的具体用法?Python findvideos怎么用?Python findvideos使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了findvideos函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: findvideos

def findvideos(item):
    data = scrapertools.cachePage(item.url)
    from servers import servertools 
    import copy    
    itemlist = []
    patronvideos  = '</div>\n<div class="tab-pane reproductor repron" id="([^"]+)">\n<div class="calishow">([^<]+)</div>\n'
    patronvideos += '<iframe[^>]+src="([^"]+)"[^>]+></iframe>\n'
    patronvideos += '<div class="clear"></div>'
    matches = re.compile(patronvideos,re.DOTALL).findall(data)
    for id, server, url in matches:
      print id
      patroncalidad = '<a href="#'+id+'" data-toggle="tab" alt="[^"]+" title="[^"]+">\n<span class="[^"]+" style="margin-right:5px"></span>\n([^\n]+)\n</a>'
      calidad = re.compile(patroncalidad,re.DOTALL).findall(data)
      print calidad
      if server == "netu":
        url = "http://netu.tv/watch_video.php?v="+ url.split("=")[1]
        listavideos = servertools.findvideos(url)
      else:
        listavideos = servertools.findvideos(url)
        
      for video in listavideos:
          NuevoItem = copy.deepcopy(item)
          NuevoItem.title = "Ver en: ["  + video[2] + "]" + " ("+calidad[0] + ")"
          NuevoItem.url = video[1]
          NuevoItem.server = video[2]
          NuevoItem.action = "play"
          NuevoItem.folder=False
          itemlist.append(NuevoItem) 
    return itemlist
开发者ID:leothecoldness,项目名称:pelisalacarta,代码行数:29,代码来源:pelispekes.py


示例2: findvideostv

def findvideostv(item):
    logger.info("pelisalacarta.channels.allpeliculas findvideostv")
    itemlist = []
    season = item.title.split(" ")[1]
    thumbnail = item.thumbnail
    #Rellena diccionarios idioma y calidad
    idiomas_videos, calidad_videos = dict_videos()

    data = scrapertools.cachePage(item.url)
    data = data.replace("\n","").replace("\t", "")
    data = scrapertools.decodeHtmlentities(data)
    try:
        from core.tmdb import Tmdb
        otmdb= Tmdb(texto_buscado=item.fulltitle, tipo="tv")
    except:
        pass
    #Enlaces Online
    patron = '<span class="movie-online-list" id_movies_types="([^"]+)".*?episode="([^"]+)" season="'+season+'" id_lang="([^"]+)".*?online-link="([^"]+)"'
    matches = scrapertools.find_multiple_matches(data, patron)
    for quality, episode, language, url in matches:
         enlaces = servertools.findvideos(data=url)
         if len(enlaces)> 0:
             idioma = IDIOMAS.get(idiomas_videos.get(language))
             titulo = "[COLOR sandybrown][B]Episodio "+episode+"[/B][/COLOR] "
             titulo += "Enlace encontrado en [COLOR green][B]"+enlaces[0][0]+"[/B][/COLOR] [COLOR magenta]["+idioma+"][/COLOR] ["+calidad_videos.get(quality)+"]"
             servidor = enlaces[0][2]
             try:
                 item.plot, thumbnail = infoepi(otmdb, season, episode)
             except:
                 pass
             itemlist.append(Item(channel=__channel__, action="play", server=servidor, title=titulo, url=enlaces[0][1], fulltitle = item.fulltitle, thumbnail=thumbnail, fanart=item.fanart, plot=str(item.plot), extra=episode, folder=False))

    #Enlace Descarga
    patron = '<span class="movie-downloadlink-list" id_movies_types="([^"]+)".*?episode="([^"]+)" season="'+season+'" id_lang="([^"]+)".*?online-link="([^"]+)"'
    matches = scrapertools.find_multiple_matches(data, patron)
    for quality, episode, language, url in matches:
        mostrar_server = True
        enlaces = servertools.findvideos(data=url)
        if len(enlaces)> 0:
            servidor = enlaces[0][2]
            if config.get_setting("hidepremium")=="true":
                mostrar_server = servertools.is_server_enabled(servidor)
            if mostrar_server:
                idioma = IDIOMAS.get(idiomas_videos.get(language))
                titulo = "[COLOR sandybrown][B]Episodio "+episode+"[/B][/COLOR] "
                titulo += "Enlace encontrado en [COLOR green][B]"+enlaces[0][0]+"[/B][/COLOR] ["+idioma+"] ["+calidad_videos.get(quality)+"]"
                try:
                    item.plot, thumbnail = infoepi(otmdb, season, episode)
                except:
                    pass
                itemlist.append(Item(channel=__channel__, action="play", server=servidor, title=titulo , url=enlaces[0][1] , fulltitle = item.fulltitle, thumbnail=thumbnail , fanart=item.fanart, plot=str(item.plot) , extra=episode, folder=False) )

    itemlist.sort(key=lambda item:(int(item.extra), item.title))
    return itemlist
开发者ID:Piradoxlanieve,项目名称:pelisalacarta,代码行数:54,代码来源:allpeliculas.py


示例3: play

def play(item):
    logger.info("[peliculasaudiolatino.py] play")
    itemlist=[]

    data2 = scrapertools.cache_page(item.url)
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/mv.php?url=","http://www.megavideo.com/?v=")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/videobb.php?url=","http://www.videobb.com/watch_video.php?v=")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/vidbux.php?url=","http://www.vidbux.com/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/vidxden.php?url=","http://www.vidxden.com/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/videozer.php?url=","http://www.videozer.com/video/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/v/pl/play.php?url=","http://www.putlocker.com/embed/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/v/mv/play.php?url=","http://www.modovideo.com/frame.php?v=")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/v/ss/play.php?url=","http://www.sockshare.com/embed/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/v/vb/play.php?url=","http://vidbull.com/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/sockshare.php?url=","http://www.sockshare.com/embed/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/moevide.php?url=","http://moevideo.net/?page=video&uid=")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/novamov.php?url=","http://www.novamov.com/video/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/movshare.php?url=","http://www.movshare.net/video/")
    data2 = data2.replace("http://www.peliculasaudiolatino.tv/show/divxstage.php?url=","http://www.divxstage.net/video/")
    listavideos = servertools.findvideos(data2)
    for video in listavideos:
        invalid = video[1]
        invalid = invalid[0:8]
        if invalid!= "FN3WE43K" and invalid!="9CC3F8&e":
            scrapedtitle = item.title+video[0]
            videourl = video[1]
            server = video[2]
            if (DEBUG): logger.info("title=["+scrapedtitle+"], url=["+videourl+"]")

            # Añade al listado de XBMC
            itemlist.append( Item(channel=__channel__, action="play", title=scrapedtitle , fulltitle=item.fulltitle, url=videourl , server=server , folder=False) )
    
    return itemlist
开发者ID:CarlosCondor,项目名称:pelisalacarta-xbmc-plus,代码行数:33,代码来源:peliculasaudiolatino.py


示例4: videos

def videos(item):

	logger.info("[islapeliculas.py] videos")
	# Descarga la página
	data = scrapertools.cachePage(item.url)
	patron = '(modules.php\?name=Anime-Online&func=JokeView&jokeid=.*?&amp;Es=\d)'
	matches = re.compile(patron,re.DOTALL).findall(data)
	scrapertools.printMatches(matches)
	for match in matches:
		url= urlparse.urljoin('http://www.buenaisla.com/',match)
		url = url.replace('&amp;','&')
		data2= scrapertools.cachePage(url)
		data = data + data2
			
	title= item.title
	scrapedthumbnail = item.thumbnail
	listavideos = servertools.findvideos(data)

	itemlist = []
	for video in listavideos:
		invalid = video[1]
		invalid = invalid[0:8]
		if invalid!= "FN3WE43K" and invalid!="9CC3F8&e":
			scrapedtitle = title.strip() + " - " + video[0]
			videourl = video[1]
			server = video[2]
			if (DEBUG): logger.info("title=["+scrapedtitle+"], url=["+videourl+"], thumbnail=["+scrapedthumbnail+"]")

			# Añade al listado de XBMC
			itemlist.append( Item(channel=CHANNELNAME, action="play", title=scrapedtitle , url=videourl , thumbnail=scrapedthumbnail , server=server , folder=False) )

	return itemlist
开发者ID:jorik041,项目名称:pelisalacarta-personal-fork,代码行数:32,代码来源:buenaisla.py


示例5: detail

def detail(params,url,category):
    logger.info("[pintadibujos.py] detail")

    title = urllib.unquote_plus( params.get("title") )
    thumbnail = urllib.unquote_plus( params.get("thumbnail") )

    # Descarga la página
    data = scrapertools.cachePage(url)
    #logger.info(data)

    # ------------------------------------------------------------------------------------
    # Busca los enlaces a los videos
    # ------------------------------------------------------------------------------------
    listavideos = servertools.findvideos(data)

    for video in listavideos:
        xbmctools.addnewvideo( CHANNELNAME , "play" , category , video[2] , title + " - " + video[0] , video[1] , thumbnail , "" )
    # ------------------------------------------------------------------------------------

    # Label (top-right)...
    xbmcplugin.setPluginCategory( handle=pluginhandle, category=category )
        
    # Disable sorting...
    xbmcplugin.addSortMethod( handle=pluginhandle, sortMethod=xbmcplugin.SORT_METHOD_NONE )

    # End of directory...
    xbmcplugin.endOfDirectory( handle=pluginhandle, succeeded=True )
开发者ID:CarlosCondor,项目名称:pelisalacarta-xbmc-plus,代码行数:27,代码来源:pintadibujos.py


示例6: detail

def detail(params,url,category):
    xbmc.output("[cineblog01.py] detail")

    title = params.get("title")
    thumbnail = params.get("thumbnail")
    xbmc.output("[cineblog01.py] title="+title)
    xbmc.output("[cineblog01.py] thumbnail="+thumbnail)

    # Descarga la página
    data = scrapertools.cachePage(url)
    #xbmc.output(data)

    # ------------------------------------------------------------------------------------
    # Busca los enlaces a los videos
    # ------------------------------------------------------------------------------------
    listavideos = servertools.findvideos(data)

    for video in listavideos:
        xbmctools.addvideo( CHANNELNAME , "Megavideo - "+video[0] , video[1] , category , video[2] )
    # ------------------------------------------------------------------------------------

    # Label (top-right)...
    xbmcplugin.setPluginCategory( handle=pluginhandle, category=category )
        
    # Disable sorting...
    xbmcplugin.addSortMethod( handle=pluginhandle, sortMethod=xbmcplugin.SORT_METHOD_NONE )

    # End of directory...
    xbmcplugin.endOfDirectory( handle=pluginhandle, succeeded=True )
开发者ID:hmemar,项目名称:xbmc-tvalacarta,代码行数:29,代码来源:cineblog01.py


示例7: findvideos

def findvideos(item):
    logger.info("[cinevos.py] findvideos")
    # Descarga la página
    data = scrapertools.cachePage(item.url)
    logger.info(data)
    # Busca si hay subtitulo
    patronvideos  = '<a href="(http://www.cinevos.com/sub/[^"]+)"'
    matches = re.compile(patronvideos,re.DOTALL).findall(data)
    scrapertools.printMatches(matches)
    sub = ""
    if len(matches):
        sub = matches[0]
        logger.info("con subtitulo :%s" %sub)
    # Busca la descripcion
    patronvideos  = '<p>(<div.*?</div>) </p>'
    matches = re.compile(patronvideos,re.DOTALL).findall(data)
    scrapertools.printMatches(matches)
    plot = ""
    if len(matches):
        plot = re.sub("<[^>]+>","",matches[0])
    # Busca los enlaces a los videos
    listavideos = servertools.findvideos(data)
    itemlist = []
    for video in listavideos:
        videotitle = scrapertools.unescape(video[0])
        #print videotitle
        url = video[1]
        server = video[2]
        if "Megaupload" in videotitle:
            videotitle = item.title + " - [Megaupload]"
        else:
            videotitle = item.title+ " - " +videotitle
        itemlist.append( Item(channel=CHANNELNAME, action="play", server=server, title=videotitle , url=url , thumbnail=item.thumbnail , plot=plot ,subtitle=sub, folder=False) )
    return itemlist
开发者ID:CarlosCondor,项目名称:pelisalacarta-xbmc-plus,代码行数:34,代码来源:cinevos.py


示例8: detail

def detail(params,url,category):
    logger.info("[veranime.py] detail")

    title = urllib.unquote_plus( params.get("title") )
    thumbnail = urllib.unquote_plus( params.get("thumbnail") )
    plot = urllib.unquote_plus( params.get("plot") )

    # Descarga la página
    data = scrapertools.cachePage(url)
    #logger.info(data)

    patron  = '<div id="listacapdd"><div class="listddserie">[^<]+'
    patron += '<a title="[^"]+" href="([^"]+)"><strong>[^<]+</strong></a>[^<]+'
    patron += '</div>'
    matches = re.compile(patron,re.DOTALL).findall(data)
    if len(matches)>0:
        url = matches[0]
        data = scrapertools.cachePage(url)

    # ------------------------------------------------------------------------------------
    # Busca los enlaces a los videos
    # ------------------------------------------------------------------------------------
    listavideos = servertools.findvideos(data)

    for video in listavideos:
        videotitle = video[0]
        url = video[1]
        server = video[2]
        xbmctools.addnewvideo( CHANNELNAME , "play" , category , server , title.strip() + " - " + videotitle , url , thumbnail , plot )
    # ------------------------------------------------------------------------------------

    # Asigna el título, desactiva la ordenación, y cierra el directorio
    xbmcplugin.setPluginCategory( handle=pluginhandle, category=category )
    xbmcplugin.addSortMethod( handle=pluginhandle, sortMethod=xbmcplugin.SORT_METHOD_NONE )
    xbmcplugin.endOfDirectory( handle=pluginhandle, succeeded=True )
开发者ID:jorik041,项目名称:pelisalacarta-personal-fork,代码行数:35,代码来源:veranime.py


示例9: listvideos

def listvideos(item):
    logger.info("[Filmfab:py] listvideos")

    url = item.url

    # Descarga la página
    data = scrapertools.cachePage(url)
    #logger.info(data)

    # Extrae los items
    patronvideos  = '<p>(<a href="[^"]+"><strong>.*?)</p>'
    entradas = re.compile(patronvideos,re.DOTALL).findall(data)
    scrapertools.printMatches(entradas)
    
    itemlist = []
    for entrada in entradas:
        # Titulo
        patrontitulo = '<a href="[^"]+"><strong>([^<]+)<'
        matches = re.compile(patrontitulo,re.DOTALL).findall(entrada)
        scrapertools.printMatches(matches)
        if len(matches)>0:
            scrapedtitle = matches[0].strip()

        # Busca los enlaces a los videos
        import servertools
        listavideos = servertools.findvideos(entrada)
    
        for video in listavideos:
            scrapedtitle = scrapedtitle + " - " + video[0]
            scrapedurl = video[1]
            server = video[2]
            
            itemlist.append( Item(channel=CHANNELNAME, action="play" , title=scrapedtitle , url=scrapedurl, server=server, folder=False))

    return itemlist
开发者ID:jorik041,项目名称:pelisalacarta-personal-fork,代码行数:35,代码来源:filmfab.py


示例10: findvideos

def findvideos(item,channelitemlist=None):
    logger.info("findvideos")
    itemlist = []
    if channelitemlist==None:
      from core import scrapertools
      from servers import servertools
      from servers import longurl
      import copy
      data = scrapertools.cache_page(item.url)
      data=longurl.get_long_urls(data)  
      listavideos = servertools.findvideos(data)  
      for video in listavideos:
          NuevoItem = copy.deepcopy(item)
          NuevoItem.title = item.title
          NuevoItem.fulltitle = "Ver en: ["  + video[2] + "]"
          NuevoItem.url = video[1]
          NuevoItem.server = video[2]
          NuevoItem.action = "play"
          NuevoItem.folder=False
          itemlist.append(NuevoItem)
    else:
        import copy
        for itemvideo in channelitemlist:
            NuevoItem = copy.deepcopy(itemvideo)
            NuevoItem.fulltitle = itemvideo.title
            NuevoItem.title = item.title
            NuevoItem.thumbnail = item.thumbnail
            itemlist.append(NuevoItem)
        
    return itemlist
开发者ID:leothecoldness,项目名称:pelisalacarta,代码行数:30,代码来源:launcher.py


示例11: play

def play(item):
    logger.info("pelisalacarta.bricocine findvideos")
    media_url = scrapertools.get_header_from_response(item.url,header_to_get="location")
    itemlist = servertools.find_video_items(data=media_url)
    
    if len(itemlist) == 0:
    
    
       itemlist = servertools.find_video_items(data=item.url)
       data = scrapertools.cache_page(item.url)
    
    
    
    listavideos = servertools.findvideos(data)
    
    for video in listavideos:
        videotitle = item.title
        url =item.url
        server = video[2]
        
        
    
    
   

    return itemlist
开发者ID:divadres,项目名称:pelisalacarta,代码行数:26,代码来源:moviesultimate.py


示例12: detail

def detail(params,url,category):
    logger.info("[descargapelis.py] detail")

    title = urllib.unquote_plus( params.get("title") )
    thumbnail = urllib.unquote_plus( params.get("thumbnail") )
    plot = ""

    # Descarga la página
    data = scrapertools.cachePage(url)
    #logger.info(data)

    patron = '<table width="100%" cellpadding="0" cellspacing="0">[^<]+?'
    patron +='<tr>[^<]+?<td align="center"><img src="(.+?)".+?'
    patron +='<td align="justify" valign="top" class="texto_peli"><b>Sinopsis de (.+?):</b>(.+?)<br />'
    matches = re.compile(patron,re.DOTALL).findall(data)
    if len(matches)>0:
        if DEBUG:
            scrapertools.printMatches(matches)
            #xbmc.output('test')

    listavideos = servertools.findvideos(data)
    thumbnail=matches[0][0]
    plot=matches[0][2]
    title=matches[0][1]
    for video in listavideos:
        xbmctools.addnewvideo( CHANNELNAME , "play" , CHANNELNAME , video[2] , title + " (" + video[2] + ")" , video[1] , thumbnail, plot )

    # Label (top-right)...
    xbmcplugin.setPluginCategory( handle=int( sys.argv[ 1 ] ), category=category )
    xbmcplugin.addSortMethod( handle=int( sys.argv[ 1 ] ), sortMethod=xbmcplugin.SORT_METHOD_NONE )
    xbmcplugin.endOfDirectory( handle=int( sys.argv[ 1 ] ), succeeded=True )
开发者ID:jorik041,项目名称:pelisalacarta-personal-fork,代码行数:31,代码来源:descargapelis.py


示例13: videos

def videos(item): 
    logger.info("[liberateca.py] videos")

    # Descarga la página
    authStr = base64.encodestring('%s:%s' % (LOGIN, PASSWORD))[:-1]
    data = scrapertools.cachePage(item.url,headers=[["Authorization", "Basic %s" % authStr]])
    print data

    # Extrae las entradas
    patronvideos  = '"url": "([^"]+)",[^"]+'
    patronvideos += '"audio": "([^"]+)"'
    matches = re.compile(patronvideos,re.DOTALL).findall(data)
    if DEBUG: scrapertools.printMatches(matches)

    itemlist = []
    for match in matches:
        scrapedurl = urlparse.urljoin(item.url,match[0])
        scrapedtitle = "Audio "+match[1]
        scrapedplot = ""
        scrapedthumbnail = ""
        if (DEBUG): logger.info("title=["+scrapedtitle+"], url=["+scrapedurl+"], thumbnail=["+scrapedthumbnail+"]")

        videos = servertools.findvideos(scrapedurl)
        if len(videos)>0:
            print videos
            server = videos[0][2]
            scrapedurl = videos[0][1]
            itemlist.append( Item(channel=CHANNELNAME, action="play", title=scrapedtitle+" ["+server+"]" , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot, server=server, folder=False) )

    return itemlist
开发者ID:jorik041,项目名称:pelisalacarta-personal-fork,代码行数:30,代码来源:liberateca.py


示例14: find_video_items

def find_video_items(item=None, data=None, channel=""):
    logger.info("[launcher.py] findvideos")

    # Descarga la página
    if data is None:
        from core import scrapertools
        data = scrapertools.cache_page(item.url)
        #logger.info(data)
    
    # Busca los enlaces a los videos
    from core.item import Item
    from servers import servertools
    listavideos = servertools.findvideos(data)

    if item is None:
        item = Item()

    itemlist = []
    for video in listavideos:
        scrapedtitle = item.title.strip() + " - " + video[0]
        scrapedurl = video[1]
        server = video[2]
        
        itemlist.append( Item(channel=item.channel, title=scrapedtitle , action="play" , server=server, page=item.page, url=scrapedurl, thumbnail=item.thumbnail, show=item.show , plot=item.plot , folder=False) )

    return itemlist
开发者ID:nosuko,项目名称:tvalacarta,代码行数:26,代码来源:servertools.py


示例15: findvideos

def findvideos(item):
    itemlist = []
    from core import scrapertools
    from servers import servertools
    from servers import longurl
    import copy
    data = scrapertools.cache_page(item.url)
    data=longurl.get_long_urls(data)  
    listavideos = servertools.findvideos(data)  
    for video in listavideos:
        NuevoItem = copy.deepcopy(item)
        if not "youtube" in video[2]:
          NuevoItem.title = "Ver en: ["  + video[2] + "]"
        else:
          NuevoItem.title = "Ver Trailer en: ["  + video[2] + "]"
        NuevoItem.url = video[1]
        NuevoItem.server = video[2]
        NuevoItem.action = "play"
        NuevoItem.folder=False
        if not "youtube" in video[2]:
          itemlist.append(NuevoItem)
        else:
          itemlist.insert(0,NuevoItem)
        
    return itemlist
开发者ID:leothecoldness,项目名称:pelisalacarta,代码行数:25,代码来源:moviesultimate.py


示例16: videos

def videos(item):

	logger.info("[newhd.py] videos")
	# Descarga la página
	data = scrapertools.cachePage(item.url)
	title= item.title
	scrapedthumbnail = item.thumbnail
	scrapedplot = item.plot
	listavideos = servertools.findvideos(data)

	itemlist = []
	for video in listavideos:
		scrapedtitle = title.strip() + " - " + video[0]
		videourl = video[1]
		server = video[2]
		#logger.info("videotitle="+urllib.quote_plus( videotitle ))
		#logger.info("plot="+urllib.quote_plus( plot ))
		#plot = ""
		#logger.info("title="+urllib.quote_plus( title ))
		if (DEBUG): logger.info("title=["+scrapedtitle+"], url=["+videourl+"], thumbnail=["+scrapedthumbnail+"]")

		# Añade al listado de XBMC
		itemlist.append( Item(channel=__channel__, action="play", title=scrapedtitle , url=videourl , thumbnail=scrapedthumbnail , plot=scrapedplot , server=server , folder=False) )

	return itemlist
开发者ID:CarlosCondor,项目名称:pelisalacarta-xbmc-plus,代码行数:25,代码来源:newhd.py


示例17: trailer

def trailer(item):
    
    logger.info("pelisalacarta.bricocine trailer")
    
    itemlist = []
    data = get_page( item.url )
    
    
    #trailer
    patron = "<iframe width='570' height='400' src='//([^']+)"
    
    # Busca los enlaces a los videos
    listavideos = servertools.findvideos(data)
    if len(listavideos)==0 :
        itemlist.append( Item(channel=__channel__, title="[COLOR gold][B]Esta pelicula no tiene trailer,lo sentimos...[/B][/COLOR]", thumbnail ="http://s6.postimg.org/fay99h9ox/briconoisethumb.png", fanart ="http://s6.postimg.org/uie8tu1jl/briconoisefan.jpg",folder=False) )
    
    for video in listavideos:
        videotitle = scrapertools.unescape(video[0])
        url = video[1]
        server = video[2]
        
        #xbmctools.addnewvideo( __channel__ , "play" , category , server ,  , url , thumbnail , plot )
        title= "[COLOR crimson]Trailer - [/COLOR]"
        itemlist.append( Item(channel=__channel__, action="play", server=server, title=title + videotitle  , url=url , thumbnail=item.extra , plot=item.plot , fulltitle = item.title , fanart="http://s23.postimg.org/84vkeq863/movietrailers.jpg", folder=False) )
    return itemlist
开发者ID:golaizola,项目名称:pelisalacarta,代码行数:25,代码来源:bricocine.py


示例18: find_video_items

def find_video_items(item=None, data=None, channel=""):
    logger.info("[servertools.py] find_video_items")

    # Descarga la página
    if data is None:
        from core import scrapertools
        data = scrapertools.cache_page(item.url)
        #logger.info(data)

    # Busca los enlaces a los videos
    from core.item import Item
    from servers import servertools
    listavideos = servertools.findvideos(data)

    if item is None:
        item = Item()

    itemlist = []
    for video in listavideos:
        scrapedtitle = "Enlace encontrado en "+video[2]
        scrapedurl = video[1]
        server = video[2]
        thumbnail = "http://media.tvalacarta.info/servers/server_"+server+".png"
        
        itemlist.append( Item(channel=item.channel, title=scrapedtitle , action="play" , server=server, url=scrapedurl, thumbnail=thumbnail, show=item.show , plot=item.plot , parentContent=item, folder=False) )

    return itemlist
开发者ID:andrums5,项目名称:pelisalacarta,代码行数:27,代码来源:servertools.py


示例19: play

def play(item):
    logger.info("pelisalacarta.bricocine findvideos")

    itemlist = servertools.find_video_items(data=item.url)
    data = scrapertools.cache_page(item.url)

    listavideos = servertools.findvideos(data)

    for video in listavideos:
        videotitle = scrapertools.unescape(video[0])
        url = item.url
        server = video[2]

        # xbmctools.addnewvideo( __channel__ , "play" , category , server ,  , url , thumbnail , plot )
        itemlist.append(
            Item(
                channel=__channel__,
                action="play",
                server=server,
                title="Trailer - " + videotitle,
                url=url,
                thumbnail=item.thumbnail,
                plot=item.plot,
                fulltitle=item.title,
                fanart="http://s23.postimg.org/84vkeq863/movietrailers.jpg",
                folder=False,
            )
        )

    return itemlist
开发者ID:leothecoldness,项目名称:pelisalacarta,代码行数:30,代码来源:peliculasdk.py


示例20: detail

def detail(item):
    logger.info("[Descarregadirecta.py] detail")

    title = item.title
    thumbnail = item.thumbnail
    plot = item.plot
    scrapedurl = ""
    url = item.url

    itemlist = []

    # Descarga la p�gina
    data = scrapertools.cachePage(url)
    
    # Usa findvideos    
    listavideos = servertools.findvideos(data)
    
    itemlist = []
    
    for video in listavideos:
        server = video[2]
        scrapedtitle = item.title + " [" + server + "]"
        scrapedurl = video[1]
        
        itemlist.append( Item(channel=CHANNELNAME, action="play" , title=scrapedtitle , url=scrapedurl, thumbnail=item.thumbnail, plot=item.plot, server=server, folder=False))



    return itemlist
开发者ID:superberny70,项目名称:plugin.video.pelisalacarta-3-9X,代码行数:29,代码来源:pordescargadirecta.py



注:本文中的servers.servertools.findvideos函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap