diff --git a/addon.xml b/addon.xml index 64c69201..6579318c 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/channels/altadefinizione01.py b/channels/altadefinizione01.py index 9f92b624..f117eae5 100644 --- a/channels/altadefinizione01.py +++ b/channels/altadefinizione01.py @@ -45,12 +45,12 @@ def mainlist(item): def categories(item): support.log(item) - itemlist = support.scrape(item,'
  • (.*?)
  • ',['url','title'],headers,'Altadefinizione01',patron_block='
      (.*?)
    ',action='peliculas',url_host=host) + itemlist = support.scrape(item,'
  • (.*?)
  • ',['url','title'],headers,'Altadefinizione01',patron_block='
      (.*?)
    ',action='peliculas') return support.thumb(itemlist) def AZlist(item): support.log() - return support.scrape(item,r'(.*?)<\/div>',action='peliculas_list',url_host=host) + return support.scrape(item,r'(.*?)<\/div>',action='peliculas_list') def newest(categoria): diff --git a/channels/filmigratis.json b/channels/filmigratis.json new file mode 100644 index 00000000..53f6e70f --- /dev/null +++ b/channels/filmigratis.json @@ -0,0 +1,70 @@ +{ + "id": "filmigratis", + "name": "Filmi Gratis", + "active": true, + "adult": false, + "language": ["ita"], + "thumbnail": "filmigratis.png", + "banner": "filmigratis.png", + "categories": ["movie","tvshow"], + "settings": [ + { + "id": "include_in_global_search", + "type": "bool", + "label": "Includi ricerca globale", + "default": true, + "enabled": true, + "visible": true + }, + { + "id": "include_in_newest_peliculas", + "type": "bool", + "label": "Includi in Novità - Film", + "default": true, + "enabled": true, + "visible": true + }, + { + "id": "include_in_newest_series", + "type": "bool", + "label": "Includi in Novità - Serie TV", + "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": "comprueba_enlaces", + "type": "bool", + "label": "Verifica se i link esistono", + "default": false, + "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": [ "1", "2", "5", "10" ] + }, + { + "id": "filter_languages", + "type": "list", + "label": "Mostra link in lingua...", + "default": 0, + "enabled": true, + "visible": true, + "lvalues": ["Non filtrare","IT"] + } + ] +} diff --git a/channels/filmigratis.py b/channels/filmigratis.py new file mode 100644 index 00000000..9252686f --- /dev/null +++ b/channels/filmigratis.py @@ -0,0 +1,303 @@ +# -*- coding: utf-8 -*- +# ------------------------------------------------------------ +# Canale per Filmi Gratis +# ------------------------------------------------------------ +import base64 +import re +import urlparse + +from channelselector import get_thumb +from channels import filtertools, support, autoplay +from core import scrapertools, servertools, httptools, tmdb +from platformcode import logger, config +from core.item import Item + +channel = 'filmigratis' + +host = 'https://filmigratis.net' + +IDIOMAS = {'Italiano': 'IT'} +list_language = IDIOMAS.values() +list_servers = ['openload', 'streamango', 'vidoza', 'okru'] +list_quality = ['1080p', '720p', '480p', '360'] + +__comprueba_enlaces__ = config.get_setting('comprueba_enlaces', 'filmigratis') +__comprueba_enlaces_num__ = config.get_setting('comprueba_enlaces_num', 'filmigratis') + +headers = [['Referer', host]] + +#----------------------------------------------------------------------------------------------------------------------- + +def mainlist(item): + + # Main options + itemlist = [] + 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, '[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') + + autoplay.init(item.channel, list_servers, list_quality) + autoplay.show_option(item.channel, itemlist) + + return itemlist + +#----------------------------------------------------------------------------------------------------------------------- + +def carousel(item): + logger.info('[filmigratis.py] carousel') + itemlist = [] + + data = httptools.downloadpage(item.url, headers=headers).data + + blocco = scrapertools.find_single_match(data, r'