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

    title = unicode(xbmc.getInfoLabel("ListItem.Title"), "utf-8")
    thumbnail = urllib.unquote_plus(params.get("thumbnail"))
    plot = unicode(xbmc.getInfoLabel("ListItem.Plot"), "utf-8")

    # 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.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)
def detail(params,url,category):
	logger.info("[descargacineclasico.py] detail")

	title = urllib.unquote_plus( params.get("title") )
	thumbnail = urllib.unquote_plus( params.get("thumbnail") )
	logger.info("[descargacineclasico.py] title="+title)
	logger.info("[descargacineclasico.py] thumbnail="+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.addvideo( CHANNELNAME , title+" - "+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 )
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 )
Esempio n. 4
0
def detail(params, url, category):
    logger.info("[descargacineclasico.py] detail")

    title = urllib.unquote_plus(params.get("title"))
    thumbnail = urllib.unquote_plus(params.get("thumbnail"))
    logger.info("[descargacineclasico.py] title=" + title)
    logger.info("[descargacineclasico.py] thumbnail=" + 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.addvideo(CHANNELNAME, title + " - " + 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)
def detail(params,url,category):
	xbmc.output("[divxonline.py] detail")

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

	data0 = scrapertools.cachePage(url) # descarga pagina de reproduccion
	
	# tipo 1: hay un iframe con una página con los videos
	# obtiene la url del frame con los videos	
	match = re.search('<iframe src="(.*?)"',data0,re.DOTALL | re.IGNORECASE)
	
	if match:
		xbmc.output("URLVideo: " + match.group(1)) # los cambios suelen afectar por aquí
		
		# Descarga el frame con los videos
		data = scrapertools.cachePage(urlparse.urljoin(url,match.group(1)))
		#xbmc.output(data)

		listavideos = servertools.findvideos(data)

	else:
		# tipo 2: los vídeos están en la página (no sé si sigue siendo vigente)
		listavideos = servertools.findvideos(data0)


	# ------------------------------------------------------------------------------------
	# Añade los enlaces a los videos
	# ------------------------------------------------------------------------------------
	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 )
def listmirrors(params,url,category):
    logger.info("[sesionvip.py] detail")

    title = params.get("title")
    thumbnail = params.get("thumbnail")
    logger.info("[sesionvip.py] title="+title)
    logger.info("[sesionvip.py] thumbnail="+thumbnail)

    '''
    # Descarga la página y extrae el enlace a la siguiente pagina
    data = scrapertools.cachePage(url)
    patronvideos  = '<p style="text-align: center;">.*?<a href\="(http\://www.sesionvip.com/[^"]+)"'
    matches = re.compile(patronvideos,re.DOTALL).findall(data)
    scrapertools.printMatches(matches)
    #logger.info(data)

    if len(matches)==0:
        xbmctools.alertnodisponible()
        return

    # Descarga la siguiente página y extrae el enlace a los mirrors
    url = matches[0]
    '''
    data = scrapertools.cachePage(url)

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

    for video in listavideos:
        xbmctools.addvideo( CHANNELNAME , 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 )
Esempio n. 7
0
def listmirrors(params, url, category):
    logger.info("[sesionvip.py] detail")

    title = params.get("title")
    thumbnail = params.get("thumbnail")
    logger.info("[sesionvip.py] title=" + title)
    logger.info("[sesionvip.py] thumbnail=" + thumbnail)
    '''
	# Descarga la página y extrae el enlace a la siguiente pagina
	data = scrapertools.cachePage(url)
	patronvideos  = '<p style="text-align: center;">.*?<a href\="(http\://www.sesionvip.com/[^"]+)"'
	matches = re.compile(patronvideos,re.DOTALL).findall(data)
	scrapertools.printMatches(matches)
	#logger.info(data)

	if len(matches)==0:
		xbmctools.alertnodisponible()
		return

	# Descarga la siguiente página y extrae el enlace a los mirrors
	url = matches[0]
	'''
    data = scrapertools.cachePage(url)

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

    for video in listavideos:
        xbmctools.addvideo(CHANNELNAME, 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)
Esempio n. 8
0
def detail(params,url,category):
	logger.info("[documentalesatonline2.py] detail")

	#title = unicode( xbmc.getInfoLabel( "ListItem.Title" ), "utf-8" )
	#thumbnail = urllib.unquote_plus( params.get("thumbnail") )
	#plot = unicode( xbmc.getInfoLabel( "ListItem.Plot" ), "utf-8" )

	# Descarga la página
	data = scrapertools.cachePage(url)
	#logger.info(data)
	patronvideos0  = '- [0-9]+? de [0-9]+?:(.+)'
	#- 1 de 3:
	
	
	matches0 = re.compile(patronvideos0).findall(data)
	
	if len(matches0)==0:
		patronvideos0  = 'Episodio \d+(.+)'
		#- Episodio 03:
		matches0 = re.compile(patronvideos0).findall(data)
		#logger.info(matches0)
	
	if len(matches0)>0:
		listavideos = servertools.findvideos(data)
		if (2*len(matches0))==len(listavideos):
			logger.info("es el doble, vamos a anadir un link de megavideo y uno de megaupload por cada fideo")
			length=len(matches0)
			for i in range(len(matches0)):
				
				logger.info(listavideos[0+i][0])
				logger.info(listavideos[0+i][1])
				logger.info(listavideos[0+i][2])
				#logger.info(matches0)
				xbmctools.addvideo( CHANNELNAME , strip_ml_tags(matches0[i]).replace(":","").strip() + " " + listavideos[0+i][0] , listavideos[0+i][1] , category , listavideos[0+i][2] )
				xbmctools.addvideo( CHANNELNAME , strip_ml_tags(matches0[i]).replace(":","").strip() + " " + listavideos[length+i][0] , listavideos[length+i][1] , category , listavideos[length+i][2] )
				 

		else:
			logger.info("vamos a ponerlos con el nombre del titulo todos, el mismo que el por defecto")
			logger.info("no hay capitulos")
			patronvideos  = '(.+?)\('
			matches = re.compile(patronvideos).findall(category)
		# ------------------------------------------------------------------------------------
		# Busca los enlaces a los videos
		# ------------------------------------------------------------------------------------
			listavideos = servertools.findvideos(data)
			
		
			for video in listavideos:
				xbmctools.addvideo( CHANNELNAME , matches[0] +  video[0] , video[1] , category , video[2] )
				#	addvideo( "Mafia rusa.2010 [Megavideo]" , "3KT95673" , "Megavideo" , "")"
			# ------------------------------------------------------------------------------------
		
				
			
		#for i in matches0:
			
		#	logger.info(strip_ml_tags(i))
			
			
		
	else: 
		logger.info("no hay capitulos")
		patronvideos  = '(.+?)\('
		matches = re.compile(patronvideos).findall(category)
	# ------------------------------------------------------------------------------------
	# Busca los enlaces a los videos
	# ------------------------------------------------------------------------------------
		listavideos = servertools.findvideos(data)
		
	
		for video in listavideos:
			xbmctools.addvideo( CHANNELNAME , matches[0] +  video[0] , video[1] , category , video[2] )
		# ------------------------------------------------------------------------------------


	patronvideos  = '<a rel="bookmark" href="../(.+?)">(.+?)<'
	matches = re.compile(patronvideos).findall(data)
	for z in matches:
		xbmctools.addfolder( CHANNELNAME, z[1], "http://documentalesatonline.loquenosecuenta.com/" + z[0], "detail")
		
	

	#<a href="http://programastvonline.blogspot.com/2010/09/cuarto-milenio-6x02-tardigrados-el.html">Cuarto Milenio 6&#215;02: Tardígrados, El Misterio Medjugorje, El fantasma del Verdugo y En los límites del miedo (26-09-10).Online.</a><br />
	patronvideos  = '<a href="(http://programastvonline.blogspot.com.+?)">(.+?)<'
	matches = re.compile(patronvideos).findall(data)
	#logger.info(str(len(matches)) + " no te veo!")
	for z in matches:
		#xbmctools.addnewfolder("programastv","detail",category,z[1],z[0],"","")
		#xbmctools.addnewfolder(canal, accion, category, title, url, thumbnail, plot, Serie, totalItems)
		xbmctools.addfolder("programastv", z[1], z[0], "parsear")
		#xbmctools.addnewfolder(canal, accion, category, title, url, thumbnail, plot, Serie, totalItems)
	#<a rel="bookmark" href="../2010/11/cuarto-milenio-6x06-el-pan-malditoanxelinossenales-del-espacio-exterior-y-murcia-la-torre-de-los-exorcismos-24-10-10-descargaronline/">Cuarto  Milenio 6×06: El pan maldito,Anxeliños,Señales del espacio exterior y  Murcia: La Torre de los exorcismos (24-10-10) (Descargaronline)</a><br />

	
	
	# 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 )