diff --git a/plugin.video.alfa/channels/url.json b/plugin.video.alfa/channels/url.json index 9c22b22b..2ae39f42 100755 --- a/plugin.video.alfa/channels/url.json +++ b/plugin.video.alfa/channels/url.json @@ -3,6 +3,6 @@ "name": "Tengo una URL", "active": false, "adult": false, - "thumbnail": "url.png", - "banner": "url.png" + "thumbnail": "tengourl.png", + "banner": "tengourl.png" } \ No newline at end of file diff --git a/plugin.video.alfa/channels/url.py b/plugin.video.alfa/channels/url.py index db9879dc..6e0e61e9 100755 --- a/plugin.video.alfa/channels/url.py +++ b/plugin.video.alfa/channels/url.py @@ -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"