Arreglos comentarios de Intel1
This commit is contained in:
committed by
GitHub
parent
e1fe886602
commit
9aae0e7a1b
@@ -1,4 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import re
|
||||
import urlparse
|
||||
@@ -52,10 +52,9 @@ def temporada(item):
|
||||
patron = '<a href="([^"]+)"><div class="item-temporada"><img alt=".+?" src="([^"]+)"><div .+?>Ver ([^"]+)<\/div><\/a>'
|
||||
matches = scrapertools.find_multiple_matches(data, patron)
|
||||
for link,thumbnail,name in matches:
|
||||
title=name
|
||||
url=host+link
|
||||
thumbnail=host+thumbnail
|
||||
itemlist.append(item.clone(title=title, url=url, thumbnail=thumbnail,action="episodios",context=autoplay.context))
|
||||
itemlist.append(item.clone(title=name, url=url, thumbnail=thumbnail,action="episodios",context=autoplay.context))
|
||||
return itemlist
|
||||
|
||||
def episodios(item):
|
||||
@@ -81,8 +80,8 @@ def episodios(item):
|
||||
itemlist.append(Item(channel=item.channel, action="findvideos",
|
||||
title=title, url=url, show=show))
|
||||
|
||||
if config.get_videolibrary_support() and len(itemlist) > 0:
|
||||
itemlist.append(Item(channel=item.channel, title="Añadir Temporada/Serie a la biblioteca de Kodi", url=item.url,
|
||||
if config.get_videolibrary_support() and len(itemlist) > 0:
|
||||
itemlist.append(Item(channel=item.channel, title="Añadir Temporada/Serie a la biblioteca de Kodi", url=item.url,
|
||||
action="add_serie_to_library", extra="episodios", show=show))
|
||||
return itemlist
|
||||
|
||||
@@ -92,8 +91,6 @@ def findvideos(item):
|
||||
itemlist = []
|
||||
id = ""
|
||||
type = ""
|
||||
|
||||
data = httptools.downloadpage(item.url).data
|
||||
it2 = servertools.get_servers_itemlist(itemlist, lambda i: i.title % i.server.capitalize())
|
||||
itemlist.extend(servertools.find_video_items(data=data))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user