From 0dd95087c294f2631d6429cc92c4a7bb48fe57f8 Mon Sep 17 00:00:00 2001 From: greko Date: Thu, 23 May 2019 21:38:14 +0200 Subject: [PATCH] test --- channels/altadefinizione01_link.json | 1621 +++++++++++++++- channels/altadefinizione01_link.py | 2535 +++++++++++++++++++++++--- 2 files changed, 3806 insertions(+), 350 deletions(-) diff --git a/channels/altadefinizione01_link.json b/channels/altadefinizione01_link.json index e56d2b1a..05fa3498 100644 --- a/channels/altadefinizione01_link.json +++ b/channels/altadefinizione01_link.json @@ -1,94 +1,1527 @@ -{ - "id": "altadefinizione01_link", - "name": "Altadefinizione01 L", - "active": true, - "adult": false, - "language": ["ita"], - "fanart": "", - "thumbnail": "", - "banner": "http://altadefinizione01.link/templates/Dark/img/logonyy.png", - "fix" : "reimpostato url e modificato file per KOD", - "change_date": "2019-30-04", - "categories": [ - "movie" - ], - "settings": [ - { - "id": "modo_grafico", - "type": "bool", - "label": "Cerca informazioni extra", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "include_in_newest_film", - "type": "bool", - "label": "Includi in Novità", - "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": "include_in_global_search", - "type": "bool", - "label": "Includi ricerca globale", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "comprueba_enlaces", - "type": "bool", - "label": "Verifica se i link esistono", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "comprueba_enlaces_num", - "type": "list", - "label": "Numero de 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" - ] - }, - { - "id": "perfil", - "type": "list", - "label": "profilo dei colori", - "default": 0, - "enabled": true, - "visible": true, - "lvalues": [ - "Sin color", - "Perfil 5", - "Perfil 4", - "Perfil 3", - "Perfil 2", - "Perfil 1" - ] - } - ] -} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + addon/altadefinizione01_link.json at master · greko17/addon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content +
+ + + + + + + + + + +
+ +
+ + +
+ +
+ + + +
+
+
+ + + + + + + + + + +
+
+ +
    + + + + +
  • + +
    + +
    + + + Watch + + +
    + Notifications +
    +
    + + + + + + + +
    +
    +
    + +
    +
  • + +
  • +
    +
    + + +
    +
    + + +
    + +
  • + +
  • + + + Fork + + +
  • +
+ +

+ + /addon + + + + forked from kodiondemand/addon + +

+ +
+ + + + + + +
+
+
+ + + + + + + + Permalink + + + + +
+ + +
+ + Branch: + master + + + + + + + +
+ +
+ + Find file + + + Copy path + +
+
+ + +
+ + Find file + + + Copy path + +
+
+ + + + +
+
+ + + + + Update altadefinizione01_link.json + + + + da333e3 + May 23, 2019 + +
+ +
+
+ + 1 contributor + + +
+ +

+ Users who have contributed to this file +

+
+ +
+
+
+
+ + + + + + +
+ +
+ +
+ 95 lines (94 sloc) + + 2.03 KB +
+ +
+ +
+ Raw + Blame + History +
+ + +
+ +
+ +
+
+ +
+
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{
"id": "altadefinizione01_link",
"name": "Altadefinizione01 L",
"active": true,
"adult": false,
"language": ["ita"],
"fanart": "",
"thumbnail": "",
"banner": "http://altadefinizione01.link/templates/Dark/img/logonyy.png",
"fix" : "reimpostato url e modificato file per KOD",
"change_date": "2019-30-04",
"categories": [
"movie"
],
"settings": [
{
"id": "modo_grafico",
"type": "bool",
"label": "Cerca informazioni extra",
"default": true,
"enabled": true,
"visible": true
},
{
"id": "include_in_newest_film",
"type": "bool",
"label": "Includi in Novità",
"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": "include_in_global_search",
"type": "bool",
"label": "Includi ricerca globale",
"default": true,
"enabled": true,
"visible": true
},
{
"id": "comprueba_enlaces",
"type": "bool",
"label": "Verifica se i link esistono",
"default": true,
"enabled": true,
"visible": true
},
{
"id": "comprueba_enlaces_num",
"type": "list",
"label": "Numero de 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"
]
},
{
"id": "perfil",
"type": "list",
"label": "profilo dei colori",
"default": 0,
"enabled": true,
"visible": true,
"lvalues": [
"Sin color",
"Perfil 5",
"Perfil 4",
"Perfil 3",
"Perfil 2",
"Perfil 1"
]
}
]
}
+ + + +
+ +
+ + + +
+ + +
+ + +
+
+ + + +
+ +
+ +
+
+ + +
+ + + + + + +
+ + + You can’t perform that action at this time. +
+ + + + + + + + + + + + + + +
+ + + + diff --git a/channels/altadefinizione01_link.py b/channels/altadefinizione01_link.py index e54d3179..275c32d4 100644 --- a/channels/altadefinizione01_link.py +++ b/channels/altadefinizione01_link.py @@ -1,272 +1,2295 @@ -# -*- coding: utf-8 -*- -# -*- Channel Altadefinizione01C Film -*- -# -*- Riscritto per KOD -*- -# -*- By Greko -*- -# -*- last change: 04/05/2019 -from specials import autoplay, filtertools -from channelselector import get_thumb -from core import httptools, channeltools, scrapertools, servertools, tmdb, support -from core.item import Item -from platformcode import config, logger - -__channel__ = "altadefinizione01_club" - -#host = "https://www.altadefinizione01.club/" # host da cambiare -#host = "https://www.altadefinizione01.team/" #aggiornato al 22 marzo 2019 -host = "https://www.altadefinizione01.vision/" #aggiornato al 30-04-209 - -# ======== Funzionalità ============================= - -__comprueba_enlaces__ = config.get_setting('comprueba_enlaces', __channel__) -__comprueba_enlaces_num__ = config.get_setting('comprueba_enlaces_num', __channel__) - -headers = [['User-Agent', 'Mozilla/50.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0'], - ['Referer', host]] - -parameters = channeltools.get_channel_parameters(__channel__) -fanart_host = parameters['fanart'] -thumbnail_host = parameters['thumbnail'] - -IDIOMAS = {'Italiano': 'IT'} -list_language = IDIOMAS.values() -list_servers = ['verystream','openload','rapidvideo','streamango'] # per l'autoplay -list_quality = ['default'] #'rapidvideo', 'streamango', 'openload', 'streamcherry'] # per l'autoplay -# =========== home menu =================== -def mainlist(item): - """ - Creo il menu principale del canale - :param item: - :return: itemlist [] - """ - logger.info("%s mainlist log: %s" % (__channel__, item)) - itemlist = [] - autoplay.init(item.channel, list_servers, list_quality) + + + + + + + + + + + - # Menu Principale - support.menu(itemlist, 'Film Ultimi Arrivi bold', 'peliculas', host, args='pellicola') - support.menu(itemlist, 'Genere', 'categorie', host, args='genres') - support.menu(itemlist, 'Per anno submenu', 'categorie', host, args=['Film per Anno','years']) - support.menu(itemlist, 'Per lettera', 'categorie', host+'catalog/a/', args=['Film per Lettera','orderalf']) - support.menu(itemlist, 'Al Cinema bold', 'peliculas', host+'cinema/', args='pellicola') - support.menu(itemlist, 'Sub-ITA bold', 'peliculas', host+'sub-ita/', args='pellicola') - support.menu(itemlist, 'Cerca film submenu', 'search', host) - autoplay.show_option(item.channel, itemlist) + + + + + - return itemlist - -# ======== def in ordine di menu =========================== -# =========== def per vedere la lista dei film ============= - -def peliculas(item): - logger.info("%s mainlist peliculas log: %s" % (__channel__, item)) - itemlist = [] - # scarico la pagina - data = httptools.downloadpage(item.url, headers=headers).data - # da qui fare le opportuni modifiche - if item.args != 'orderalf': - if item.args == 'pellicola' or item.args == 'years': - bloque = scrapertools.find_single_match(data, '
(.*?)
') - elif item.args == "search": - bloque = scrapertools.find_single_match(data, '
(.*?)') - else: - bloque = scrapertools.find_single_match(data, '
(.*?)