Actualizados
peliscity: fix de enlaces
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import urlparse
|
import urlparse
|
||||||
@@ -136,33 +136,26 @@ def findvideos(item):
|
|||||||
|
|
||||||
# Descarga la pagina
|
# Descarga la pagina
|
||||||
data = scrapertools.cache_page(item.url)
|
data = scrapertools.cache_page(item.url)
|
||||||
patron = 'class="optxt"><span>(.*?)<.*?width.*?class="q">(.*?)</span.*?cursor: hand" rel="(.*?)"'
|
patron = 'cursor: hand" rel="(.*?)".*?class="optxt"><span>(.*?)<.*?width.*?class="q">(.*?)</span'
|
||||||
matches = re.compile(patron, re.DOTALL).findall(data)
|
matches = re.compile(patron, re.DOTALL).findall(data)
|
||||||
|
|
||||||
for scrapedidioma, scrapedcalidad, scrapedurl in matches:
|
for scrapedurl, scrapedidioma, scrapedcalidad in matches:
|
||||||
idioma = ""
|
idioma = ""
|
||||||
title = item.title + " [" + scrapedcalidad + "][" + scrapedidioma +"]"
|
title = "%s [" + scrapedcalidad + "][" + scrapedidioma +"]"
|
||||||
|
if "youtube" in scrapedurl:
|
||||||
|
scrapedurl += "&"
|
||||||
quality = scrapedcalidad
|
quality = scrapedcalidad
|
||||||
language = scrapedidioma
|
language = scrapedidioma
|
||||||
if not ("omina.farlante1" in scrapedurl or "404" in scrapedurl):
|
if not ("omina.farlante1" in scrapedurl or "404" in scrapedurl):
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
Item(channel=item.channel, action="play", title=title, fulltitle=title, url=scrapedurl,
|
Item(channel=item.channel, action="play", title=title, fulltitle=item.title, url=scrapedurl,
|
||||||
thumbnail="", plot=plot, show=item.show, quality= quality, language=language))
|
thumbnail=item.thumbnail, plot=plot, show=item.show, quality= quality, language=language, extra = item.thumbnail))
|
||||||
|
|
||||||
itemlist=servertools.get_servers_itemlist(itemlist)
|
|
||||||
|
|
||||||
|
itemlist=servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
def play(item):
|
def play(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
|
item.thumbnail = item.extra
|
||||||
itemlist = servertools.find_video_items(data=item.url)
|
return [item]
|
||||||
|
|
||||||
for videoitem in itemlist:
|
|
||||||
videoitem.title = item.title
|
|
||||||
videoitem.fulltitle = item.fulltitle
|
|
||||||
videoitem.thumbnail = item.thumbnail
|
|
||||||
videoitem.channel = item.channel
|
|
||||||
|
|
||||||
return itemlist
|
|
||||||
|
|||||||
Reference in New Issue
Block a user