diff --git a/channels.json b/channels.json index 655f6c96..f1e8d571 100644 --- a/channels.json +++ b/channels.json @@ -15,7 +15,6 @@ "asiansubita": "http://asiansubita.altervista.org", "casacinema": "https://www.casacinema.site", "casacinemainfo": "https://www.casacinema.info", - "cineblog01": "https://www.cb01.uno", "cb01anime": "https://www.cineblog01.ink", "cinemalibero": "https://www.cinemalibero.best", "cinemastreaming": "https://cinemastreaming.icu", diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 8eacffee..0881884a 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -11,9 +11,16 @@ from lib import unshortenit from platformcode import logger, config from specials import autoplay -__channel__ = "cineblog01" -host = config.get_channel_url(__channel__) -headers = [['Referer', host]] +#impostati dinamicamente da getUrl() +host = "" +headers = "" + + +def findhost(): + global host, headers + permUrl = httptools.downloadpage('https://www.cb01.uno/', follow_redirects=False).headers + host = 'https://www.'+permUrl['location'].replace('https://www.google.it/search?q=site:', '') + headers = [['Referer', host]] IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() @@ -30,6 +37,7 @@ blacklist = ['BENVENUTI', 'Richieste Serie TV', 'CB01.UNO ▶ TROVA L’ def mainlist(item): + findhost() autoplay.init(item.channel, list_servers, list_quality) @@ -56,6 +64,7 @@ def mainlist(item): def menu(item): + findhost() itemlist= [] data = httptools.downloadpage(item.url, headers=headers).data data = re.sub('\n|\t', '', data) @@ -94,6 +103,7 @@ def search(item, text): def newest(categoria): + findhost() itemlist = [] item = Item() item.contentType = 'movie' @@ -218,6 +228,7 @@ def episodios(item): def findvideos(item): + findhost() if item.contentType == "episode": return findvid_serie(item) diff --git a/resources/media/channels/banner/cb01.png b/resources/media/channels/banner/cb01.png new file mode 100644 index 00000000..6acba322 Binary files /dev/null and b/resources/media/channels/banner/cb01.png differ