diff --git a/plugin.video.alfa/channels/altadefinizioneclick.py b/plugin.video.alfa/channels/altadefinizioneclick.py index e5141222..5ab1c0b5 100644 --- a/plugin.video.alfa/channels/altadefinizioneclick.py +++ b/plugin.video.alfa/channels/altadefinizioneclick.py @@ -7,11 +7,11 @@ import base64 import re import urlparse -from channels import autoplay -from channels import filtertools, support +from channels import autoplay, filtertools, support from core import scrapertools, servertools, httptools, tmdb from core.item import Item from platformcode import logger, config +from channelselector import thumb, get_thumb host = "https://altadefinizione.center" ### <- cambio Host da .fm a .center @@ -31,33 +31,36 @@ def mainlist(item): autoplay.init(item.channel, list_servers, list_quality) itemlist = [ Item(channel=item.channel, - title="[COLOR azure]Novita'[/COLOR]", + title="[B]Novità [/B]", action="fichas", url=host + "/nuove-uscite/", thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), Item(channel=item.channel, - title="[COLOR azure]Film per Genere[/COLOR]", + title="[B] > Film per Genere[/B]", action="genere", url=host, thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), Item(channel=item.channel, - title="[COLOR azure]Film per Anno[/COLOR]", + title="[B] > Film per Anno[/B]", action="anno", url=host, thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), Item(channel=item.channel, - title="[COLOR azure]Film Sub-Ita[/COLOR]", + title="Film Sub-Ita", action="fichas", url=host + "/sub-ita/", thumbnail="http://i.imgur.com/qUENzxl.png"), Item(channel=item.channel, - title="[COLOR orange]Cerca...[/COLOR]", + title="[COLOR blue]Cerca Film...[/COLOR]", action="search", extra="movie", thumbnail="http://dc467.4shared.com/img/fEbJqOum/s7/13feaf0c8c0/Search")] autoplay.show_option(item.channel, itemlist) + # auto thumb + itemlist=thumb(itemlist) + return itemlist @@ -167,7 +170,7 @@ def fichas(item): action="fichas", title="[COLOR lightgreen]" + config.get_localized_string(30992) + "[/COLOR]", url=next_page, - thumbnail="http://2.bp.blogspot.com/-fE9tzwmjaeQ/UcM2apxDtjI/AAAAAAAAeeg/WKSGM2TADLM/s1600/pager+old.png")) + thumbnail=thumb())) return itemlist @@ -212,7 +215,7 @@ def fichas_src(item): action="fichas_src", title="[COLOR lightgreen]" + config.get_localized_string(30992) + "[/COLOR]", url=next_page, - thumbnail="http://2.bp.blogspot.com/-fE9tzwmjaeQ/UcM2apxDtjI/AAAAAAAAeeg/WKSGM2TADLM/s1600/pager+old.png")) + thumbnail=thumb(item))) return itemlist diff --git a/plugin.video.alfa/channels/altadefinizionehd.py b/plugin.video.alfa/channels/altadefinizionehd.py index 7c92df51..431ee445 100644 --- a/plugin.video.alfa/channels/altadefinizionehd.py +++ b/plugin.video.alfa/channels/altadefinizionehd.py @@ -9,6 +9,7 @@ from core import httptools, scrapertools, servertools, tmdb from platformcode import logger, config from core.item import Item from channels import autoplay +from channelselector import thumb host = "https://altadefinizione.doctor" @@ -31,14 +32,14 @@ def mainlist(item): fanart=FilmFanart), Item(channel=item.channel, action="menu", - title="[B] > Genere[/B]", + title="[B] > Film per Genere[/B]", url=host, extra='GENERE', thumbnail=NovitaThumbnail, fanart=FilmFanart), Item(channel=item.channel, action="menu", - title="[B] > Anno[/B]", + title="[B] > Film per Anno[/B]", url=host, extra='ANNO', thumbnail=NovitaThumbnail, @@ -64,12 +65,14 @@ def mainlist(item): Item(channel=item.channel, action="search", extra="movie", - title="[B]Cerca...[/B]", + title="[COLOR blue]Cerca Film...[/COLOR]", thumbnail=CercaThumbnail, fanart=FilmFanart)] autoplay.show_option(item.channel, itemlist) + itemlist = thumb(itemlist) + return itemlist @@ -163,8 +166,9 @@ def video(item): itemlist.append( Item(channel=item.channel, action="video", - title="[COLOR blue]" + config.get_localized_string(30992) + " >[/COLOR]", - url=next_page)) + title="[COLOR blue]" + config.get_localized_string(30992) + "[/COLOR]", + url=next_page, + thumbnail=thumb())) return itemlist @@ -199,8 +203,9 @@ def search_page(item): itemlist.append( Item(channel=item.channel, action="search_page", - title="[COLOR blue]" + config.get_localized_string(30992) + " >[/COLOR]", - url=next_page)) + title="[COLOR blue]" + config.get_localized_string(30992) + "[/COLOR]", + url=next_page, + thumbnail=thumb())) return itemlist diff --git a/plugin.video.alfa/channels/casacinema.py b/plugin.video.alfa/channels/casacinema.py index a2d345dc..fd2cdaf4 100644 --- a/plugin.video.alfa/channels/casacinema.py +++ b/plugin.video.alfa/channels/casacinema.py @@ -9,6 +9,7 @@ from core import scrapertools, scrapertoolsV2, httptools, servertools, tmdb from channels import autoplay, filtertools, support from core.item import Item from platformcode import logger, config +from channelselector import thumb, get_thumb host = 'https://www.casacinema.site' @@ -30,49 +31,45 @@ def mainlist(item): autoplay.init(item.channel, list_servers, list_quality) itemlist = [Item(channel=item.channel, - title="[COLOR azure]Film - Novita'[/COLOR]", + title="[B]Film[/B]", action="peliculas", extra="movie", - url="%s/genere/film" % host, - thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), + url="%s/genere/film" % host), Item(channel=item.channel, - title="[COLOR azure]Film - HD[/COLOR]", + title="[B]Film - HD[/B]", action="peliculas", extra="movie", - url="%s/?s=[HD]" % host, - thumbnail="http://jcrent.com/apple%20tv%20final/HD.png"), + url="%s/?s=[HD]" % host), Item(channel=item.channel, - title="[COLOR azure]Categorie[/COLOR]", + title="[B] > Categorie[/B]", action="categorias", extra="movie", - url="%s/genere/film" % host, - thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), + url="%s/genere/film" % host), Item(channel=item.channel, - title="[COLOR azure]Film Sub - Ita[/COLOR]", + title="[B]Film Sub - Ita[/B]", action="peliculas", extra="movie", - url="%s/genere/sub-ita" % host, - thumbnail="http://i.imgur.com/qUENzxl.png"), + url="%s/genere/sub-ita" % host), Item(channel=item.channel, - title="[COLOR yellow]Cerca...[/COLOR]", + title="[COLOR blue]Cerca Film...[/COLOR]", action="search", - extra="movie", - thumbnail="http://dc467.4shared.com/img/fEbJqOum/s7/13feaf0c8c0/Search"), + extra="movie",), Item(channel=item.channel, - title="[COLOR azure]Serie TV[/COLOR]", + title="[B]Serie TV[/B]", extra="tvshow", action="peliculas_tv", - url="%s/genere/serie-tv" % host, - thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), + url="%s/genere/serie-tv" % host), Item(channel=item.channel, - title="[COLOR yellow]Cerca Serie TV...[/COLOR]", + title="[COLOR blue]Cerca Serie TV...[/COLOR]", action="search", - extra="tvshow", - thumbnail="http://dc467.4shared.com/img/fEbJqOum/s7/13feaf0c8c0/Search")] + extra="tvshow")] autoplay.show_option(item.channel, itemlist) + # auto thumb + itemlist=thumb(itemlist) + return itemlist @@ -125,6 +122,7 @@ def peliculas(item): # Carica la pagina data = httptools.downloadpage(item.url, headers=headers).data + logger.info('DATA=' +data) # Estrae i contenuti patron = '