From 2cb6cfdb153ef80326e1b6739ad7d4585d2a595d Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 5 Jun 2019 11:36:56 +0200 Subject: [PATCH 01/16] series download now works also with scrape --- specials/downloads.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 From 7f2fe7940d73cc3d0ab009fbf7a5425e83c5d6b8 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 5 Jun 2019 12:00:48 +0200 Subject: [PATCH 02/16] tvshow fix --- channels/animeworld.py | 2 +- channels/eurostreaming.py | 12 ++++++------ channels/fastsubita.py | 2 +- channels/filmigratis.py | 8 ++++---- channels/filmsenzalimiticc.py | 10 +++++----- channels/guardaserieclick.py | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/channels/animeworld.py b/channels/animeworld.py index 8272fbe3..38ce5f24 100644 --- a/channels/animeworld.py +++ b/channels/animeworld.py @@ -229,7 +229,7 @@ def video(item): # Controlla se sono Episodi o Film if movie == '': - contentType = 'episode' + contentType = 'tvshow' action = 'episodios' else: contentType = 'movie' diff --git a/channels/eurostreaming.py b/channels/eurostreaming.py index 224e6cd8..9969f7a2 100644 --- a/channels/eurostreaming.py +++ b/channels/eurostreaming.py @@ -37,11 +37,11 @@ def mainlist(item): support.log() itemlist = [] - support.menu(itemlist, 'Serie TV', 'serietv', host, 'episode') # mettere sempre episode per serietv, anime!! - support.menu(itemlist, 'Serie TV Archivio submenu', 'serietv', host + "category/serie-tv-archive/", 'episode') - support.menu(itemlist, 'Ultimi Aggiornamenti submenu', 'serietv', host + 'aggiornamento-episodi/', 'episode', args='True') - support.menu(itemlist, 'Anime / Cartoni', 'serietv', host + 'category/anime-cartoni-animati/', 'episode') - support.menu(itemlist, 'Cerca...', 'search', host, 'episode') + support.menu(itemlist, 'Serie TV', 'serietv', host, 'tvshow') # mettere sempre episode per serietv, anime!! + support.menu(itemlist, 'Serie TV Archivio submenu', 'serietv', host + "category/serie-tv-archive/", 'tvshow') + support.menu(itemlist, 'Ultimi Aggiornamenti submenu', 'serietv', host + 'aggiornamento-episodi/', 'tvshow', args='True') + support.menu(itemlist, 'Anime / Cartoni', 'serietv', host + 'category/anime-cartoni-animati/', 'tvshow') + support.menu(itemlist, 'Cerca...', 'search', host, 'tvshow') # richiesto per autoplay autoplay.init(item.channel, list_servers, list_quality) @@ -105,7 +105,7 @@ def episodios(item): itemlist.append( Item(channel=item.channel, action="findvideos", - contentType=item.contentType, + contentType='episode', title="[B]" + season_n + "x" + episode_n + " " + titolo + "[/B] " + season_lang, fulltitle=item.title, # Titolo nel video show=titolo + ":" + season_n + "x" + episode_n, # sottotitoletto nel video 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/filmigratis.py b/channels/filmigratis.py index a900ae40..e66076f9 100644 --- a/channels/filmigratis.py +++ b/channels/filmigratis.py @@ -32,9 +32,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 +142,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 +205,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/filmsenzalimiticc.py b/channels/filmsenzalimiticc.py index e4029d77..0d9e3b94 100644 --- a/channels/filmsenzalimiticc.py +++ b/channels/filmsenzalimiticc.py @@ -53,7 +53,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 +119,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 +166,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/guardaserieclick.py b/channels/guardaserieclick.py index c451326f..af3eaf8f 100644 --- a/channels/guardaserieclick.py +++ b/channels/guardaserieclick.py @@ -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, From 8d74126db07499858c599efc368a377aa53dce62 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 5 Jun 2019 18:46:40 +0200 Subject: [PATCH 03/16] SpeedUp Animeworld --- channels/animeworld.py | 50 ++++++++++++------------------------------ core/support.py | 11 +++++----- 2 files changed, 20 insertions(+), 41 deletions(-) diff --git a/channels/animeworld.py b/channels/animeworld.py index 38ce5f24..a48a2e6e 100644 --- a/channels/animeworld.py +++ b/channels/animeworld.py @@ -256,65 +256,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'
    (.*?)') - servers = scrapertoolsV2.find_multiple_matches(block,r'class="tab.*?data-name="([0-9]+)">([^<]+)([^<]+)(.*?)')) - id = scrapertoolsV2.find_single_match(data,r'(.*?)
    Date: Wed, 5 Jun 2019 20:04:44 +0200 Subject: [PATCH 04/16] Revert commit by @mac12m99 --- core/support.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/support.py b/core/support.py index 6d85fa03..72cbef53 100644 --- a/core/support.py +++ b/core/support.py @@ -576,6 +576,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', {}) From b17f0996d5d1ffc3ba76e41c257a04579237a62b Mon Sep 17 00:00:00 2001 From: Alhaziel <46535975+lozioangie@users.noreply.github.com> Date: Wed, 5 Jun 2019 22:46:36 +0200 Subject: [PATCH 05/16] smal fix --- channels/animeleggendari.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/channels/animeleggendari.py b/channels/animeleggendari.py index 8ac1b391..d193cc24 100644 --- a/channels/animeleggendari.py +++ b/channels/animeleggendari.py @@ -34,7 +34,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 +136,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 +148,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, From c7151389727c30e18c0c996790ae0cdf4d9c9fe0 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Thu, 6 Jun 2019 10:48:19 +0200 Subject: [PATCH 06/16] Pagination for "Aggiornamenti serie tv'" --- channels/cineblog01.py | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) 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>', '
    - + From da4a26d03f51ec961c4237ccf038185be0c92cb0 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Thu, 6 Jun 2019 12:09:58 +0200 Subject: [PATCH 08/16] Bullet point for almost all fonts --- core/servertools.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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]) From aeffad02a9c6ef5d89a5d8c2337894a819db7500 Mon Sep 17 00:00:00 2001 From: cttynul Date: Thu, 6 Jun 2019 17:21:27 +0200 Subject: [PATCH 09/16] updating json + dynimininininic chanels --- channels.json | 10 ++++++---- channels/altadefinizionehd.py | 3 ++- channels/animeforce.py | 3 ++- channels/animeleggendari.py | 3 ++- channels/animespace.py | 3 ++- channels/animesubita.py | 4 ++-- channels/animetubeita.py | 3 ++- channels/animeworld.py | 3 ++- channels/casacinema.py | 4 ++-- channels/casacinemaInfo.py | 4 ++-- channels/cb01anime.py | 4 ++-- channels/cinemalibero.py | 4 ++-- channels/cinemastreaming.py | 4 ++-- 13 files changed, 30 insertions(+), 22 deletions(-) diff --git a/channels.json b/channels.json index 53f1eb08..4a172b0e 100644 --- a/channels.json +++ b/channels.json @@ -3,20 +3,22 @@ "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/", + "casacinemainfo": "https://www.casacinema.info", + "cb01anime": "http://www.cineblog01.ink", "cineblog01": "https://cb01.tools", + "cinemalibero": "https://cinemalibero.icu", + "cinemastreaming": "https://cinemastreaming.icu", "documentaristreamingdb": "https://documentari-streaming-da.com", "downloadme": "https://www.downloadme.gratis", "dragonballforever": "https://www.dragonballforever.it", 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/animeforce.py b/channels/animeforce.py index 4113f6c5..c38b6d1b 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() diff --git a/channels/animeleggendari.py b/channels/animeleggendari.py index d193cc24..0a30683b 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_addon_version(__channel__) # Richiesto per Autoplay IDIOMAS = {'Italiano': 'IT'} diff --git a/channels/animespace.py b/channels/animespace.py index aa910a86..5f57479e 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_addon_version(__channel__) checklinks = config.get_setting('checklinks', 'animespace') checklinks_number = config.get_setting('checklinks_number', 'animespace') diff --git a/channels/animesubita.py b/channels/animesubita.py index 5559f58b..744d0365 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_addon_version(__channel__) PERPAGE = 20 # ---------------------------------------------------------------------------------------------------------------- diff --git a/channels/animetubeita.py b/channels/animetubeita.py index 817d77d7..55554e7e 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_addon_version(__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 a48a2e6e..c1814d7e 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_addon_version(__channel__) headers = [['Referer', host]] IDIOMAS = {'Italiano': 'Italiano'} diff --git a/channels/casacinema.py b/channels/casacinema.py index 07d889de..54abcbf5 100644 --- a/channels/casacinema.py +++ b/channels/casacinema.py @@ -12,8 +12,8 @@ from core.item import Item from platformcode import logger, config from specials import autoplay -host = 'https://www.casacinema.site' - +__channel__ = "casacinema" +host = config.get_addon_version(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['verystream', 'openload', 'wstream', 'speedvideo'] diff --git a/channels/casacinemaInfo.py b/channels/casacinemaInfo.py index c9c969ed..e9ee4a60 100644 --- a/channels/casacinemaInfo.py +++ b/channels/casacinemaInfo.py @@ -8,8 +8,8 @@ from core.item import Item from platformcode import logger, config from specials import autoplay -host = 'https://casacinema.info' - +__channel__ = "casacinemainfo" +host = config.get_addon_version(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['verystream', 'openload', 'wstream', 'speedvideo'] diff --git a/channels/cb01anime.py b/channels/cb01anime.py index f68fbe6f..b1a485f1 100644 --- a/channels/cb01anime.py +++ b/channels/cb01anime.py @@ -10,8 +10,8 @@ from core import httptools, scrapertools, servertools, tmdb from core.item import Item from platformcode import logger, config -host = "https://www.cineblog01.pink" - +__channel__ = "cb01anime" +host = config.get_addon_version(__channel__) #esclusione degli articoli 'di servizio' blacklist = ['AVVISO IMPORTANTE – CB01.ROCKS', 'Lista Alfabetica Completa Anime/Cartoon', 'CB01.UNO ▶ TROVA L’INDIRIZZO UFFICIALE'] diff --git a/channels/cinemalibero.py b/channels/cinemalibero.py index 2709560f..7f60fcb8 100644 --- a/channels/cinemalibero.py +++ b/channels/cinemalibero.py @@ -22,8 +22,8 @@ list_quality = ['default'] checklinks = config.get_setting('checklinks', 'cinemalibero') checklinks_number = config.get_setting('checklinks_number', 'cinemalibero') -host = 'https://www.cinemalibero.icu' - +__channel__ = "cinemalibero" +host = config.get_addon_version(__channel__) headers = [['Referer', host]] diff --git a/channels/cinemastreaming.py b/channels/cinemastreaming.py index 23df9ca4..8f5df8d2 100644 --- a/channels/cinemastreaming.py +++ b/channels/cinemastreaming.py @@ -8,8 +8,8 @@ from core import scrapertools, httptools, scrapertoolsV2, support from core.item import Item from specials import autoplay -host = 'https://cinemastreaming.icu' - +__channel__ = "cinemastreaming" +host = config.get_addon_version(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['openload', 'streamango'] From cb39735535d0da4cda9edbc31aa2cdab085a8fb9 Mon Sep 17 00:00:00 2001 From: cttynul Date: Thu, 6 Jun 2019 18:01:24 +0200 Subject: [PATCH 10/16] update all channel to retrive url by macro json --- channels.json | 23 +++++++++++++++++------ channels/altadefinizione01.py | 2 +- channels/animeleggendari.py | 2 +- channels/animespace.py | 2 +- channels/animesubita.py | 2 +- channels/animetubeita.py | 2 +- channels/animeworld.py | 2 +- channels/casacinema.py | 2 +- channels/casacinemaInfo.py | 2 +- channels/cb01anime.py | 2 +- channels/cinemalibero.py | 2 +- channels/cinemastreaming.py | 2 +- channels/documentaristreamingda.py | 4 ++-- channels/dreamsub.py | 4 ++-- channels/eurostreaming.py | 3 ++- channels/filmigratis.py | 6 ++---- channels/filmpertutti.py | 3 ++- channels/filmsenzalimiti.py | 3 +-- channels/filmsenzalimiticc.py | 3 +-- channels/guardarefilm.py | 3 ++- channels/guardaseriecc.py | 3 ++- channels/guardaserieclick.py | 2 +- channels/guardogratis.py | 3 +-- channels/ilgeniodellostreaming.py | 3 ++- channels/italiafilm.py | 4 ++-- channels/italiafilmhd.py | 4 ++-- channels/italiaserie.py | 4 ++-- channels/itastreaming.py | 4 ++-- channels/mondolunatico.py | 4 +--- channels/mondolunatico2.py | 4 ++-- channels/mondoserietv.py | 4 +++- channels/piratestreaming.py | 3 +-- channels/serietvonline.py | 3 ++- channels/serietvsubita.py | 2 +- channels/serietvu.py | 2 +- channels/streamingaltadefinizione.py | 3 ++- channels/streamking.py | 3 ++- channels/tantifilm.py | 3 ++- channels/toonitalia.py | 5 +++-- 39 files changed, 76 insertions(+), 61 deletions(-) diff --git a/channels.json b/channels.json index 4a172b0e..98d53014 100644 --- a/channels.json +++ b/channels.json @@ -19,36 +19,47 @@ "cineblog01": "https://cb01.tools", "cinemalibero": "https://cinemalibero.icu", "cinemastreaming": "https://cinemastreaming.icu", - "documentaristreamingdb": "https://documentari-streaming-da.com", - "downloadme": "https://www.downloadme.gratis", - "dragonballforever": "https://www.dragonballforever.it", + "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", + "italiafilmhd": "https://italiafilm.info", "italiafilmvedohd": "https://italiafilm.info", - "italiaserie_uno": "https:://italiaserie.org", + "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/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/animeleggendari.py b/channels/animeleggendari.py index 0a30683b..dfc9371e 100644 --- a/channels/animeleggendari.py +++ b/channels/animeleggendari.py @@ -13,7 +13,7 @@ from platformcode import logger, config from specials import autoplay, autorenumber __channel__ = "animeleggendari" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) # Richiesto per Autoplay IDIOMAS = {'Italiano': 'IT'} diff --git a/channels/animespace.py b/channels/animespace.py index 5f57479e..9e6a6d5a 100644 --- a/channels/animespace.py +++ b/channels/animespace.py @@ -16,7 +16,7 @@ from specials import autoplay from specials import renumbertools __channel__ = "animespace" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) checklinks = config.get_setting('checklinks', 'animespace') checklinks_number = config.get_setting('checklinks_number', 'animespace') diff --git a/channels/animesubita.py b/channels/animesubita.py index 744d0365..80e4e08a 100644 --- a/channels/animesubita.py +++ b/channels/animesubita.py @@ -14,7 +14,7 @@ from core.item import Item from platformcode import logger, config __channel__ = "animesubita" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) PERPAGE = 20 # ---------------------------------------------------------------------------------------------------------------- diff --git a/channels/animetubeita.py b/channels/animetubeita.py index 55554e7e..d261c048 100644 --- a/channels/animetubeita.py +++ b/channels/animetubeita.py @@ -11,7 +11,7 @@ from core.item import Item from platformcode import logger, config __channel__ = "animetubeita" -host = config.get_addon_version(__channel__) +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 c1814d7e..aa8204e0 100644 --- a/channels/animeworld.py +++ b/channels/animeworld.py @@ -14,7 +14,7 @@ from platformcode import logger, config from specials import autoplay, autorenumber __channel__ = "animeworld" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) headers = [['Referer', host]] IDIOMAS = {'Italiano': 'Italiano'} diff --git a/channels/casacinema.py b/channels/casacinema.py index 54abcbf5..8758598a 100644 --- a/channels/casacinema.py +++ b/channels/casacinema.py @@ -13,7 +13,7 @@ from platformcode import logger, config from specials import autoplay __channel__ = "casacinema" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['verystream', 'openload', 'wstream', 'speedvideo'] diff --git a/channels/casacinemaInfo.py b/channels/casacinemaInfo.py index e9ee4a60..a853aa5e 100644 --- a/channels/casacinemaInfo.py +++ b/channels/casacinemaInfo.py @@ -9,7 +9,7 @@ from platformcode import logger, config from specials import autoplay __channel__ = "casacinemainfo" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['verystream', 'openload', 'wstream', 'speedvideo'] diff --git a/channels/cb01anime.py b/channels/cb01anime.py index b1a485f1..c818dcf3 100644 --- a/channels/cb01anime.py +++ b/channels/cb01anime.py @@ -11,7 +11,7 @@ from core.item import Item from platformcode import logger, config __channel__ = "cb01anime" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) #esclusione degli articoli 'di servizio' blacklist = ['AVVISO IMPORTANTE – CB01.ROCKS', 'Lista Alfabetica Completa Anime/Cartoon', 'CB01.UNO ▶ TROVA L’INDIRIZZO UFFICIALE'] diff --git a/channels/cinemalibero.py b/channels/cinemalibero.py index 7f60fcb8..f652a95c 100644 --- a/channels/cinemalibero.py +++ b/channels/cinemalibero.py @@ -23,7 +23,7 @@ checklinks = config.get_setting('checklinks', 'cinemalibero') checklinks_number = config.get_setting('checklinks_number', 'cinemalibero') __channel__ = "cinemalibero" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/cinemastreaming.py b/channels/cinemastreaming.py index 8f5df8d2..32bb622f 100644 --- a/channels/cinemastreaming.py +++ b/channels/cinemastreaming.py @@ -9,7 +9,7 @@ from core.item import Item from specials import autoplay __channel__ = "cinemastreaming" -host = config.get_addon_version(__channel__) +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['openload', 'streamango'] 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/eurostreaming.py b/channels/eurostreaming.py index 9969f7a2..afabfa3a 100644 --- a/channels/eurostreaming.py +++ b/channels/eurostreaming.py @@ -22,7 +22,8 @@ from core.item import Item from platformcode import logger, config from specials import autoplay -host = "https://eurostreaming.cafe/" +__channel__ = "eurostreaming" +host = config.get_channel_url(__channel__) headers = ['Referer', host] IDIOMAS = {'Italiano': 'IT'} diff --git a/channels/filmigratis.py b/channels/filmigratis.py index e66076f9..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'] 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/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 0d9e3b94..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]] 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 af3eaf8f..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'} 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/ilgeniodellostreaming.py b/channels/ilgeniodellostreaming.py index 41befd74..378b1b9d 100644 --- a/channels/ilgeniodellostreaming.py +++ b/channels/ilgeniodellostreaming.py @@ -10,7 +10,8 @@ from core import scrapertoolsV2, httptools, tmdb, support from core.support import log, menu, aplay from core.item import Item -host = "https://ilgeniodellostreaming.pw" +__channel__ = 'ilgeniodellostreaming' +host = config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() 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..5da587c3 100644 --- a/channels/italiaserie.py +++ b/channels/italiaserie.py @@ -12,8 +12,8 @@ from core import tmdb from core.item import Item from platformcode import logger -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/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..d08863a0 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'] 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/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/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/streamingaltadefinizione.py b/channels/streamingaltadefinizione.py index 8dceedac..f87a1fd8 100644 --- a/channels/streamingaltadefinizione.py +++ b/channels/streamingaltadefinizione.py @@ -7,7 +7,8 @@ from core import support from core.item import Item from specials import autoplay -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/streamking.py b/channels/streamking.py index 71aecbfe..7a987fce 100644 --- a/channels/streamking.py +++ b/channels/streamking.py @@ -11,7 +11,8 @@ from core import scrapertools, httptools from core.item import Item from platformcode import logger -host = "http://streamking.cc" +__channel__ = "streamking" +host = config.get_channel_url(__channel__) headers = [['Referer', host]] diff --git a/channels/tantifilm.py b/channels/tantifilm.py index 0b33787a..666a3b34 100644 --- a/channels/tantifilm.py +++ b/channels/tantifilm.py @@ -18,7 +18,8 @@ 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/toonitalia.py b/channels/toonitalia.py index 9b2eff48..61c71c81 100644 --- a/channels/toonitalia.py +++ b/channels/toonitalia.py @@ -11,8 +11,9 @@ from core.item import Item from platformcode import logger from specials import autoplay -channel = "toonitalia" -host = "https://toonitalia.org" +__channel__ = "toonitalia" +host = config.get_channel_url(__channel__) + headers = [['Referer', host]] list_servers = ['wstream', 'openload', 'streamango'] From ed42c22f09da4cfcac8f68c16b9b151559c0175b Mon Sep 17 00:00:00 2001 From: cttynul Date: Thu, 6 Jun 2019 18:07:31 +0200 Subject: [PATCH 11/16] + [EXPERIMENTAL] function to choose if using custom or not urls channel --- platformcode/config.py | 31 +++++++++++++++------------ resources/language/English/strings.po | 4 ++++ resources/language/Italian/strings.po | 6 +++++- resources/settings.xml | 1 + 4 files changed, 27 insertions(+), 15 deletions(-) diff --git a/platformcode/config.py b/platformcode/config.py index 9adcddd2..10a6e8d4 100644 --- a/platformcode/config.py +++ b/platformcode/config.py @@ -83,21 +83,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"): 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 """ diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index 7886c8c6..ac92b2ff 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -5514,4 +5514,8 @@ msgstr "" msgctxt "#70704" msgid "TMDB ID (0 to cancel)" +msgstr "" + +msgctxt "#70705" +msgid "Use your custom channel URLs" msgstr "" \ No newline at end of file diff --git a/resources/language/Italian/strings.po b/resources/language/Italian/strings.po index 08f4c07c..cac29cd2 100644 --- a/resources/language/Italian/strings.po +++ b/resources/language/Italian/strings.po @@ -5514,4 +5514,8 @@ 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" \ No newline at end of file diff --git a/resources/settings.xml b/resources/settings.xml index 3651121a..2ea2da53 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -10,6 +10,7 @@ + From 5c7c21576c80e8ab3e4d1e59f5fd152460362f49 Mon Sep 17 00:00:00 2001 From: cttynul Date: Thu, 6 Jun 2019 18:15:49 +0200 Subject: [PATCH 12/16] missing https in speedvideo --- servers/speedvideo.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/speedvideo.json b/servers/speedvideo.json index da4c68db..4e6a0772 100644 --- a/servers/speedvideo.json +++ b/servers/speedvideo.json @@ -6,6 +6,10 @@ { "pattern": "speedvideo.net/(?:embed-|)([A-Z0-9a-z]+)", "url": "http://speedvideo.net/embed-\\1.html" + }, + { + "pattern": "speedvideo.net/(?:embed-|)([A-Z0-9a-z]+)", + "url": "https://speedvideo.net/embed-\\1.html" } ] }, From da2c4edcd62472d20bc5a5cd1e3cc44a412f4692 Mon Sep 17 00:00:00 2001 From: cttynul Date: Thu, 6 Jun 2019 18:21:39 +0200 Subject: [PATCH 13/16] missing == "true" i can't even code seriously --- platformcode/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformcode/config.py b/platformcode/config.py index 10a6e8d4..9db1c509 100644 --- a/platformcode/config.py +++ b/platformcode/config.py @@ -83,7 +83,7 @@ def get_videolibrary_support(): return True def get_channel_url(name): - if __settings__.getSetting("use_custom_url"): + if __settings__.getSetting("use_custom_url") == "true": return get_setting("channel_host", name) else: try: From 33f70c3bc807bbd6ac9158d38c4e46b3af16accb Mon Sep 17 00:00:00 2001 From: cttynul Date: Thu, 6 Jun 2019 18:57:31 +0200 Subject: [PATCH 14/16] autoset url channels --- platformcode/config.py | 2 ++ videolibrary_service.py | 22 +++++++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/platformcode/config.py b/platformcode/config.py index 9db1c509..fa40f764 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): ''' diff --git a/videolibrary_service.py b/videolibrary_service.py index 18f64e10..568022d0 100644 --- a/videolibrary_service.py +++ b/videolibrary_service.py @@ -310,14 +310,30 @@ 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 1: + try: + import json + except: + import simplejson as json + with open(LOCAL_FILE) as f: + data = json.load(f) + if data[channel_file] is not None: + config.set_setting(name=data[channel_file], value="value", channel=channel_file) + else: + pass if __name__ == "__main__": # Se ejecuta en cada inicio From 56aab05ae3fdd016c53a980dadd09a72360d46e0 Mon Sep 17 00:00:00 2001 From: cttynul Date: Thu, 6 Jun 2019 19:09:56 +0200 Subject: [PATCH 15/16] autoset json url with a very unundestrandable code --- videolibrary_service.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/videolibrary_service.py b/videolibrary_service.py index 568022d0..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 @@ -323,17 +323,15 @@ def get_channel_json(): 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 1: - try: - import json - except: - import simplejson as json + if channel_file: + try: import json + except: import simplejson as json with open(LOCAL_FILE) as f: data = json.load(f) - if data[channel_file] is not None: - config.set_setting(name=data[channel_file], value="value", channel=channel_file) - else: - pass + 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 From c8b55e7ab050db7983ea18e3d23160d118430cfa Mon Sep 17 00:00:00 2001 From: cttynul Date: Thu, 6 Jun 2019 19:27:23 +0200 Subject: [PATCH 16/16] missing import --- channels/LIKUOO.py | 1 + channels/TXXX.py | 1 + channels/absoluporn.py | 1 + channels/alsoporn.py | 1 + channels/analdin.py | 1 + channels/bleachportal.py | 1 + channels/bravoporn.py | 1 + channels/camwhoresbay.py | 1 + channels/canalporno.py | 1 + channels/cinemastreaming.py | 1 + channels/cliphunter.py | 1 + channels/coomelonitas.py | 1 + channels/czechvideo.py | 1 + channels/datoporn.py | 1 + channels/elreyx.py | 1 + channels/eporner.py | 1 + channels/eroticage.py | 1 + channels/eroticasonlinetv.py | 1 + channels/erotik.py | 1 + channels/fapality.py | 1 + channels/fetishshrine.py | 1 + channels/filmoviXXX.py | 1 + channels/filmpornoita.py | 1 + channels/foxtube.py | 1 + channels/freeporn.py | 1 + channels/freepornstreams.py | 1 + channels/hclips.py | 1 + channels/hdblog.py | 1 + channels/hdzog.py | 1 + channels/hellporno.py | 1 + channels/hentaiid.py | 1 + channels/hotmovs.py | 1 + channels/ilgeniodellostreaming.py | 1 + channels/ilgiramondo.py | 1 + channels/italiaserie.py | 1 + channels/javlin.py | 1 + channels/javus.py | 1 + channels/javwhores.py | 1 + channels/jizzbunker.py | 1 + channels/justporn.py | 1 + channels/mporno.py | 1 + channels/muchoporno.py | 1 + channels/nuvid.py | 1 + channels/pandamovie.py | 1 + channels/peliculaseroticas.py | 1 + channels/pelisxporno.py | 1 + channels/perfectgirls.py | 1 + channels/playpornx.py | 1 + channels/porn300.py | 1 + channels/pornboss.py | 1 + channels/porneq.py | 1 + channels/pornhive.py | 1 + channels/pornhub.py | 1 + channels/pornrewind.py | 1 + channels/porntrex.py | 1 + channels/programmazione.py | 1 + channels/qwertty.py | 1 + channels/redtube.py | 1 + channels/ricettevideo.py | 1 + channels/serviporno.py | 1 + channels/sexgalaxy.py | 1 + channels/sexkino.py | 1 + channels/sexofilm.py | 1 + channels/siska.py | 1 + channels/spankbang.py | 1 + channels/spankwire.py | 1 + channels/streamingaltadefinizione.py | 1 + channels/streamingporn.py | 1 + channels/streamking.py | 1 + channels/streamporno.py | 1 + channels/submityouflicks.py | 1 + channels/sunporno.py | 1 + channels/tabooshare.py | 1 + channels/tantifilm.py | 1 + channels/tnaflix.py | 1 + channels/toonitalia.py | 1 + channels/tryboobs.py | 1 + channels/tubedupe.py | 1 + channels/tubehentai.py | 1 + channels/vedohd.py | 1 + channels/videosXYZ.py | 1 + channels/vidz7.py | 1 + channels/vintagetube.py | 1 + channels/vintagexxxsex.py | 1 + channels/vporn.py | 1 + channels/watchpornfree.py | 1 + channels/webpeliculasporno.py | 1 + channels/woodrocket.py | 1 + channels/x18hentai.py | 1 + channels/xhamster.py | 1 + channels/xozilla.py | 1 + channels/xtapes.py | 1 + channels/xxxdan.py | 1 + channels/xxxfreeinhd.py | 1 + channels/xxxparodyhd.py | 1 + channels/xxxstreams.py | 1 + channels/yespornplease.py | 1 + channels/youjizz.py | 1 + channels/youporn.py | 1 + channels/youtube_channel.py | 1 + channels/yuuk.py | 1 + 101 files changed, 101 insertions(+) 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/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/bleachportal.py b/channels/bleachportal.py index f06aa116..3df421a0 100644 --- a/channels/bleachportal.py +++ b/channels/bleachportal.py @@ -10,6 +10,7 @@ import re from core import scrapertools, httptools from core.item import Item from platformcode import logger +from platformcode import config host = "http://www.bleachportal.it" diff --git a/channels/bravoporn.py b/channels/bravoporn.py index c3521363..b8c52c35 100644 --- a/channels/bravoporn.py +++ b/channels/bravoporn.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.bravoporn.com' diff --git a/channels/camwhoresbay.py b/channels/camwhoresbay.py index a55af776..330edb20 100644 --- a/channels/camwhoresbay.py +++ b/channels/camwhoresbay.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.camwhoresbay.com' diff --git a/channels/canalporno.py b/channels/canalporno.py index 9d9f9d4a..01a8dcf9 100644 --- a/channels/canalporno.py +++ b/channels/canalporno.py @@ -3,6 +3,7 @@ from core import httptools from core import scrapertools from platformcode import logger +from platformcode import config host = "http://www.canalporno.com" diff --git a/channels/cinemastreaming.py b/channels/cinemastreaming.py index 32bb622f..ae7c72ef 100644 --- a/channels/cinemastreaming.py +++ b/channels/cinemastreaming.py @@ -7,6 +7,7 @@ import re from core import scrapertools, httptools, scrapertoolsV2, support from core.item import Item from specials import autoplay +from platformcode import config __channel__ = "cinemastreaming" host = config.get_channel_url(__channel__) 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/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/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/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/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/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/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/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 378b1b9d..972a7c0b 100644 --- a/channels/ilgeniodellostreaming.py +++ b/channels/ilgeniodellostreaming.py @@ -9,6 +9,7 @@ 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 __channel__ = 'ilgeniodellostreaming' host = config.get_channel_url(__channel__) 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/italiaserie.py b/channels/italiaserie.py index 5da587c3..98dc22de 100644 --- a/channels/italiaserie.py +++ b/channels/italiaserie.py @@ -11,6 +11,7 @@ from core import httptools, scrapertools from core import tmdb from core.item import Item from platformcode import logger +from platformcode import config __channel__ = 'italiaserie' host = config.get_channel_url(__channel__) 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/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/playpornx.py b/channels/playpornx.py index a95d2d77..54a45d57 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/" 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/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..92001dd9 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/' 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 f87a1fd8..0406e670 100644 --- a/channels/streamingaltadefinizione.py +++ b/channels/streamingaltadefinizione.py @@ -6,6 +6,7 @@ from core import support from core.item import Item from specials import autoplay +from platformcode import config __channel__ = "streamingaltadefinizione" host = config.get_channel_url(__channel__) 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 7a987fce..729ad9d9 100644 --- a/channels/streamking.py +++ b/channels/streamking.py @@ -10,6 +10,7 @@ import urllib from core import scrapertools, httptools from core.item import Item from platformcode import logger +from platformcode import config __channel__ = "streamking" host = config.get_channel_url(__channel__) 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 666a3b34..26aa66be 100644 --- a/channels/tantifilm.py +++ b/channels/tantifilm.py @@ -12,6 +12,7 @@ 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() 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 61c71c81..a5f53497 100644 --- a/channels/toonitalia.py +++ b/channels/toonitalia.py @@ -10,6 +10,7 @@ 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__) 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..f6aa698b 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'], 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/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..89637648 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' 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'