url: tengourl cambios cosmeticos

This commit is contained in:
Intel1
2018-07-03 08:55:49 -05:00
committed by GitHub
parent a7dccc0f36
commit 7c25db4644
2 changed files with 4 additions and 4 deletions

View File

@@ -3,6 +3,6 @@
"name": "Tengo una URL",
"active": false,
"adult": false,
"thumbnail": "url.png",
"banner": "url.png"
"thumbnail": "tengourl.png",
"banner": "tengourl.png"
}

View File

@@ -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"