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