# -*- coding: utf-8 -*- # ------------------------------------------------------------ # Canale per vedohd # ------------------------------------------------------------ import re import urlparse from channels import autoplay, filtertools, support from core import scrapertoolsV2, httptools, servertools, tmdb from core.item import Item from lib import unshortenit from platformcode import logger, config from channelselector import thumb #impostati dinamicamente da getUrl() host = "" headers = "" permUrl = httptools.downloadpage('https://www.cb01.uno/', follow_redirects=False).headers cb01Url = 'https://www.'+permUrl['location'].replace('https://www.google.it/search?q=site:', '') data = httptools.downloadpage(cb01Url).data host = scrapertoolsV2.get_match(data, r'