url: tengourl cambios cosmeticos
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
"name": "Tengo una URL",
|
||||
"active": false,
|
||||
"adult": false,
|
||||
"thumbnail": "url.png",
|
||||
"banner": "url.png"
|
||||
"thumbnail": "tengourl.png",
|
||||
"banner": "tengourl.png"
|
||||
}
|
||||
@@ -24,7 +24,7 @@ def mainlist(item):
|
||||
def search(item, texto):
|
||||
logger.info("texto=" + texto)
|
||||
|
||||
if not texto.startswith("http://"):
|
||||
if not texto.startswith("http"):
|
||||
texto = "http://" + texto
|
||||
|
||||
itemlist = []
|
||||
@@ -38,7 +38,7 @@ def search(item, texto):
|
||||
itemlist.append(
|
||||
Item(channel=item.channel, action="play", url=texto, server="directo", title="Ver enlace directo"))
|
||||
else:
|
||||
data = scrapertools.downloadpage(texto)
|
||||
data = httptools.downloadpage(texto).data
|
||||
itemlist = servertools.find_video_items(data=data)
|
||||
for item in itemlist:
|
||||
item.channel = "url"
|
||||
|
||||
Reference in New Issue
Block a user