diff --git a/channels/altadefinizione01.json b/channels/altadefinizione01.json index ed51566e..927022e4 100644 --- a/channels/altadefinizione01.json +++ b/channels/altadefinizione01.json @@ -1,62 +1,11 @@ { "id": "altadefinizione01", "name": "Altadefinizione01", - "language": ["ita"], + "language": ["ita", "vos"], "active": true, "adult": false, "thumbnail": "https://raw.githubusercontent.com/Zanzibar82/images/master/posters/altadefinizione01.png", "banner": "https://raw.githubusercontent.com/Zanzibar82/images/master/posters/altadefinizione01.png", "categories": ["movie"], - "settings": [ - { - "id": "include_in_global_search", - "type": "bool", - "label": "Includi in Ricerca Globale", - "default": false, - "enabled": false, - "visible": false - }, - { - "id": "include_in_newest_peliculas", - "type": "bool", - "label": "Includi in Novità - Film", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "include_in_newest_italiano", - "type": "bool", - "label": "Includi in Novità - Italiano", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "checklinks", - "type": "bool", - "label": "Verifica se i link esistono", - "default": false, - "enabled": true, - "visible": true - }, - { - "id": "checklinks_number", - "type": "list", - "label": "Numero di link da verificare", - "default": 1, - "enabled": true, - "visible": "eq(-1,true)", - "lvalues": [ "5", "10", "15", "20" ] - }, - { - "id": "filter_languages", - "type": "list", - "label": "Mostra link in lingua...", - "default": 0, - "enabled": true, - "visible": true, - "lvalues": ["Non filtrare","IT"] - } - ] + "settings": [] } diff --git a/channels/altadefinizione01.py b/channels/altadefinizione01.py index 3cd9247e..b0b28008 100644 --- a/channels/altadefinizione01.py +++ b/channels/altadefinizione01.py @@ -2,24 +2,28 @@ # ------------------------------------------------------------ # Canale per altadefinizione01 # ------------------------------------------------------------ - - -""" - DA FINIRE - CONTROLLARE - -""" - -##from specials import autoplay -from core import support #,servertools +import xbmc +from core import scrapertoolsV2, httptools, support from core.item import Item from platformcode import config, logger __channel__ = "altadefinizione01" -host = config.get_channel_url(__channel__) +#impostati dinamicamente da findhost() +host = "" +headers = "" -headers = [['User-Agent', 'Mozilla/50.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0'], - ['Referer', host]] +def findhost(): + global host, headers + data = httptools.downloadpage('https://altadefinizione01-nuovo.link/').data + host = scrapertoolsV2.find_single_match(data, '