.*?src="(.*?)" alt="(.*?)">.*?'
- patron += '"quality">(.*?)<.*?href="(.*?)".*?
(\d{4}).*?"texto">(.*?)<.*?'
- matches = re.compile(patron,re.DOTALL).findall(data)
-
- for scrapedthumbnail, scrapedtitle, scrapedquality, scrapedurl, scrapedyear, scrapedplot in matches:
- url = scrapedurl
- thumbnail = scrapedthumbnail
- contentTitle = scrapedtitle
- quality = scrapedquality
- year = scrapedyear
- plot = scrapedplot
- if quality == "" or year=="" :
- title = contentTitle
- else:
- title = contentTitle + " (" + year + ") " + "[COLOR red]" + quality + "[/COLOR]"
-
- new_item = Item(channel=item.channel, action="findvideos", title=title, url=url, thumbnail=thumbnail, plot=plot,
- contentTitle = contentTitle , infoLabels={'year':year} )
-
- #if year:
- # tmdb.set_infoLabels_item(new_item)
- itemlist.append(new_item)
- tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
- try:
- patron = ' '
- next_page = re.compile(patron,re.DOTALL).findall(data)
- itemlist.append( Item(channel=item.channel , action="peliculas" , title="Siguiente >>" , text_color="yellow",
- url=next_page[0]))
-
- except: pass
- return itemlist
-
-
-def findvideos(item):
- logger.info()
- itemlist = []
-
- data = httptools.downloadpage(item.url).data
-
- patron = '| (.*?) | (.*?) | (.*?) | '
- matches = scrapertools.find_multiple_matches(data, patron)
-
- for url, server, calidad, idioma in matches:
- server = servertools.get_server_from_url(url)
- title = '%s [%s] [%s] [%s]' % (item.contentTitle, server, calidad, idioma)
- itemlist.append(item.clone(action="play", title=title, fulltitle = item.title, url=url, language = idioma,
- contentTitle = item.contentTitle, quality = calidad, server = server))
-
- if config.get_videolibrary_support() and len(itemlist) > 0 and item.extra !='findvideos' :
- itemlist.append(Item(channel=item.channel, title='[COLOR yellow]Agregar esta pelicula a la Videoteca[/COLOR]',
- url=item.url, action="add_pelicula_to_library", extra="findvideos",
- contentTitle = item.contentTitle))
- return itemlist
-
-# def play(item):
-# logger.info()
-# itemlist = servertools.find_video_items(data=item.url)
-#
-# for videoitem in itemlist:
-# videoitem.title = item.title
-# videoitem.fulltitle = item.fulltitle
-# videoitem.thumbnail = item.thumbnail
-# videoitem.channel = item.channel
-# videoitem.
-# return itemlist
From 2f4f2e8e503c19f04a2f8d394784e6177f58a786 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Mon, 5 Feb 2018 10:33:56 -0500
Subject: [PATCH 5/8] hdfull: fix
---
plugin.video.alfa/channels/hdfull.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py
index e0fec7f2..1d8f24dd 100644
--- a/plugin.video.alfa/channels/hdfull.py
+++ b/plugin.video.alfa/channels/hdfull.py
@@ -13,7 +13,7 @@ from core.item import Item
from platformcode import config, logger
from platformcode import platformtools
-host = "https://hdfull.tv"
+host = "https://hdfull.me"
if config.get_setting('hdfulluser', 'hdfull'):
account = True
@@ -355,14 +355,14 @@ def fichas(item):
if str != "": title += str
if item.title == "Buscar...":
- tag_type = scrapertools.get_match(url, 'l.tv/([^/]+)/')
+ bus = host[-4:]
+ tag_type = scrapertools.find_single_match(url, '%s/([^/]+)/' %bus)
title += " - [COLOR blue]" + tag_type.capitalize() + "[/COLOR]"
itemlist.append(
Item(channel=item.channel, action=action, title=title, url=url, fulltitle=title, thumbnail=thumbnail,
show=show, folder=True, contentType=contentType, contentTitle=contentTitle,
language =language, infoLabels=infoLabels))
-
## Paginación
next_page_url = scrapertools.find_single_match(data, '.raquo;')
if next_page_url != "":
@@ -760,7 +760,7 @@ def agrupa_datos(data):
def extrae_idiomas(bloqueidiomas):
- logger.info("idiomas=" + bloqueidiomas)
+ logger.info()
language=[]
textoidiomas = ''
patronidiomas = '([a-z0-9]+).png"'
From 90976ca700847f25ed7ddc582a8a761bf273f984 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Mon, 5 Feb 2018 12:31:07 -0500
Subject: [PATCH 6/8] Update hdfull.py
---
plugin.video.alfa/channels/hdfull.py | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py
index 1d8f24dd..08eee38d 100644
--- a/plugin.video.alfa/channels/hdfull.py
+++ b/plugin.video.alfa/channels/hdfull.py
@@ -39,23 +39,10 @@ def login():
httptools.downloadpage(host, post=post)
-def set_host():
- global host
- logger.info()
-
- hosts_list= [host, 'https://hdfull.me']
- for url in hosts_list:
- data = httptools.downloadpage(url, only_headers=True)
- if data.sucess:
- host = url
- break
def mainlist(item):
logger.info()
-
itemlist = []
- set_host()
-
itemlist.append(Item(channel=item.channel, action="menupeliculas", title="Películas", url=host, folder=True))
itemlist.append(Item(channel=item.channel, action="menuseries", title="Series", url=host, folder=True))
itemlist.append(Item(channel=item.channel, action="search", title="Buscar..."))
From dd1f51a87cfbd4f4d7ef8544239bb6c01383da22 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Mon, 5 Feb 2018 12:50:03 -0500
Subject: [PATCH 7/8] peliculasgratis: actualizado
---
plugin.video.alfa/channels/peliculasgratis.py | 50 +++++++++----------
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/plugin.video.alfa/channels/peliculasgratis.py b/plugin.video.alfa/channels/peliculasgratis.py
index a36563da..ebc98e85 100644
--- a/plugin.video.alfa/channels/peliculasgratis.py
+++ b/plugin.video.alfa/channels/peliculasgratis.py
@@ -46,20 +46,20 @@ def mainlist(item):
url= host,
thumbnail="http://imgur.com/fN2p6qH.png", fanart="http://imgur.com/b8OuBR2.jpg",
contentType="movie"))
- # itemlist.append(itemlist[-1].clone(title="[COLOR lightskyblue][B]Series[/B][/COLOR]", action="scraper",
- # url= host + "/lista-de-series",
- # thumbnail="http://imgur.com/Jia27Uc.png", fanart="http://imgur.com/b8OuBR2.jpg",
- # contentType="tvshow"))
- itemlist.append(itemlist[-1].clone(title="[COLOR lightskyblue][B]Buscar[/B][/COLOR]",
+ itemlist.append(itemlist[-1].clone(title="[COLOR lightskyblue][B]Series[/B][/COLOR]", action="scraper",
+ url= host + "/lista-de-series",
+ thumbnail="http://imgur.com/Jia27Uc.png", fanart="http://imgur.com/b8OuBR2.jpg",
+ contentType="tvshow"))
+ itemlist.append(itemlist[-1].clone(title="[COLOR lightskyblue][B]Buscar[/B][/COLOR]", action = "",
thumbnail="http://imgur.com/mwTwfN7.png", fanart="http://imgur.com/b8OuBR2.jpg"))
itemlist.append(
itemlist[-1].clone(title="[COLOR lightskyblue][B] Buscar Película[/B][/COLOR]", action="search", url="",
thumbnail="http://imgur.com/mwTwfN7.png", fanart="http://imgur.com/b8OuBR2.jpg",
contentType="movie"))
- # itemlist.append(
- # itemlist[-1].clone(title="[COLOR lightskyblue][B] Buscar Serie[/B][/COLOR]", action="search", url="",
- # thumbnail="http://imgur.com/mwTwfN7.png", fanart="http://imgur.com/b8OuBR2.jpg",
- # contentType="tvshow"))
+ itemlist.append(
+ itemlist[-1].clone(title="[COLOR lightskyblue][B] Buscar Serie[/B][/COLOR]", action="search", url="",
+ thumbnail="http://imgur.com/mwTwfN7.png", fanart="http://imgur.com/b8OuBR2.jpg",
+ contentType="tvshow"))
return itemlist
@@ -119,11 +119,11 @@ def scraper(item):
patron += 'alt="([^"]+)".*?'
patron += '">([^<]+)<.*?'
patron += '(.*?)<\/a>
.*?'
- #patron += '<\/a><\/h3> (.*?)<'
+ patron += '<\/a><\/h3> (.*?)<'
action = "findvideos"
matches = scrapertools.find_multiple_matches(bloque_enlaces, patron)
- for url, thumb, title, quality, check_idioma in matches:
- #year = year.strip()
+ for url, thumb, title, quality, check_idioma, year in matches:
+ year = year.strip()
title_fan = title
title_item = "[COLOR cornflowerblue][B]" + title + "[/B][/COLOR]"
if item.contentType != "movie":
@@ -140,20 +140,20 @@ def scraper(item):
title = title
itemlist.append(
Item(channel=item.channel, title=title, fulltitle=title, url=host + url, action=action, thumbnail=thumb,
- fanart="http://imgur.com/nqmJozd.jpg", extra=title_fan + "|" + title_item + "|", show=title,
- contentType=item.contentType, folder=True, language = idiomas))
+ fanart="http://imgur.com/nqmJozd.jpg", extra=title_fan + "|" + title_item + "|" + year, show=title,
+ contentType=item.contentType, folder=True, language = idiomas, infoLabels={"year":year}))
## Paginación
- #tmdb.set_infoLabels(itemlist)
- #if year:
- next = scrapertools.find_single_match(data, 'href="([^"]+)" title="Siguiente página">')
- if len(next) > 0:
- url = next
- if not "http" in url:
- url = host + url
- itemlist.append(
- Item(channel=item.channel, action="scraper", title="[COLOR floralwhite][B]Siguiente[/B][/COLOR]",
- url=url, thumbnail="http://imgur.com/jhRFAmk.png", fanart="http://imgur.com/nqmJozd.jpg",
- extra=item.extra, contentType=item.contentType, folder=True))
+ tmdb.set_infoLabels(itemlist)
+ if year:
+ next = scrapertools.find_single_match(data, 'href="([^"]+)" title="Siguiente página">')
+ if len(next) > 0:
+ url = next
+ if not "http" in url:
+ url = host + url
+ itemlist.append(
+ Item(channel=item.channel, action="scraper", title="[COLOR floralwhite][B]Siguiente[/B][/COLOR]",
+ url=url, thumbnail="http://imgur.com/jhRFAmk.png", fanart="http://imgur.com/nqmJozd.jpg",
+ extra=item.extra, contentType=item.contentType, folder=True))
return itemlist
From c8c7b7060d73b5d4546180bf9840fb510cc9db2b Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Mon, 5 Feb 2018 12:50:58 -0500
Subject: [PATCH 8/8] tmdb: update
---
plugin.video.alfa/core/tmdb.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/plugin.video.alfa/core/tmdb.py b/plugin.video.alfa/core/tmdb.py
index a4e49866..d945e003 100755
--- a/plugin.video.alfa/core/tmdb.py
+++ b/plugin.video.alfa/core/tmdb.py
@@ -423,11 +423,11 @@ def set_infoLabels_item(item, seekTmdb=True, idioma_busqueda='es', lock=None):
otmdb = Tmdb(texto_buscado=titulo_buscado, tipo=tipo_busqueda, idioma_busqueda=idioma_busqueda,
filtro=item.infoLabels.get('filtro', {}), year=item.infoLabels['year'])
-
- if otmdb.get_id() and config.get_setting("tmdb_plus_info", default=False):
- # Si la busqueda ha dado resultado y no se esta buscando una lista de items,
- # realizar otra busqueda para ampliar la informacion
- otmdb = Tmdb(id_Tmdb=otmdb.result.get("id"), tipo=tipo_busqueda, idioma_busqueda=idioma_busqueda)
+ if otmdb is not None:
+ if otmdb.get_id() and config.get_setting("tmdb_plus_info", default=False):
+ # Si la busqueda ha dado resultado y no se esta buscando una lista de items,
+ # realizar otra busqueda para ampliar la informacion
+ otmdb = Tmdb(id_Tmdb=otmdb.result.get("id"), tipo=tipo_busqueda, idioma_busqueda=idioma_busqueda)
if lock and lock.locked():
lock.release()