diff --git a/channels.json b/channels.json index 53f1eb08..5572180b 100644 --- a/channels.json +++ b/channels.json @@ -3,50 +3,61 @@ "altadefinizione01_link": "http://altadefinizione01.link", "altadefinizione01": "https://altadefinizione01.to", "altadefinizioneclick": "https://altadefinizione.cloud", - - "altadefinizioneclub": "https://altadefinizione.cloud", - "altadefinizionehd": "https://altadefinizionehd.org", + "altadefinizionehd": "https://altadefinizione.doctor", "animeforge": "https://ww1.animeforce.org", "animeleggendari": "https://animepertutti.com", "animestream": "https://www.animeworld.it", + "animespace": "https://animespace.tv", "animesubita": "http://www.animesubita.org", "animetubeita": "http://www.animetubeita.com", "animevision": "https://www.animevision.it", "animeworld": "https://www.animeworld.it", "asiansubita": "http://asiansubita.altervista.org", "casacinema": "https://www.casacinema.site", - "cb01anime": "http://www.cineblog01.ink/anime/", - "cineblog01": "https://cb01.tools", - "documentaristreamingdb": "https://documentari-streaming-da.com", - "downloadme": "https://www.downloadme.gratis", - "dragonballforever": "https://www.dragonballforever.it", + "casacinemainfo": "https://www.casacinema.info", + "cb01anime": "http://www.cineblog01.ink", + "cinemalibero": "https://cinemalibero.icu", + "cinemastreaming": "https://cinemastreaming.icu", + "documentaristreamingda": "https://documentari-streaming-da.com", "dreamsub": "https://www.dreamsub.stream", "eurostreaming": "https://eurostreaming.gratis", "eurostreaming_video": "https://www.eurostreaming.best", "fastsubita": "http://fastsubita.com", "ffilms":"https://ffilms.org", + "filmigratis": "https://filmigratis.net", "filmgratis": "https://www.filmaltadefinizione.net", "filmontv": "https://www.comingsoon.it", "filmpertutti": "https://www.filmpertutti.tube", + "filmsenzalimiti": "https://filmsenzalimiti.best", + "filmsenzalimiticc": "https://www.filmsenzalimiti.host", "filmsenzalimiti_blue": "https://filmsenzalimiti.best", "filmsenzalimiti_info": "https://www.filmsenzalimiti.host", "filmstreaming01": "https://filmstreaming01.com", "filmstreamingita": "http://filmstreamingita.live", "guarda_serie": "https://guardaserie.site", "guardafilm": "http://www.guardafilm.top", + "guardarefilm": "https://www.guardarefilm.video", + "guardaseriecc": "https://guardaserie.site", + "guardaserieclick": "https://www.guardaserie.media", "guardaserie_stream": "https://guardaserie.co", "guardaserieonline": "http://www.guardaserie.media", "guardogratis": "http://guardogratis.io", "ilgeniodellostreaming": "https://ilgeniodellostreaming.pw", - "italiaserie": "https://italiaserie.org", "italiafilm": "https://www.italia-film.pw", - "italiafilmvedohd": "https://italiafilm.info", - "italiaserie_uno": "https:://italiaserie.org", + "italiafilmhd": "https://italiafilm.info", + "italiaserie": "https://italiaserie.org", + "itastreaming": "https://itastreaming.film", "majintoon": "https://toonitalia.org", + "mondolunatico": "http://mondolunatico.org", + "mondolunatico2": "http://mondolunatico.org/stream/", "mondoserietv": "https://mondoserietv.com", "piratestreaming": "https://www.piratestreaming.watch", "seriehd": "https://www.seriehd.info", "serietvonline": "https://serietvonline.xyz", + "serietvsubita": "http://serietvsubita.xyz", "serietvu": "https://www.serietvu.club", - "tantifilm": "https://www.tantifilm.plus" + "streamingaltadefinizione": "https://www.streamingaltadefinizione.space", + "streamking": "http://streamking.cc", + "tantifilm": "https://www.tantifilm.plus", + "toonitalia": "https://toonitalia.org" } diff --git a/channels/LIKUOO.py b/channels/LIKUOO.py index fbeb3023..f42ed721 100644 --- a/channels/LIKUOO.py +++ b/channels/LIKUOO.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.likuoo.video' diff --git a/channels/TXXX.py b/channels/TXXX.py index 26c8137a..253b7312 100644 --- a/channels/TXXX.py +++ b/channels/TXXX.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.txxx.com' diff --git a/channels/absoluporn.py b/channels/absoluporn.py index f5fce909..e5774e59 100644 --- a/channels/absoluporn.py +++ b/channels/absoluporn.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.absoluporn.es' diff --git a/channels/alsoporn.py b/channels/alsoporn.py index 1ada8f96..306d00d5 100644 --- a/channels/alsoporn.py +++ b/channels/alsoporn.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.alsoporn.com' diff --git a/channels/altadefinizione01.py b/channels/altadefinizione01.py index a9f17b5e..dd186a5e 100644 --- a/channels/altadefinizione01.py +++ b/channels/altadefinizione01.py @@ -12,7 +12,7 @@ from specials import autoplay #host = "https://altadefinizione01.to" __channel__ = "altadefinizione01" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() diff --git a/channels/altadefinizione01_club.py b/channels/altadefinizione01_club.py index b24bf0b2..47acc6d8 100644 --- a/channels/altadefinizione01_club.py +++ b/channels/altadefinizione01_club.py @@ -49,9 +49,9 @@ def mainlist(item): support.menu(itemlist, 'Film Ultimi Arrivi bold', 'peliculas', host, args='pellicola') support.menu(itemlist, 'Genere', 'categorie', host, args='genres') support.menu(itemlist, 'Per anno submenu', 'categorie', host, args=['Film per Anno','years']) - support.menu(itemlist, 'Per lettera', 'categorie', host+'catalog/a/', args=['Film per Lettera','orderalf']) - support.menu(itemlist, 'Al Cinema bold', 'peliculas', host+'cinema/', args='pellicola') - support.menu(itemlist, 'Sub-ITA bold', 'peliculas', host+'sub-ita/', args='pellicola') + support.menu(itemlist, 'Per lettera', 'categorie', host + '/catalog/a/', args=['Film per Lettera','orderalf']) + support.menu(itemlist, 'Al Cinema bold', 'peliculas', host + '/cinema/', args='pellicola') + support.menu(itemlist, 'Sub-ITA bold', 'peliculas', host + '/sub-ita/', args='pellicola') support.menu(itemlist, 'Cerca film submenu', 'search', host) autoplay.show_option(item.channel, itemlist) @@ -234,7 +234,7 @@ def search(item, text): logger.info("%s mainlist search log: %s %s" % (__channel__, item, text)) itemlist = [] text = text.replace(" ", "+") - item.url = host+"index.php?do=search&story=%s&subaction=search" % (text) + item.url = host + "/index.php?do=search&story=%s&subaction=search" % (text) #item.extra = "search" try: return peliculas(item) diff --git a/channels/altadefinizione01_link.py b/channels/altadefinizione01_link.py index b46e87b6..584e175b 100644 --- a/channels/altadefinizione01_link.py +++ b/channels/altadefinizione01_link.py @@ -34,24 +34,17 @@ def mainlist(item): support.menu(itemlist, 'Film per Genere', 'genres', host, args='genres') support.menu(itemlist, 'Film per Anno submenu', 'genres', host, args='years') support.menu(itemlist, 'Film per Qualità submenu', 'genres', host, args='quality') - support.menu(itemlist, 'Al Cinema bold', 'peliculas', host+'film-del-cinema') - support.menu(itemlist, 'Popolari bold', 'peliculas', host+'piu-visti.html') + support.menu(itemlist, 'Al Cinema bold', 'peliculas', host + '/film-del-cinema') + support.menu(itemlist, 'Popolari bold', 'peliculas', host + '/piu-visti.html') support.menu(itemlist, 'Mi sento fortunato bold', 'genres', host, args='lucky') - support.menu(itemlist, 'Sub-ITA bold', 'peliculas', host+'film-sub-ita/') + support.menu(itemlist, 'Sub-ITA bold', 'peliculas', host + '/film-sub-ita/') support.menu(itemlist, 'Cerca film submenu', 'search', host) # per autoplay autoplay.init(item.channel, list_servers, list_quality) autoplay.show_option(item.channel, itemlist) - itemlist.append( - Item(channel='setting', - action="channel_config", - title=support.typo("Configurazione Canale color lime"), - config=item.channel, - folder=False, - thumbnail=channelselector.get_thumb('setting_0.png')) - ) + support.channel_config(item, itemlist) return itemlist diff --git a/channels/altadefinizionehd.py b/channels/altadefinizionehd.py index 33693d4f..08757113 100644 --- a/channels/altadefinizionehd.py +++ b/channels/altadefinizionehd.py @@ -10,7 +10,8 @@ from core.item import Item from platformcode import logger, config from specials import autoplay -host = "https://altadefinizione.doctor" +__channel__ = 'altadefinizionehd' +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/analdin.py b/channels/analdin.py index 9520d314..278d1433 100644 --- a/channels/analdin.py +++ b/channels/analdin.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.analdin.com/es' diff --git a/channels/animeforce.py b/channels/animeforce.py index 4113f6c5..54a14d80 100644 --- a/channels/animeforce.py +++ b/channels/animeforce.py @@ -12,7 +12,8 @@ from core.item import Item from platformcode import config, logger from servers.decrypters import adfly -host = "https://ww1.animeforce.org" +__channel__ = "animeforge" +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() @@ -477,7 +478,7 @@ def scrapedSingle(url="", single="", patron=""): def Crea_Url(pagina="1", azione="ricerca", categoria="", nome=""): # esempio # chiamate.php?azione=ricerca&cat=&nome=&pag= - Stringa = host + "chiamate.php?azione=" + azione + "&cat=" + categoria + "&nome=" + nome + "&pag=" + pagina + Stringa = host + "/chiamate.php?azione=" + azione + "&cat=" + categoria + "&nome=" + nome + "&pag=" + pagina log("crea_Url", Stringa) return Stringa diff --git a/channels/animeleggendari.py b/channels/animeleggendari.py index 8ac1b391..dfc9371e 100644 --- a/channels/animeleggendari.py +++ b/channels/animeleggendari.py @@ -12,7 +12,8 @@ from lib.js2py.host import jsfunctions from platformcode import logger, config from specials import autoplay, autorenumber -host = "https://animepertutti.com" +__channel__ = "animeleggendari" +host = config.get_channel_url(__channel__) # Richiesto per Autoplay IDIOMAS = {'Italiano': 'IT'} @@ -34,7 +35,6 @@ def mainlist(item): menu(itemlist, 'Anime in Corso', 'peliculas', host + '/category/anime-in-corso/') menu(itemlist, 'Genere', 'genres', host) menu(itemlist, 'Cerca...', 'search') - menu(itemlist, 'novita', 'newest') autoplay.init(item.channel, list_servers, list_quality) autoplay.show_option(item.channel, itemlist) @@ -137,7 +137,7 @@ def episodios(item): itemlist.append( Item(channel=item.channel, action='findvideos', - contentType=item.contentType, + contentType='episode', title=support.typo('Episodio 1 bold'), fulltitle=item.title, url=item.url, @@ -149,7 +149,7 @@ def episodios(item): itemlist.append( Item(channel=item.channel, action='findvideos', - contentType=item.contentType, + contentType='episode', title=support.typo('Episodio ' + number,'bold'), fulltitle=item.title, url=url, diff --git a/channels/animespace.py b/channels/animespace.py index aa910a86..4f9b88b0 100644 --- a/channels/animespace.py +++ b/channels/animespace.py @@ -15,7 +15,8 @@ from platformcode import logger, config from specials import autoplay from specials import renumbertools -host = "https://animespace.tv/" +__channel__ = "animespace" +host = config.get_channel_url(__channel__) checklinks = config.get_setting('checklinks', 'animespace') checklinks_number = config.get_setting('checklinks_number', 'animespace') @@ -41,42 +42,42 @@ def mainlist(item): itemlist.append(Item(channel=item.channel, title="Ultimas", action="list_all", thumbnail=get_thumb('last', auto=True), - url=host + 'emision')) + url=host + '/emision')) itemlist.append(Item(channel=item.channel, title="Todas", action="list_all", thumbnail=get_thumb('all', auto=True), - url=host + 'animes')) + url=host + '/animes')) itemlist.append(Item(channel=item.channel, title="Anime", action="list_all", thumbnail=get_thumb('anime', auto=True), - url=host + 'categoria/anime')) + url=host + '/categoria/anime')) itemlist.append(Item(channel=item.channel, title="Películas", action="list_all", thumbnail=get_thumb('movies', auto=True), - url=host + 'categoria/pelicula')) + url=host + '/categoria/pelicula')) itemlist.append(Item(channel=item.channel, title="OVAs", action="list_all", thumbnail='', - url=host + 'categoria/ova')) + url=host + '/categoria/ova')) itemlist.append(Item(channel=item.channel, title="ONAs", action="list_all", thumbnail='', - url=host + 'categoria/ona')) + url=host + '/categoria/ona')) itemlist.append(Item(channel=item.channel, title="Especiales", action="list_all", thumbnail='', - url=host + 'categoria/especial')) + url=host + '/categoria/especial')) itemlist.append(Item(channel=item.channel, title="Buscar", action="search", - url=host + 'search?q=', + url=host + '/search?q=', thumbnail=get_thumb('search', auto=True), fanart='https://s30.postimg.cc/pei7txpa9/buscar.png' )) diff --git a/channels/animesubita.py b/channels/animesubita.py index 5559f58b..80e4e08a 100644 --- a/channels/animesubita.py +++ b/channels/animesubita.py @@ -13,8 +13,8 @@ from core import httptools, scrapertools, tmdb, support from core.item import Item from platformcode import logger, config -host = "http://www.animesubita.org" - +__channel__ = "animesubita" +host = config.get_channel_url(__channel__) PERPAGE = 20 # ---------------------------------------------------------------------------------------------------------------- diff --git a/channels/animetubeita.py b/channels/animetubeita.py index 817d77d7..d261c048 100644 --- a/channels/animetubeita.py +++ b/channels/animetubeita.py @@ -10,7 +10,8 @@ from core import httptools, scrapertools, tmdb from core.item import Item from platformcode import logger, config -host = "http://www.animetubeita.com" +__channel__ = "animetubeita" +host = config.get_channel_url(__channel__) hostlista = host + "/lista-anime/" hostgeneri = host + "/generi/" hostcorso = host + "/category/serie-in-corso/" diff --git a/channels/animeworld.py b/channels/animeworld.py index 8272fbe3..aa8204e0 100644 --- a/channels/animeworld.py +++ b/channels/animeworld.py @@ -13,7 +13,8 @@ from core.item import Item from platformcode import logger, config from specials import autoplay, autorenumber -host = config.get_setting("channel_host", 'animeworld') +__channel__ = "animeworld" +host = config.get_channel_url(__channel__) headers = [['Referer', host]] IDIOMAS = {'Italiano': 'Italiano'} @@ -229,7 +230,7 @@ def video(item): # Controlla se sono Episodi o Film if movie == '': - contentType = 'episode' + contentType = 'tvshow' action = 'episodios' else: contentType = 'movie' @@ -256,65 +257,45 @@ def video(item): def episodios(item): log() - itemlist = [] - - data = httptools.downloadpage(item.url, headers=headers).data.replace('\n', '') - block1 = scrapertoolsV2.find_single_match(data, r'
(.*?)
') - - patron = r'
  • (.*?)<\/a>' - matches = re.compile(patron, re.DOTALL).findall(block) - - extra = {} - extra['data'] = block1.replace('Attenzione! Non ci sono episodi in questa sezione, torna indietro!.','') + itemlist = [] + + patron_block = r'
  • ', - '
  • ([^<]+)
  • ', "episodios") + '
  • ([^<]+)
  • ', "episodios") def build_itemlist(item, re_bloque, re_patron, iaction): diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 208c2c87..38cbcaf6 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -118,13 +118,19 @@ def last(item): itemlist = [] infoLabels = {} quality = '' + PERPAGE = 20 + page = 1 + if item.page: + page = item.page if item.contentType == 'tvshow': matches = support.match(item, r']+)".*?>([^(:(|[)]+)([^<]+)<\/a>', '
    >>>>>> kodiondemand-master host = config.get_setting("channel_host", __channel__) headers = [['Referer', host]] @@ -46,6 +51,7 @@ def mainlist(item): autoplay.show_option(item.channel, itemlist) # Necessario per Autoplay (Menu Configurazione) +<<<<<<< HEAD itemlist.append( Item(channel='setting', action="channel_config", @@ -54,6 +60,9 @@ def mainlist(item): folder=False, thumbnail=channelselector.get_thumb('setting_0.png')) ) +======= + support.channel_config(item, itemlist) +>>>>>>> kodiondemand-master return itemlist diff --git a/channels/cinemastreaming.py b/channels/cinemastreaming.py index 23df9ca4..ae7c72ef 100644 --- a/channels/cinemastreaming.py +++ b/channels/cinemastreaming.py @@ -7,9 +7,10 @@ import re from core import scrapertools, httptools, scrapertoolsV2, support from core.item import Item from specials import autoplay +from platformcode import config -host = 'https://cinemastreaming.icu' - +__channel__ = "cinemastreaming" +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['openload', 'streamango'] diff --git a/channels/cliphunter.py b/channels/cliphunter.py index cf044a34..7ba4ad64 100644 --- a/channels/cliphunter.py +++ b/channels/cliphunter.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.cliphunter.com' diff --git a/channels/coomelonitas.py b/channels/coomelonitas.py index 05d9164e..5d44526a 100644 --- a/channels/coomelonitas.py +++ b/channels/coomelonitas.py @@ -6,6 +6,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host ='http://www.coomelonitas.com' diff --git a/channels/czechvideo.py b/channels/czechvideo.py index 3dd4bbb8..a750ede4 100644 --- a/channels/czechvideo.py +++ b/channels/czechvideo.py @@ -9,6 +9,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://czechvideo.org' diff --git a/channels/datoporn.py b/channels/datoporn.py index c5d2bfec..507efb1d 100644 --- a/channels/datoporn.py +++ b/channels/datoporn.py @@ -5,6 +5,7 @@ import re from core import httptools from core import scrapertools from platformcode import logger +from platformcode import config def mainlist(item): diff --git a/channels/documentaristreamingda.py b/channels/documentaristreamingda.py index bfed21b3..84fae55d 100644 --- a/channels/documentaristreamingda.py +++ b/channels/documentaristreamingda.py @@ -10,8 +10,8 @@ from core import httptools, scrapertools, servertools from core.item import Item from platformcode import logger, config -host = "https://documentari-streaming-da.com" - +__channel__ = "documentaristreamingda" +host = config.get_channel_url(__channel__) def mainlist(item): logger.info("kod.documentaristreamingda mainlist") diff --git a/channels/dreamsub.py b/channels/dreamsub.py index c5516fae..cd24e192 100644 --- a/channels/dreamsub.py +++ b/channels/dreamsub.py @@ -10,8 +10,8 @@ from core import scrapertools, httptools, servertools, tmdb from core.item import Item from platformcode import logger, config -host = "https://www.dreamsub.co" - +__channel__ = "dreamsub" +host = config.get_channel_url(__channel__) def mainlist(item): logger.info("kod.dreamsub mainlist") diff --git a/channels/elreyx.py b/channels/elreyx.py index 33f78914..8f6a20a7 100644 --- a/channels/elreyx.py +++ b/channels/elreyx.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.elreyx.com' diff --git a/channels/eporner.py b/channels/eporner.py index 7cb78df8..00b0e4b2 100644 --- a/channels/eporner.py +++ b/channels/eporner.py @@ -7,6 +7,7 @@ import urlparse from core import httptools from core import jsontools from platformcode import logger +from platformcode import config def mainlist(item): diff --git a/channels/eroticage.py b/channels/eroticage.py index eb42dd31..568b39a0 100644 --- a/channels/eroticage.py +++ b/channels/eroticage.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.eroticage.net' diff --git a/channels/eroticasonlinetv.py b/channels/eroticasonlinetv.py index 6f6c6017..b3d7f3d6 100644 --- a/channels/eroticasonlinetv.py +++ b/channels/eroticasonlinetv.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.peliculaseroticasonline.tv' diff --git a/channels/erotik.py b/channels/erotik.py index fb8168f1..f39befd7 100644 --- a/channels/erotik.py +++ b/channels/erotik.py @@ -9,6 +9,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = "https://www.youfreeporntube.net" diff --git a/channels/eurostreaming.py b/channels/eurostreaming.py index b159b271..90b7043f 100644 --- a/channels/eurostreaming.py +++ b/channels/eurostreaming.py @@ -24,9 +24,13 @@ from core.item import Item from platformcode import logger, config __channel__ = "eurostreaming" +<<<<<<< HEAD #host = "https://eurostreaming.cafe/" host = config.get_setting("channel_host", __channel__) +======= +host = config.get_channel_url(__channel__) +>>>>>>> kodiondemand-master headers = ['Referer', host] list_servers = ['verystream', 'wstream', 'speedvideo', 'flashx', 'nowvideo', 'streamango', 'deltabit', 'openload'] @@ -44,9 +48,15 @@ def mainlist(item): itemlist = [] support.menu(itemlist, 'Serie TV', 'serietv', host, contentType = 'episode') # mettere sempre episode per serietv, anime!! +<<<<<<< HEAD support.menu(itemlist, 'Serie TV Archivio submenu', 'serietv', host + "category/serie-tv-archive/", contentType = 'episode') support.menu(itemlist, 'Ultimi Aggiornamenti submenu', 'serietv', host + 'aggiornamento-episodi/', args='True', contentType = 'episode') support.menu(itemlist, 'Anime / Cartoni', 'serietv', host + 'category/anime-cartoni-animati/', contentType = 'episode') +======= + support.menu(itemlist, 'Serie TV Archivio submenu', 'serietv', host + "/category/serie-tv-archive/", contentType = 'episode') + support.menu(itemlist, 'Ultimi Aggiornamenti submenu', 'serietv', host + '/aggiornamento-episodi/', args='True', contentType = 'episode') + support.menu(itemlist, 'Anime / Cartoni', 'serietv', host + '/category/anime-cartoni-animati/', contentType = 'episode') +>>>>>>> kodiondemand-master support.menu(itemlist, 'Cerca...', 'search', host, contentType = 'episode') ## itemlist = filtertools.show_option(itemlist, item.channel, list_language, list_quality) @@ -54,6 +64,7 @@ def mainlist(item): autoplay.init(item.channel, list_servers, list_quality) autoplay.show_option(item.channel, itemlist) +<<<<<<< HEAD itemlist.append( Item(channel='setting', action="channel_config", @@ -62,6 +73,9 @@ def mainlist(item): folder=False, thumbnail=channelselector.get_thumb('setting_0.png')) ) +======= + support.channel_config(item, itemlist) +>>>>>>> kodiondemand-master return itemlist @@ -138,10 +152,17 @@ def episodios(item): def findvideos(item): support.log() itemlist =[] +<<<<<<< HEAD # Requerido para FilterTools ## itemlist = filtertools.get_links(itemlist, item, list_language) +======= + + # Requerido para FilterTools +## itemlist = filtertools.get_links(itemlist, item, list_language) + +>>>>>>> kodiondemand-master itemlist = support.server(item, item.url) ## support.videolibrary(itemlist, item) diff --git a/channels/fapality.py b/channels/fapality.py index 780f9796..20c77965 100644 --- a/channels/fapality.py +++ b/channels/fapality.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://fapality.com' diff --git a/channels/fastsubita.py b/channels/fastsubita.py index 0dae9dbe..bc7e1c5e 100644 --- a/channels/fastsubita.py +++ b/channels/fastsubita.py @@ -311,7 +311,7 @@ def episodios(item, itemlist=[]): itemlist.append( Item(channel=item.channel, action="findvideos", - contentTpye="tvshow", + contentTpye="episode", title=title, fulltitle=scrapedtitle, url=scrapedurl, diff --git a/channels/fetishshrine.py b/channels/fetishshrine.py index ddd0ac14..52168aae 100644 --- a/channels/fetishshrine.py +++ b/channels/fetishshrine.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.fetishshrine.com' diff --git a/channels/filmigratis.py b/channels/filmigratis.py index a900ae40..fd557f7d 100644 --- a/channels/filmigratis.py +++ b/channels/filmigratis.py @@ -9,10 +9,8 @@ from core.item import Item from platformcode import logger, config from specials import autoplay -channel = 'filmigratis' - -host = 'https://filmigratis.net' - +__channel__ = 'filmigratis' +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['openload', 'streamango', 'vidoza', 'okru'] @@ -32,9 +30,9 @@ def mainlist(item): support.menu(itemlist, 'Al Cinema bold', 'carousel', host, contentType='movie') support.menu(itemlist, 'Film alta definizione bold', 'peliculas', host, contentType='movie', args='film') support.menu(itemlist, 'Categorie Film bold', 'categorias_film', host , contentType='movie', args='film') - support.menu(itemlist, 'Categorie Serie bold', 'categorias_serie', host, contentType='episode', args='serie') + support.menu(itemlist, 'Categorie Serie bold', 'categorias_serie', host, contentType='tvshow', args='serie') support.menu(itemlist, '[COLOR blue]Cerca Film...[/COLOR] bold', 'search', host, contentType='movie', args='film') - support.menu(itemlist, '[COLOR blue]Cerca Serie...[/COLOR] bold', 'search', host, contentType='episode', args='serie') + support.menu(itemlist, '[COLOR blue]Cerca Serie...[/COLOR] bold', 'search', host, contentType='tvshow', args='serie') autoplay.init(item.channel, list_servers, list_quality) autoplay.show_option(item.channel, itemlist) @@ -142,7 +140,7 @@ def categorias_serie(item): for scrapedurl, scrapedtitle in matches: itemlist.append( Item(channel=channel, - contentType='episode', + contentType='tvshow', action="peliculas_serie", title="[COLOR azure]" + scrapedtitle + "[/COLOR]", url=scrapedurl, @@ -205,7 +203,7 @@ def peliculas_serie(item): itemlist.append( Item(channel=item.channel, action="episodios", - contentType='episode', + contentType='tvshow', title=scrapedtitle, fulltitle=scrapedtitle, url=scrapedurl, diff --git a/channels/filmoviXXX.py b/channels/filmoviXXX.py index b378e4d5..5669cfbe 100644 --- a/channels/filmoviXXX.py +++ b/channels/filmoviXXX.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config # BLOQUEO ESET INTERNET SECURITY diff --git a/channels/filmpertutti.py b/channels/filmpertutti.py index 7f7bc736..bf090b28 100644 --- a/channels/filmpertutti.py +++ b/channels/filmpertutti.py @@ -10,7 +10,8 @@ from core.item import Item from platformcode import config, logger from specials import autoplay -host = "https://www.filmpertutti.club" +__channel__ = 'filmpertutti' +host = config.get_channel_url(__channel__) headers = [['Referer', host]] list_servers = ['verystream', 'openload', 'streamango', 'wstream', 'akvideo'] list_quality = ['HD', 'SD'] diff --git a/channels/filmpornoita.py b/channels/filmpornoita.py index 880f1e1d..30171546 100644 --- a/channels/filmpornoita.py +++ b/channels/filmpornoita.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.streamxxxx.com' diff --git a/channels/filmsenzalimiti.py b/channels/filmsenzalimiti.py index 5723a1cd..b303fa1d 100644 --- a/channels/filmsenzalimiti.py +++ b/channels/filmsenzalimiti.py @@ -11,8 +11,7 @@ from platformcode import logger from specials import autoplay __channel__ = 'filmsenzalimiti' - -host = 'https://filmsenzalimiti.space' +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() diff --git a/channels/filmsenzalimiticc.py b/channels/filmsenzalimiticc.py index e4029d77..f4e25faf 100644 --- a/channels/filmsenzalimiticc.py +++ b/channels/filmsenzalimiticc.py @@ -15,6 +15,7 @@ from specials import autoplay # Necessario per Autoplay __channel__ = 'filmsenzalimiticc' +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() @@ -25,8 +26,6 @@ list_quality = ['default'] checklinks = config.get_setting('checklinks', 'filmsenzalimiticc') checklinks_number = config.get_setting('checklinks_number', 'filmsenzalimiticc') -host = 'https://filmsenzalimiti.pw' - headers = [['Referer', host]] @@ -53,7 +52,7 @@ def mainlist(item): action='video', title='Serie TV', url=host+'/serie-tv/', - contentType='episode', + contentType='tvshow', thumbnail=''), Item(channel=item.channel, action='sottomenu_serie', @@ -119,19 +118,19 @@ def sottomenu_serie(item): action='video', title='Serie TV HD', url=host+'/watch-genre/serie-altadefinizione/', - contentType='episode', + contentType='tvshow', thumbnail=''), Item(channel=item.channel, action='video', title='Miniserie', url=host+'/watch-genre/miniserie/', - contentType='episode', + contentType='tvshow', thumbnail=''), Item(channel=item.channel, action='video', title='Programmi TV', url=host+'/watch-genre/programmi-tv/', - contentType='episode', + contentType='tvshow', thumbnail='') ] @@ -166,7 +165,7 @@ def video(item): if item.contentType == 'movie': azione = 'findvideos' tipologia = 'movie' - if item.contentType == 'episode': + if item.contentType == 'tvshow': azione='episodios' tipologia = 'tv' diff --git a/channels/foxtube.py b/channels/foxtube.py index 4b45a898..e8ab9c34 100644 --- a/channels/foxtube.py +++ b/channels/foxtube.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://es.foxtube.com' diff --git a/channels/freeporn.py b/channels/freeporn.py index 3103651f..69e1f65d 100644 --- a/channels/freeporn.py +++ b/channels/freeporn.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://frprn.com' diff --git a/channels/freepornstreams.py b/channels/freepornstreams.py index c436dec8..adc9881f 100644 --- a/channels/freepornstreams.py +++ b/channels/freepornstreams.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://freepornstreams.org' diff --git a/channels/guardarefilm.py b/channels/guardarefilm.py index b3a5fb0d..3db3bee6 100644 --- a/channels/guardarefilm.py +++ b/channels/guardarefilm.py @@ -13,7 +13,8 @@ from core import servertools from core.item import Item from platformcode import logger, config -host = "https://www.guardarefilm.video" +__channel__ = 'guardarefilm' +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/guardaseriecc.py b/channels/guardaseriecc.py index 41fe6102..232f5a4e 100644 --- a/channels/guardaseriecc.py +++ b/channels/guardaseriecc.py @@ -12,7 +12,8 @@ from core.item import Item from lib import unshortenit from platformcode import logger, config -host = 'https://guardaserie.site' +__channel__ = 'guardaseriecc' +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/guardaserieclick.py b/channels/guardaserieclick.py index c451326f..e6ad4ef9 100644 --- a/channels/guardaserieclick.py +++ b/channels/guardaserieclick.py @@ -13,7 +13,7 @@ from core.support import log from platformcode import logger, config __channel__ = 'guardaserieclick' -host = config.get_setting("channel_host", __channel__) +host = config.get_channel_url(__channel__) headers = [['Referer', host]] IDIOMAS = {'Italiano': 'IT'} @@ -120,7 +120,7 @@ def nuoveserie(item): itemlist.append( Item(channel=item.channel, action="episodios", - contentType="episode", + contentType="tvshow", title=scrapedtitle, fulltitle=scrapedtitle, url=scrapedurl, @@ -165,7 +165,7 @@ def serietvaggiornate(item): itemlist.append( Item(channel=item.channel, action="findepvideos", - contentType="episode", + contentType="tvshow", title=title, show=scrapedtitle, fulltitle=scrapedtitle, diff --git a/channels/guardogratis.py b/channels/guardogratis.py index 03583c41..5a0a68b9 100644 --- a/channels/guardogratis.py +++ b/channels/guardogratis.py @@ -16,8 +16,7 @@ from core.item import Item from platformcode import logger, config __channel__ = "guardogratis" - -host = "https://guardogratis.it/" +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/hclips.py b/channels/hclips.py index 785ba47e..eda1f2dc 100644 --- a/channels/hclips.py +++ b/channels/hclips.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.hclips.com' diff --git a/channels/hdblog.py b/channels/hdblog.py index 805e3d84..c52e4266 100644 --- a/channels/hdblog.py +++ b/channels/hdblog.py @@ -9,6 +9,7 @@ import urlparse from core import httptools, scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = "https://www.hdblog.it" diff --git a/channels/hdzog.py b/channels/hdzog.py index 7fb08179..9418454b 100644 --- a/channels/hdzog.py +++ b/channels/hdzog.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.hdzog.com' diff --git a/channels/hellporno.py b/channels/hellporno.py index e6407aa0..cfff8d1c 100644 --- a/channels/hellporno.py +++ b/channels/hellporno.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://hellporno.com' diff --git a/channels/hentaiid.py b/channels/hentaiid.py index f1c69f7b..da7240b8 100644 --- a/channels/hentaiid.py +++ b/channels/hentaiid.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config CHANNEL_HOST = "http://hentai-id.tv/" diff --git a/channels/hotmovs.py b/channels/hotmovs.py index 78ebcb6a..55a7f1ec 100644 --- a/channels/hotmovs.py +++ b/channels/hotmovs.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://hotmovs.com' diff --git a/channels/ilgeniodellostreaming.py b/channels/ilgeniodellostreaming.py index 41befd74..972a7c0b 100644 --- a/channels/ilgeniodellostreaming.py +++ b/channels/ilgeniodellostreaming.py @@ -9,8 +9,10 @@ from platformcode import logger from core import scrapertoolsV2, httptools, tmdb, support from core.support import log, menu, aplay from core.item import Item +from platformcode import config -host = "https://ilgeniodellostreaming.pw" +__channel__ = 'ilgeniodellostreaming' +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() diff --git a/channels/ilgiramondo.py b/channels/ilgiramondo.py index e6b9116d..147c8d42 100644 --- a/channels/ilgiramondo.py +++ b/channels/ilgiramondo.py @@ -9,6 +9,7 @@ import urlparse from core import httptools, scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = "http://www.ilgiramondo.net" diff --git a/channels/italiafilm.py b/channels/italiafilm.py index fa437435..d763bd32 100644 --- a/channels/italiafilm.py +++ b/channels/italiafilm.py @@ -14,8 +14,8 @@ from core import tmdb from core.item import Item from platformcode import logger, config -host = "https://www.italia-film.pro" - +__channel__ = 'italiafilm' +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/italiafilmhd.py b/channels/italiafilmhd.py index 0aeeb189..67196dc7 100644 --- a/channels/italiafilmhd.py +++ b/channels/italiafilmhd.py @@ -20,8 +20,8 @@ list_quality = ['default'] checklinks = config.get_setting('checklinks', 'italiafilmhd') checklinks_number = config.get_setting('checklinks_number', 'italiafilmhd') -host = "https://italiafilm.network" - +__channel__ = 'italiafilmhd' +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/italiaserie.py b/channels/italiaserie.py index 0c1e46bf..98dc22de 100644 --- a/channels/italiaserie.py +++ b/channels/italiaserie.py @@ -11,9 +11,10 @@ from core import httptools, scrapertools from core import tmdb from core.item import Item from platformcode import logger +from platformcode import config -host = "https://italiaserie.org" - +__channel__ = 'italiaserie' +host = config.get_channel_url(__channel__) list_servers = ['speedvideo'] IDIOMAS = {'Italiano': 'IT'} diff --git a/channels/itastreaming.py b/channels/itastreaming.py index 9c9cf2e4..09802a29 100644 --- a/channels/itastreaming.py +++ b/channels/itastreaming.py @@ -9,8 +9,8 @@ from core import scrapertools, httptools, tmdb, support from core.item import Item from platformcode import logger, config -host = "https://itastreaming.film" - +__channel__ = 'itastreaming' +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/javlin.py b/channels/javlin.py index 39d12d60..6ab1d1f7 100644 --- a/channels/javlin.py +++ b/channels/javlin.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://javl.in' diff --git a/channels/javus.py b/channels/javus.py index 83979eb7..df1b7e82 100644 --- a/channels/javus.py +++ b/channels/javus.py @@ -6,6 +6,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://javus.net/' diff --git a/channels/javwhores.py b/channels/javwhores.py index 26105d9f..c974c92b 100644 --- a/channels/javwhores.py +++ b/channels/javwhores.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.javwhores.com/' diff --git a/channels/jizzbunker.py b/channels/jizzbunker.py index 4e148b76..c453be1d 100644 --- a/channels/jizzbunker.py +++ b/channels/jizzbunker.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://jizzbunker.com/es' diff --git a/channels/justporn.py b/channels/justporn.py index e44e5388..912ab1bb 100644 --- a/channels/justporn.py +++ b/channels/justporn.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://xxx.justporno.tv' diff --git a/channels/mondolunatico.py b/channels/mondolunatico.py index 864cc419..c6b1d485 100644 --- a/channels/mondolunatico.py +++ b/channels/mondolunatico.py @@ -19,9 +19,7 @@ from platformcode import config from platformcode import logger __channel__ = "mondolunatico" - -host = "http://mondolunatico.org" - +host = config.get_channel_url(__channel__) captcha_url = '%s/pass/CaptchaSecurityImages.php?width=100&height=40&characters=5' % host PERPAGE = 25 diff --git a/channels/mondolunatico2.py b/channels/mondolunatico2.py index 8de1db93..2f4b18ef 100644 --- a/channels/mondolunatico2.py +++ b/channels/mondolunatico2.py @@ -15,8 +15,8 @@ from core import scrapertools, httptools, tmdb, servertools, support, scrapertoo from core.item import Item from platformcode import logger, config, platformtools -channel = "mondolunatico2" -host = "https://mondolunatico.org/stream/" +__channel__ = "mondolunatico2" +host = config.get_channel_url(__channel__) headers = [['Referer', host]] list_servers = ['verystream', 'wstream', 'openload', 'streamango'] @@ -31,9 +31,9 @@ def mainlist(item): support.menu(itemlist, 'Ultime Richieste Inserite bold', 'carousel_request', host, contentType='movie', args='movies') support.menu(itemlist, 'Film Nelle Sale bold', 'carousel_cinema', host, contentType='movie', args='movies') support.menu(itemlist, 'Film Ultimi Inseriti submenu', 'carousel_last', host, contentType='movie', args='movies') - support.menu(itemlist, 'Film Top ImDb submenu', 'top_imdb', host + 'top-imdb/', contentType='movie', args='movies') + support.menu(itemlist, 'Film Top ImDb submenu', 'top_imdb', host + '/top-imdb/', contentType='movie', args='movies') support.menu(itemlist, 'Serie TV', 'carousel_episodes', host, contentType='episode', args='tvshows') - support.menu(itemlist, 'Serie TV Top ImDb submenu', 'top_serie', host + 'top-imdb/', contentType='episode', args='tvshows') + support.menu(itemlist, 'Serie TV Top ImDb submenu', 'top_serie', host + '/top-imdb/', contentType='episode', args='tvshows') support.menu(itemlist, '[COLOR blue]Cerca...[/COLOR] bold', 'search', host) autoplay.init(item.channel, list_servers, list_quality) autoplay.show_option(item.channel, itemlist) @@ -146,7 +146,7 @@ def top_serie(item): def search(item, texto): logger.info("[mondolunatico2.py] " + item.url + " search " + texto) - item.url = host + "?s=" + texto + item.url = host + "/?s=" + texto try: return peliculas(item) diff --git a/channels/mondoserietv.py b/channels/mondoserietv.py index 7ca2e916..a1e5d943 100644 --- a/channels/mondoserietv.py +++ b/channels/mondoserietv.py @@ -13,7 +13,9 @@ from lib.unshortenit import unshorten from platformcode import logger, config from specials import autoplay -host = "https://mondoserietv.com" +__channel__ = "mondoserietv" +host = config.get_channel_url(__channel__) + IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['akstream'] diff --git a/channels/mporno.py b/channels/mporno.py index a9501fa5..1071c972 100644 --- a/channels/mporno.py +++ b/channels/mporno.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://mporno.tv' diff --git a/channels/muchoporno.py b/channels/muchoporno.py index 7841a745..9af38852 100644 --- a/channels/muchoporno.py +++ b/channels/muchoporno.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.pornburst.xxx' diff --git a/channels/nuvid.py b/channels/nuvid.py index 36c0d630..4f6a64c6 100644 --- a/channels/nuvid.py +++ b/channels/nuvid.py @@ -8,6 +8,7 @@ import urlparse from core import httptools from core import scrapertools from platformcode import logger +from platformcode import config host = "https://www.nuvid.com" diff --git a/channels/pandamovie.py b/channels/pandamovie.py index febd0f7a..7680ad63 100644 --- a/channels/pandamovie.py +++ b/channels/pandamovie.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://pandamovies.pw' diff --git a/channels/peliculaseroticas.py b/channels/peliculaseroticas.py index 07557dc8..300cb786 100644 --- a/channels/peliculaseroticas.py +++ b/channels/peliculaseroticas.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config def mainlist(item): diff --git a/channels/pelisxporno.py b/channels/pelisxporno.py index ccea98ed..fcebb93d 100644 --- a/channels/pelisxporno.py +++ b/channels/pelisxporno.py @@ -3,6 +3,7 @@ from core import httptools from core import scrapertools from platformcode import logger +from platformcode import config def mainlist(item): diff --git a/channels/perfectgirls.py b/channels/perfectgirls.py index bd9ab819..b77d35e0 100644 --- a/channels/perfectgirls.py +++ b/channels/perfectgirls.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.perfectgirls.net' diff --git a/channels/piratestreaming.py b/channels/piratestreaming.py index f00b0b9d..f81bbc41 100644 --- a/channels/piratestreaming.py +++ b/channels/piratestreaming.py @@ -15,8 +15,7 @@ from platformcode import logger, config from specials import autoplay __channel__ = "piratestreaming" - -host = "http://www.piratestreaming.watch" +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() diff --git a/channels/playpornx.py b/channels/playpornx.py index a95d2d77..8a03ef39 100644 --- a/channels/playpornx.py +++ b/channels/playpornx.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = "https://watchfreexxx.net/" @@ -21,7 +22,7 @@ def mainlist(item): itemlist.append(Item(channel=item.channel, title="Escenas", action="lista", url = urlparse.urljoin(host, "category/xxx-scenes/"))) - itemlist.append(Item(channel=item.channel, title="Buscar", action="search", url=host+'?s=', + itemlist.append(Item(channel=item.channel, title="Buscar", action="search", url=host + '/?s=', thumbnail='https://s30.postimg.cc/pei7txpa9/buscar.png', fanart='https://s30.postimg.cc/pei7txpa9/buscar.png')) diff --git a/channels/porn300.py b/channels/porn300.py index e68dbc69..b222d71a 100644 --- a/channels/porn300.py +++ b/channels/porn300.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.porn300.com' diff --git a/channels/pornboss.py b/channels/pornboss.py index 3a8f00b2..c2ff0e62 100644 --- a/channels/pornboss.py +++ b/channels/pornboss.py @@ -7,6 +7,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://pornboss.org' diff --git a/channels/porneq.py b/channels/porneq.py index e7ecd0dc..5b4bee8a 100644 --- a/channels/porneq.py +++ b/channels/porneq.py @@ -6,6 +6,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://porneq.com' diff --git a/channels/pornhive.py b/channels/pornhive.py index 42c23f84..5df6411b 100644 --- a/channels/pornhive.py +++ b/channels/pornhive.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.pornhive.tv/en' diff --git a/channels/pornhub.py b/channels/pornhub.py index 55fafe6c..5c1fe01e 100644 --- a/channels/pornhub.py +++ b/channels/pornhub.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config def mainlist(item): diff --git a/channels/pornrewind.py b/channels/pornrewind.py index 918bead8..6dfde368 100644 --- a/channels/pornrewind.py +++ b/channels/pornrewind.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.pornrewind.com' diff --git a/channels/porntrex.py b/channels/porntrex.py index e11ac968..22d99f01 100644 --- a/channels/porntrex.py +++ b/channels/porntrex.py @@ -9,6 +9,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import config, logger +from platformcode import config host = "https://www.porntrex.com" perpage = 20 diff --git a/channels/programmazione.py b/channels/programmazione.py index 7ad79e71..15aa160d 100644 --- a/channels/programmazione.py +++ b/channels/programmazione.py @@ -10,6 +10,7 @@ import re from core import httptools, scrapertools from core.item import Item from platformcode import logger +from platformcode import config site = "https://www.youtube.com" diff --git a/channels/qwertty.py b/channels/qwertty.py index bfcfef78..73f2d01c 100644 --- a/channels/qwertty.py +++ b/channels/qwertty.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://qwertty.net' diff --git a/channels/redtube.py b/channels/redtube.py index c6ad55aa..faeaad1a 100644 --- a/channels/redtube.py +++ b/channels/redtube.py @@ -9,6 +9,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://es.redtube.com' diff --git a/channels/ricettevideo.py b/channels/ricettevideo.py index f304eef1..26374b3e 100644 --- a/channels/ricettevideo.py +++ b/channels/ricettevideo.py @@ -9,6 +9,7 @@ import urlparse from core import httptools, scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = "http://ricettevideo.net" diff --git a/channels/serietvonline.py b/channels/serietvonline.py index 120e4152..f0c06b1c 100644 --- a/channels/serietvonline.py +++ b/channels/serietvonline.py @@ -11,7 +11,8 @@ from lib import unshortenit from platformcode import logger, config from specials import autoplay -host = "https://serietvonline.live" +__channel__ = "serietvonline" +host = config.get_channel_url(__channel__) headers = [['Referer', host]] IDIOMAS = {'Italiano': 'IT'} diff --git a/channels/serietvsubita.py b/channels/serietvsubita.py index 693e7487..b84ef25f 100644 --- a/channels/serietvsubita.py +++ b/channels/serietvsubita.py @@ -13,7 +13,7 @@ from core.support import log from platformcode import logger, config __channel__ = "serietvsubita" -host = config.get_setting("channel_host", __channel__) +host = config.get_channel_url(__channel__) headers = [['Referer', host]] IDIOMAS = {'Italiano': 'IT'} diff --git a/channels/serietvu.py b/channels/serietvu.py index 8280e6f8..0a9bbc2d 100644 --- a/channels/serietvu.py +++ b/channels/serietvu.py @@ -11,7 +11,7 @@ from core.support import log from platformcode import logger, config __channel__ = 'serietvu' -host = config.get_setting("channel_host", __channel__) +host = config.get_channel_url(__channel__) headers = [['Referer', host]] IDIOMAS = {'Italiano': 'IT'} diff --git a/channels/serviporno.py b/channels/serviporno.py index 704b1496..773d51cc 100644 --- a/channels/serviporno.py +++ b/channels/serviporno.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = "https://www.serviporno.com" diff --git a/channels/sexgalaxy.py b/channels/sexgalaxy.py index 9cc93f00..0228b622 100644 --- a/channels/sexgalaxy.py +++ b/channels/sexgalaxy.py @@ -9,6 +9,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://sexgalaxy.net' diff --git a/channels/sexkino.py b/channels/sexkino.py index 8eb31482..0aca2759 100644 --- a/channels/sexkino.py +++ b/channels/sexkino.py @@ -9,6 +9,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://sexkino.to' diff --git a/channels/sexofilm.py b/channels/sexofilm.py index 1d7012dd..8a1eb01f 100644 --- a/channels/sexofilm.py +++ b/channels/sexofilm.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://sexofilm.com' diff --git a/channels/siska.py b/channels/siska.py index 4fce0a75..b38151da 100644 --- a/channels/siska.py +++ b/channels/siska.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.siska.tv/' @@ -15,11 +16,11 @@ def mainlist(item): logger.info() itemlist = [] - itemlist.append( Item(channel=item.channel, title="Nuevos" , action="lista", url=host + "newVideo.php?language=en")) - itemlist.append( Item(channel=item.channel, title="Mas vistos" , action="lista", url=host + "MostViewed.php?views=month&language=en")) - itemlist.append( Item(channel=item.channel, title="Canal" , action="categorias", url=host + "Channel.php?language=en")) + itemlist.append( Item(channel=item.channel, title="Nuevos" , action="lista", url=host + "/newVideo.php?language=en")) + itemlist.append( Item(channel=item.channel, title="Mas vistos" , action="lista", url=host + "/MostViewed.php?views=month&language=en")) + itemlist.append( Item(channel=item.channel, title="Canal" , action="categorias", url=host + "/Channel.php?language=en")) - itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host + "index.php?category=1&language=en")) + itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host + "/index.php?category=1&language=en")) itemlist.append( Item(channel=item.channel, title="Buscar", action="search")) return itemlist @@ -27,7 +28,7 @@ def mainlist(item): def search(item, texto): logger.info() texto = texto.replace(" ", "+") - item.url = host + "search.php?q=%s&language=en&search=Search" % texto + item.url = host + "/search.php?q=%s&language=en&search=Search" % texto try: return lista(item) except: diff --git a/channels/sleazemovies.py b/channels/sleazemovies.py index 1f7d8744..a3574ee5 100644 --- a/channels/sleazemovies.py +++ b/channels/sleazemovies.py @@ -71,7 +71,7 @@ def search(item, texto): logger.info() if texto != "": texto = texto.replace(" ", "+") - item.url = host + "?s=" + texto + item.url = host + "/?s=" + texto item.extra = "busqueda" try: return list_all(item) diff --git a/channels/spankbang.py b/channels/spankbang.py index f6c25fcf..30834ae0 100644 --- a/channels/spankbang.py +++ b/channels/spankbang.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://es.spankbang.com' diff --git a/channels/spankwire.py b/channels/spankwire.py index 38522cd6..67a60e86 100644 --- a/channels/spankwire.py +++ b/channels/spankwire.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.spankwire.com' diff --git a/channels/streamingaltadefinizione.py b/channels/streamingaltadefinizione.py index 8dceedac..0406e670 100644 --- a/channels/streamingaltadefinizione.py +++ b/channels/streamingaltadefinizione.py @@ -6,8 +6,10 @@ from core import support from core.item import Item from specials import autoplay +from platformcode import config -host = 'https://www.streamingaltadefinizione.space' +__channel__ = "streamingaltadefinizione" +host = config.get_channel_url(__channel__) list_servers = ['verystream', 'openload', 'wstream'] list_quality = ['1080p', 'HD', 'DVDRIP', 'SD', 'CAM'] diff --git a/channels/streamingporn.py b/channels/streamingporn.py index 15357d7f..1c08ca6d 100644 --- a/channels/streamingporn.py +++ b/channels/streamingporn.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://streamingporn.xyz' diff --git a/channels/streamking.py b/channels/streamking.py index 71aecbfe..729ad9d9 100644 --- a/channels/streamking.py +++ b/channels/streamking.py @@ -10,8 +10,10 @@ import urllib from core import scrapertools, httptools from core.item import Item from platformcode import logger +from platformcode import config -host = "http://streamking.cc" +__channel__ = "streamking" +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/streamporno.py b/channels/streamporno.py index 1625ee2e..853b5d9c 100644 --- a/channels/streamporno.py +++ b/channels/streamporno.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://streamporno.eu' diff --git a/channels/submityouflicks.py b/channels/submityouflicks.py index 4d013109..d4fc0723 100644 --- a/channels/submityouflicks.py +++ b/channels/submityouflicks.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.submityourflicks.com' diff --git a/channels/sunporno.py b/channels/sunporno.py index 65438323..2909bd65 100644 --- a/channels/sunporno.py +++ b/channels/sunporno.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.sunporno.com' diff --git a/channels/tabooshare.py b/channels/tabooshare.py index 0ce7976d..e2bdd1c7 100644 --- a/channels/tabooshare.py +++ b/channels/tabooshare.py @@ -7,6 +7,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://tabooshare.com' diff --git a/channels/tantifilm.py b/channels/tantifilm.py index 0b33787a..26aa66be 100644 --- a/channels/tantifilm.py +++ b/channels/tantifilm.py @@ -12,13 +12,15 @@ from core.item import Item from core.support import menu, log, aplay from platformcode import logger from specials import autorenumber +from platformcode import config IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['verystream', 'openload', 'streamango', 'vidlox', 'youtube'] list_quality = ['default'] -host = "https://www.tantifilm.cafe" +__channel__ = "tantifilm" +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/tnaflix.py b/channels/tnaflix.py index 5ed50378..7734b23e 100644 --- a/channels/tnaflix.py +++ b/channels/tnaflix.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.tnaflix.com' diff --git a/channels/toonitalia.py b/channels/toonitalia.py index 9b2eff48..a5f53497 100644 --- a/channels/toonitalia.py +++ b/channels/toonitalia.py @@ -10,9 +10,11 @@ from core import scrapertools, httptools, tmdb, support, servertools from core.item import Item from platformcode import logger from specials import autoplay +from platformcode import config + +__channel__ = "toonitalia" +host = config.get_channel_url(__channel__) -channel = "toonitalia" -host = "https://toonitalia.org" headers = [['Referer', host]] list_servers = ['wstream', 'openload', 'streamango'] diff --git a/channels/tryboobs.py b/channels/tryboobs.py index 24d326e0..fa2108f2 100644 --- a/channels/tryboobs.py +++ b/channels/tryboobs.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.tryboobs.com' diff --git a/channels/tubedupe.py b/channels/tubedupe.py index c3fd7404..44d90216 100644 --- a/channels/tubedupe.py +++ b/channels/tubedupe.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://tubedupe.com' diff --git a/channels/tubehentai.py b/channels/tubehentai.py index baf45d1d..e2affd96 100644 --- a/channels/tubehentai.py +++ b/channels/tubehentai.py @@ -7,6 +7,7 @@ import urlparse from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config def mainlist(item): diff --git a/channels/vedohd.py b/channels/vedohd.py index 019fb71f..bb536728 100644 --- a/channels/vedohd.py +++ b/channels/vedohd.py @@ -7,6 +7,7 @@ from core import scrapertoolsV2, httptools, support from core.item import Item from platformcode import logger from specials import autoplay +from platformcode import config headers = "" host = "" diff --git a/channels/videosXYZ.py b/channels/videosXYZ.py index 6801942b..ba26f46b 100644 --- a/channels/videosXYZ.py +++ b/channels/videosXYZ.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://free-porn-videos.xyz' diff --git a/channels/vidz7.py b/channels/vidz7.py index 5621f1eb..5f3cbdbc 100644 --- a/channels/vidz7.py +++ b/channels/vidz7.py @@ -9,6 +9,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.vidz7.com' diff --git a/channels/vintagetube.py b/channels/vintagetube.py index 87ca480d..c3831dcd 100644 --- a/channels/vintagetube.py +++ b/channels/vintagetube.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.vintagetube.club' diff --git a/channels/vintagexxxsex.py b/channels/vintagexxxsex.py index 7c732c7a..d905d842 100644 --- a/channels/vintagexxxsex.py +++ b/channels/vintagexxxsex.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.vintagexxxsex.com' diff --git a/channels/vporn.py b/channels/vporn.py index 810b6414..25344cb9 100644 --- a/channels/vporn.py +++ b/channels/vporn.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.vporn.com' diff --git a/channels/watchpornfree.py b/channels/watchpornfree.py index 6760feb7..d2709d5f 100644 --- a/channels/watchpornfree.py +++ b/channels/watchpornfree.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config # https://playpornfree.org/ https://mangoporn.net/ https://watchfreexxx.net/ https://losporn.org/ https://xxxstreams.me/ https://speedporn.net/ diff --git a/channels/webpeliculasporno.py b/channels/webpeliculasporno.py index d9510a03..e49a51f6 100644 --- a/channels/webpeliculasporno.py +++ b/channels/webpeliculasporno.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.webpeliculasporno.com' diff --git a/channels/woodrocket.py b/channels/woodrocket.py index c4e1ec74..494c269a 100644 --- a/channels/woodrocket.py +++ b/channels/woodrocket.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://woodrocket.com' diff --git a/channels/x18hentai.py b/channels/x18hentai.py index 21c84558..db4b37ec 100644 --- a/channels/x18hentai.py +++ b/channels/x18hentai.py @@ -7,6 +7,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://www.18hentaionline.net/' headers = [['User-Agent', 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0'], @@ -21,11 +22,11 @@ def mainlist(item): itemlist.append(Item(channel=item.channel, title="Todos", action="todas", url=host, thumbnail='', fanart='')) itemlist.append( - Item(channel=item.channel, title="Sin Censura", action="todas", url=host + 'tag/sin-censura/', thumbnail='', + Item(channel=item.channel, title="Sin Censura", action="todas", url=host + '/tag/sin-censura/', thumbnail='', fanart='')) itemlist.append( - Item(channel=item.channel, title="Estrenos", action="todas", url=host + 'category/estreno/', thumbnail='', + Item(channel=item.channel, title="Estrenos", action="todas", url=host + '/category/estreno/', thumbnail='', fanart='')) itemlist.append( diff --git a/channels/xhamster.py b/channels/xhamster.py index fb528002..564fb28f 100644 --- a/channels/xhamster.py +++ b/channels/xhamster.py @@ -7,6 +7,7 @@ import urlparse from core import scrapertools, httptools from core.item import Item from platformcode import logger +from platformcode import config HOST = "http://es.xhamster.com/" diff --git a/channels/xms.py b/channels/xms.py index ad360a8c..969aae7e 100644 --- a/channels/xms.py +++ b/channels/xms.py @@ -45,20 +45,20 @@ def mainlist(item): logger.info() itemlist = [] - itemlist.append(Item(channel=__channel__, title="Últimas", url=host + '?filtre=date&cat=0', + itemlist.append(Item(channel=__channel__, title="Últimas", url=host + '/?filtre=date&cat=0', action="peliculas", viewmode="movie_with_plot", viewcontent='movies', thumbnail=thumbnail % '1')) - itemlist.append(Item(channel=__channel__, title="Más Vistas", url=host + '?display=extract&filtre=views', + itemlist.append(Item(channel=__channel__, title="Más Vistas", url=host + '/?display=extract&filtre=views', action="peliculas", viewmode="movie_with_plot", viewcontent='movies', thumbnail=thumbnail % '2')) - itemlist.append(Item(channel=__channel__, title="Mejor Valoradas", url=host + '?display=extract&filtre=rate', + itemlist.append(Item(channel=__channel__, title="Mejor Valoradas", url=host + '/?display=extract&filtre=rate', action="peliculas", viewmode="movie_with_plot", viewcontent='movies', thumbnail=thumbnail % '3')) itemlist.append(Item(channel=__channel__, title="Categorías", action="categorias", - url=host + 'categories/', viewmode="movie_with_plot", viewcontent='movies', + url=host + '/categories/', viewmode="movie_with_plot", viewcontent='movies', thumbnail=thumbnail % '4')) itemlist.append(Item(channel=__channel__, title="WebCam", action="webcamenu", diff --git a/channels/xozilla.py b/channels/xozilla.py index e9ded5f6..566c8b43 100644 --- a/channels/xozilla.py +++ b/channels/xozilla.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.xozilla.com' diff --git a/channels/xtapes.py b/channels/xtapes.py index 0ca05421..13c4f297 100644 --- a/channels/xtapes.py +++ b/channels/xtapes.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://hd.xtapes.to' diff --git a/channels/xxxdan.py b/channels/xxxdan.py index 6d369df1..f2359eb4 100644 --- a/channels/xxxdan.py +++ b/channels/xxxdan.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://xxxdan.com' diff --git a/channels/xxxfreeinhd.py b/channels/xxxfreeinhd.py index c5551afa..b29172a4 100644 --- a/channels/xxxfreeinhd.py +++ b/channels/xxxfreeinhd.py @@ -8,6 +8,7 @@ from core import scrapertools from core import servertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://watchxxxfreeinhd.com' @@ -28,7 +29,7 @@ def mainlist(item): def search(item, texto): logger.info() texto = texto.replace(" ", "+") - item.url = host + "search.php?q=%s&language=en&search=Search" % texto + item.url = host + "/search.php?q=%s&language=en&search=Search" % texto try: return lista(item) except: diff --git a/channels/xxxparodyhd.py b/channels/xxxparodyhd.py index 36695cc6..e3e04dd1 100644 --- a/channels/xxxparodyhd.py +++ b/channels/xxxparodyhd.py @@ -8,6 +8,7 @@ from core import scrapertools from core import tmdb from core.item import Item from platformcode import logger +from platformcode import config host = 'https://xxxparodyhd.net' diff --git a/channels/xxxstreams.py b/channels/xxxstreams.py index e8091c3c..2cb55ef4 100644 --- a/channels/xxxstreams.py +++ b/channels/xxxstreams.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://xxxstreams.org' diff --git a/channels/yespornplease.py b/channels/yespornplease.py index 89f48334..8e5abc28 100644 --- a/channels/yespornplease.py +++ b/channels/yespornplease.py @@ -7,6 +7,7 @@ from urlparse import urljoin from core import httptools from core import servertools from platformcode import logger +from platformcode import config HOST="http://yespornplease.com" diff --git a/channels/youjizz.py b/channels/youjizz.py index c7b799ae..54b310b0 100644 --- a/channels/youjizz.py +++ b/channels/youjizz.py @@ -8,6 +8,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.youjizz.com' diff --git a/channels/youporn.py b/channels/youporn.py index 1f952da0..97e6b395 100644 --- a/channels/youporn.py +++ b/channels/youporn.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'https://www.youporn.com' diff --git a/channels/youtube_channel.py b/channels/youtube_channel.py index 343fd332..468fb554 100644 --- a/channels/youtube_channel.py +++ b/channels/youtube_channel.py @@ -5,6 +5,7 @@ import urllib from core import jsontools from core.item import Item from platformcode import logger +from platformcode import config CHANNELNAME = "youtube_channel" YOUTUBE_V3_API_KEY = "AIzaSyCjsmBT0JZy1RT-PLwB-Zkfba87sa2inyI" diff --git a/channels/yuuk.py b/channels/yuuk.py index 63d83ba7..a4adb269 100644 --- a/channels/yuuk.py +++ b/channels/yuuk.py @@ -7,6 +7,7 @@ from core import httptools from core import scrapertools from core.item import Item from platformcode import logger +from platformcode import config host = 'http://yuuk.net' diff --git a/core/servertools.py b/core/servertools.py index 8ecea6fd..f0e07a36 100644 --- a/core/servertools.py +++ b/core/servertools.py @@ -725,14 +725,14 @@ def check_video_link(url, server, timeout=3): :param url, server: Link y servidor :return: str(2) '??':No se ha podido comprobar. 'Ok':Parece que el link funciona. 'NO':Parece que no funciona. """ + + NK = "[COLOR 0xFFF9B613][B]" + u"\u2022".encode('utf-8') + "[/B][/COLOR]" + OK = "[COLOR 0xFF00C289][B]" + u"\u2022".encode('utf-8') + "[/B][/COLOR]" + KO = "[COLOR 0xFFC20000][B]" + u"\u2022".encode('utf-8') + "[/B][/COLOR]" - NK = "[COLOR 0xFFF9B613][B]" + u"\u25cf".encode('utf-8') + "[/B][/COLOR]" - OK = "[COLOR 0xFF00C289][B]" + u"\u25cf".encode('utf-8') + "[/B][/COLOR]" - KO = "[COLOR 0xFFC20000][B]" + u"\u25cf".encode('utf-8') + "[/B][/COLOR]" - - # NK = "[COLOR 0xFFF9B613][B]O[/B][/COLOR]" - # OK = "[COLOR 0xFF00C289][B]O[/B][/COLOR]" - # KO = "[COLOR 0xFFC20000][B]O[/B][/COLOR]" + # NK = "[COLOR 0xFFF9B613][B]♥[/B][/COLOR]" + # OK = "[COLOR 0xFF00C289][B]♥[/B][/COLOR]" + # KO = "[COLOR 0xFFC20000][B]♥[/B][/COLOR]" try: server_module = __import__('servers.%s' % server, None, None, ["servers.%s" % server]) diff --git a/core/support.py b/core/support.py index d613faf7..622e61dd 100644 --- a/core/support.py +++ b/core/support.py @@ -564,14 +564,15 @@ def pagination(itemlist, item, page, perpage, function_level=1): thumbnail=thumb())) return itemlist -def server(item, data='', itemlist='', headers='', AutoPlay=True, CheckLinks=True): - +def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=True): + if not data: data = httptools.downloadpage(item.url, headers=headers, ignore_response_code=True).data - if not itemlist: - itemlist = servertools.find_video_items(data=str(data)) - + + itemList = servertools.find_video_items(data=str(data)) + itemlist += itemList + for videoitem in itemlist: videoitem.title = "".join([item.title, ' ', typo(videoitem.title, 'color kod []'), typo(videoitem.quality, 'color kod []') if videoitem.quality else ""]) videoitem.fulltitle = item.fulltitle @@ -587,6 +588,12 @@ def controls(itemlist, item, AutoPlay=True, CheckLinks=True): from platformcode.config import get_setting CL = get_setting('checklinks') or get_setting('checklinks', item.channel) + autoplay_node = jsontools.get_node_from_file('autoplay', 'AUTOPLAY') + channel_node = autoplay_node.get(item.channel, {}) + if not channel_node: # non ha mai aperto il menu del canale quindi in autoplay_data.json non c'e la key + channelFile = __import__('channels.' + item.channel, fromlist=["channels.%s" % item.channel]) + autoplay.init(item.channel, channelFile.list_servers, channelFile.list_quality) + autoplay_node = jsontools.get_node_from_file('autoplay', 'AUTOPLAY') channel_node = autoplay_node.get(item.channel, {}) settings_node = channel_node.get('settings', {}) diff --git a/platformcode/config.py b/platformcode/config.py index 9adcddd2..ff8bf758 100644 --- a/platformcode/config.py +++ b/platformcode/config.py @@ -14,6 +14,8 @@ PLUGIN_NAME = "kod" __settings__ = xbmcaddon.Addon(id="plugin.video." + PLUGIN_NAME) __language__ = __settings__.getLocalizedString +def get_addon_core(): + return __settings__ def get_addon_version(with_fix=True): ''' @@ -83,21 +85,24 @@ def get_videolibrary_support(): return True def get_channel_url(name): - try: - try: - import json - except: - import simplejson as json - ROOT_DIR = xbmc.translatePath(__settings__.getAddonInfo('Path')) - LOCAL_FILE = os.path.join(ROOT_DIR, "channels.json") - with open(LOCAL_FILE) as f: - data = json.load(f) - if data[name] is not None: - return data[name] - else: - return get_setting("channel_host", name) - except: + if __settings__.getSetting("use_custom_url") == "true": return get_setting("channel_host", name) + else: + try: + try: + import json + except: + import simplejson as json + ROOT_DIR = xbmc.translatePath(__settings__.getAddonInfo('Path')) + LOCAL_FILE = os.path.join(ROOT_DIR, "channels.json") + with open(LOCAL_FILE) as f: + data = json.load(f) + if data[name] is not None: + return data[name] + else: + return get_setting("channel_host", name) + except: + return get_setting("channel_host", name) def get_system_platform(): """ fonction: pour recuperer la platform que xbmc tourne """ @@ -110,6 +115,34 @@ def get_system_platform(): platform = "osx" return platform +def is_autorun_enabled(): + try: + if "xbmc.executebuiltin('XBMC.RunAddon(plugin.video.kod)')" in open(os.path.join(xbmc.translatePath('special://userdata'),'autoexec.py')).read(): + return True + else: + return False + except: + # if error in reading from file autoexec doesnt exists + return False + + +def enable_disable_autorun(is_enabled): + # using autoexec.py and not service.py to force autorun + + path = os.path.join(xbmc.translatePath('special://userdata'),'autoexec.py') + append_write = 'a' if os.path.exists(path) else 'w' + + if is_enabled is False: + with open(path, append_write) as file: + file.write("import xbmc\nxbmc.executebuiltin('XBMC.RunAddon(plugin.video.kod)')") + else: + file = open(path, "r") + old_content = file.read() + new_content = old_content.replace("xbmc.executebuiltin('XBMC.RunAddon(plugin.video.kod)')", "") + file.close() + with open(path, "w") as file: + file.write(new_content) + return True def get_all_settings_addon(): # Lee el archivo settings.xml y retorna un diccionario con {id: value} diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index 7886c8c6..ac2b8489 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -5514,4 +5514,28 @@ msgstr "" msgctxt "#70704" msgid "TMDB ID (0 to cancel)" -msgstr "" \ No newline at end of file +msgstr "" + +msgctxt "#70705" +msgid "Use your custom channel URLs" +msgstr "" + +msgctxt "#70706" +msgid "autostart KOD at Kodi boot" +msgstr "" + +msgctxt "#70707" +msgid "Enable" +msgstr "" + +msgctxt "#70708" +msgid "Disable" +msgstr "" + +msgctxt "#70710" +msgid "Your new settings has just been saved" +msgstr "Le nuove impostazioni sono state salvate" + +msgctxt "#70711" +msgid "Ops! There's been a problem during saving your setting" +msgstr "Ops! C'è stato un problema durante il salvataggio delle impostazioni" \ No newline at end of file diff --git a/resources/language/Italian/strings.po b/resources/language/Italian/strings.po index 08f4c07c..01439b7e 100644 --- a/resources/language/Italian/strings.po +++ b/resources/language/Italian/strings.po @@ -5514,4 +5514,28 @@ msgstr "Crea cartelle con le lettere minuscole" msgctxt "#70704" msgid "TMDB ID (0 to cancel)" -msgstr "TMDB ID (0 per annullare)" \ No newline at end of file +msgstr "TMDB ID (0 per annullare)" + +msgctxt "#70705" +msgid "Use your custom channel URLs" +msgstr "Utilizza URL personalizzati per i canali" + +msgctxt "#70706" +msgid "autostart KOD at Kodi boot" +msgstr "avvio automatico di KOD al boot di Kodi" + +msgctxt "#70707" +msgid "Enable" +msgstr "Attivia" + +msgctxt "#70708" +msgid "Disable" +msgstr "Disattiva" + +msgctxt "#70709" +msgid "Your new settings has just been saved" +msgstr "Le nuove impostazioni sono state salvate" + +msgctxt "#70710" +msgid "Ops! There's been a problem during saving your setting" +msgstr "Ops! C'è stato un problema durante il salvataggio delle impostazioni" \ No newline at end of file diff --git a/resources/settings.xml b/resources/settings.xml index b58c1f94..2ea2da53 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -10,6 +10,7 @@ + @@ -54,7 +55,7 @@ default="70137" visible="eq(-3,True)+eq(-1,True)+eq(-2,False)" enable="eq(-3,True)+eq(-1,True)+(-2,false)"/> - + diff --git a/servers/deltabit.py b/servers/deltabit.py index 34c76456..6fd9dc9e 100644 --- a/servers/deltabit.py +++ b/servers/deltabit.py @@ -7,6 +7,7 @@ def test_video_exists(page_url): def get_video_url(page_url, premium=False, user="", password="", video_password=""): return turbovid.get_video_url(page_url, premium, user, password, video_password, 'deltabit') +<<<<<<< HEAD ##import time ##import urllib @@ -42,3 +43,5 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= ## ext = scrapertools.get_filename_from_url(media_url)[-4:] ## video_urls.append(["%s [deltabit]" % (ext), media_url]) ## return video_urls +======= +>>>>>>> kodiondemand-master diff --git a/servers/speedvideo.json b/servers/speedvideo.json index a095367c..dc8460d5 100644 --- a/servers/speedvideo.json +++ b/servers/speedvideo.json @@ -5,8 +5,17 @@ "patterns": [ { "pattern": "speedvideo.net/(?:embed-|)([A-Z0-9a-z]+)", +<<<<<<< HEAD "url": "https:\/\/speedvideo.net\/embed-\\1.html" } +======= + "url": "http://speedvideo.net/embed-\\1.html" + }, + { + "pattern": "speedvideo.net/(?:embed-|)([A-Z0-9a-z]+)", + "url": "https://speedvideo.net/embed-\\1.html" + } +>>>>>>> kodiondemand-master ] }, "free": true, diff --git a/servers/turbovid.py b/servers/turbovid.py index 387a6d10..653720cb 100644 --- a/servers/turbovid.py +++ b/servers/turbovid.py @@ -33,5 +33,9 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= for media_url in scrapertools.find_multiple_matches(sources, '"([^"]+)"'): media_url = media_url.replace('https:', 'http:') ext = scrapertools.get_filename_from_url(media_url)[-4:] +<<<<<<< HEAD video_urls.append(["%s [turbovid]" % (ext), media_url]) +======= + video_urls.append(["%s [%s]" % (ext, server), media_url]) +>>>>>>> kodiondemand-master return video_urls diff --git a/specials/downloads.py b/specials/downloads.py index d92bf955..dad71e62 100644 --- a/specials/downloads.py +++ b/specials/downloads.py @@ -503,7 +503,7 @@ def download_from_server(item): unsupported_servers = ["torrent"] progreso = platformtools.dialog_progress(config.get_localized_string(30101), config.get_localized_string(70178) % item.server) - channel = __import__(item.contentChannel, None, None, [item.contentChannel]) + channel = __import__('channels.%s' % item.contentChannel, None, None, ['channels.%s' % item.contentChannel]) if hasattr(channel, "play") and not item.play_menu: progreso.update(50, config.get_localized_string(70178) % item.server, config.get_localized_string(60003) % item.contentChannel) @@ -570,7 +570,7 @@ def download_from_best_server(item): result = {"downloadStatus": STATUS_CODES.error} progreso = platformtools.dialog_progress(config.get_localized_string(30101), config.get_localized_string(70179)) - channel = __import__(item.contentChannel, None, None, [item.contentChannel]) + channel = __import__('channels.%s' % item.contentChannel, None, None, ['channels.%s' % item.contentChannel]) progreso.update(50, config.get_localized_string(70184), config.get_localized_string(70180) % item.contentChannel) @@ -756,8 +756,8 @@ def save_download(item): # Menu contextual if item.from_action and item.from_channel: - item.channel = str(item.from_channel) - item.action = str(item.from_action) + item.channel = item.from_channel + item.action = item.from_action del item.from_action del item.from_channel @@ -848,6 +848,7 @@ def save_download_tvshow(item): config.get_localized_string(30109)) else: for i in episodes: + i.contentChannel = item.contentChannel res = start_download(i) if res == STATUS_CODES.canceled: break diff --git a/specials/setting.py b/specials/setting.py index 18e57416..d3b825d0 100644 --- a/specials/setting.py +++ b/specials/setting.py @@ -11,7 +11,7 @@ from platformcode import config, logger from platformcode import platformtools CHANNELNAME = "setting" - +AUTOSTART = config.is_autorun_enabled() def mainlist(item): logger.info() @@ -20,7 +20,7 @@ def mainlist(item): itemlist.append(Item(channel=CHANNELNAME, title=config.get_localized_string(60535), action="settings", folder=False, thumbnail=get_thumb("setting_0.png"))) - itemlist.append(Item(channel=CHANNELNAME, title="", action="", folder=False, thumbnail=get_thumb("setting_0.png"))) + #itemlist.append(Item(channel=CHANNELNAME, title="", action="", folder=False, thumbnail=get_thumb("setting_0.png"))) itemlist.append(Item(channel=CHANNELNAME, title=config.get_localized_string(60536) + ":", text_bold=True, action="", folder=False, thumbnail=get_thumb("setting_0.png"))) @@ -43,7 +43,13 @@ def mainlist(item): itemlist.append(Item(channel=CHANNELNAME, title=" " + config.get_localized_string(70253), action="setting_torrent", folder=True, thumbnail=get_thumb("channels_torrent.png"))) - itemlist.append(Item(channel=CHANNELNAME, action="", title="", folder=False, thumbnail=get_thumb("setting_0.png"))) + if AUTOSTART is False: + autostart_mode = config.get_localized_string(70707) + else: + autostart_mode = config.get_localized_string(70708) + itemlist.append(Item(channel=CHANNELNAME, title=autostart_mode + " " + config.get_localized_string(70706), action="autostart", folder=False, thumbnail=get_thumb("setting_0.png"))) + + #itemlist.append(Item(channel=CHANNELNAME, action="", title="", folder=False, thumbnail=get_thumb("setting_0.png"))) itemlist.append(Item(channel=CHANNELNAME, title=config.get_localized_string(60544), action="submenu_tools", folder=True, thumbnail=get_thumb("setting_0.png"))) @@ -84,6 +90,13 @@ def channel_config(item): item.config)) +def autostart(): + if config.enable_disable_autorun(AUTOSTART): + xbmcgui.Dialog().ok(config.get_localized_string(20000), config.get_localized_string(70709)) + else: + xbmcgui.Dialog().ok(config.get_localized_string(20000), config.get_localized_string(70710)) + + def setting_torrent(item): logger.info() diff --git a/videolibrary_service.py b/videolibrary_service.py index 18f64e10..03b56047 100644 --- a/videolibrary_service.py +++ b/videolibrary_service.py @@ -3,7 +3,7 @@ # Service for updating new episodes on library series # ------------------------------------------------------------ -import datetime, imp, math, threading, traceback, sys +import datetime, imp, math, threading, traceback, sys, glob @@ -310,14 +310,28 @@ def monitor_update(): check_for_update(overwrite=False) def get_channel_json(): - import urllib, os, xbmc, xbmcaddon - addon = xbmcaddon.Addon('plugin.video.kod') - ROOT_DIR = xbmc.translatePath(addon.getAddonInfo('Path')) + import urllib, os, xbmc + addon = config.get_addon_core() + ROOT_DIR = config.get_runtime_path() LOCAL_FILE = os.path.join(ROOT_DIR, "channels.json") if os.path.exists(LOCAL_FILE): os.remove(LOCAL_FILE) urllib.urlretrieve("https://raw.githubusercontent.com/kodiondemand/addon/master/channels.json", LOCAL_FILE) + + if addon.getSetting("use_custom_url") != "true": + channels_path = os.path.join(ROOT_DIR, "channels", '*.json') + channel_files = sorted(glob.glob(channels_path), key=lambda x: os.path.basename(x)) + for channel_file in channel_files: + if channel_file: + try: import json + except: import simplejson as json + with open(LOCAL_FILE) as f: + data = json.load(f) + try: + if data[channel_file]: + config.set_setting(name=data[channel_file], value="value", channel=channel_file) + except: pass #channel not in json if __name__ == "__main__": # Se ejecuta en cada inicio