ajustes
This commit is contained in:
@@ -313,7 +313,7 @@ def fichas(item):
|
|||||||
for scrapedurl, scrapedthumbnail, scrapedlangs, scrapedrating, scrapedtitle, scrapedid in matches:
|
for scrapedurl, scrapedthumbnail, scrapedlangs, scrapedrating, scrapedtitle, scrapedid in matches:
|
||||||
|
|
||||||
thumbnail = scrapedthumbnail.replace("/tthumb/130x190/", "/thumbs/")
|
thumbnail = scrapedthumbnail.replace("/tthumb/130x190/", "/thumbs/")
|
||||||
|
language = ''
|
||||||
title = scrapedtitle.strip()
|
title = scrapedtitle.strip()
|
||||||
show = title
|
show = title
|
||||||
contentTitle = scrapedtitle.strip()
|
contentTitle = scrapedtitle.strip()
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ def mainlist(item):
|
|||||||
|
|
||||||
set_category_context(new_item)
|
set_category_context(new_item)
|
||||||
itemlist.append(new_item)
|
itemlist.append(new_item)
|
||||||
logger.debug('list_canales: %s'%list_canales)
|
|
||||||
if list_canales['terror']:
|
if list_canales['terror']:
|
||||||
thumbnail = get_thumb("channels_horror.png")
|
thumbnail = get_thumb("channels_horror.png")
|
||||||
new_item = Item(channel=item.channel, action="novedades", extra="terror", title="Peliculas de miedo!",
|
new_item = Item(channel=item.channel, action="novedades", extra="terror", title="Peliculas de miedo!",
|
||||||
|
|||||||
@@ -123,7 +123,8 @@ def findvideos(item):
|
|||||||
logger.info()
|
logger.info()
|
||||||
|
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
language = ''
|
||||||
|
quality = ''
|
||||||
data = re.sub(r"\n|\r|\t|\s{2}|(<!--.*?-->)", "", httptools.downloadpage(item.url).data)
|
data = re.sub(r"\n|\r|\t|\s{2}|(<!--.*?-->)", "", httptools.downloadpage(item.url).data)
|
||||||
data = re.sub(r""", '"', data)
|
data = re.sub(r""", '"', data)
|
||||||
data = re.sub(r"<", '<', data)
|
data = re.sub(r"<", '<', data)
|
||||||
@@ -134,7 +135,9 @@ def findvideos(item):
|
|||||||
if len(titles) == len(urls):
|
if len(titles) == len(urls):
|
||||||
for i in range(0, len(titles)):
|
for i in range(0, len(titles)):
|
||||||
if i > 0:
|
if i > 0:
|
||||||
title = "Online %s " % titles[i].strip()
|
logger.debug('titles: %s' % titles[i].strip())
|
||||||
|
language, quality = titles[i].split(' - ')
|
||||||
|
title = "%s" % titles[i].strip()
|
||||||
else:
|
else:
|
||||||
title = titles[0]
|
title = titles[0]
|
||||||
|
|
||||||
@@ -143,8 +146,11 @@ def findvideos(item):
|
|||||||
.headers.get("location", "")
|
.headers.get("location", "")
|
||||||
videourl = servertools.findvideos(urls[i])
|
videourl = servertools.findvideos(urls[i])
|
||||||
if len(videourl) > 0:
|
if len(videourl) > 0:
|
||||||
|
server = videourl[0][0].capitalize()
|
||||||
|
title = '%s %s' % (server, title)
|
||||||
itemlist.append(Item(channel=item.channel, action="play", title=title, url=videourl[0][1],
|
itemlist.append(Item(channel=item.channel, action="play", title=title, url=videourl[0][1],
|
||||||
server=videourl[0][0], thumbnail=videourl[0][3], fulltitle=item.title))
|
server=server, thumbnail=videourl[0][3], fulltitle=item.title,
|
||||||
|
language=language, quality=quality ))
|
||||||
|
|
||||||
pattern = '<a[^>]+href="([^"]+)"[^<]+</a></td><td><span><img[^>]+>(.*?)</span></td><td><span><img[^>]+>(.*?)' \
|
pattern = '<a[^>]+href="([^"]+)"[^<]+</a></td><td><span><img[^>]+>(.*?)</span></td><td><span><img[^>]+>(.*?)' \
|
||||||
'</span></td><td><span>(.*?)</span>'
|
'</span></td><td><span>(.*?)</span>'
|
||||||
|
|||||||
Reference in New Issue
Block a user