diff --git a/channels/mondoserietv.json b/channels/mondoserietv.json index cae7032d..7f9930cc 100644 --- a/channels/mondoserietv.json +++ b/channels/mondoserietv.json @@ -6,65 +6,6 @@ "language": ["ita"], "thumbnail": "https:\/\/mondoserietv.com\/wp-content\/uploads\/2018\/04\/logo.png", "bannermenu": "https:\/\/mondoserietv.com\/wp-content\/uploads\/2018\/04\/logo.png", - "categories": ["movie","anime","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": "checklinks", - "type": "bool", - "label": "Verifica se i link esistono", - "default": false, - "enabled": true, - "visible": true - }, - { - "id": "checklinks_number", - "type": "list", - "label": "Numero de link da verificare", - "default": 1, - "enabled": true, - "visible": "eq(-1,true)", - "lvalues": [ "1", "3", "5", "10" ] - }, - { - "id": "filter_languages", - "type": "list", - "label": "Mostra link in lingua...", - "default": 0, - "enabled": true, - "visible": true, - "lvalues": ["Non filtrare","IT"] - } - ] + "categories": ["movie","anime","tvshow","documentary"], + "settings": [] } diff --git a/channels/mondoserietv.py b/channels/mondoserietv.py index a1e5d943..6b45f8bd 100644 --- a/channels/mondoserietv.py +++ b/channels/mondoserietv.py @@ -1,357 +1,361 @@ # -*- coding: utf-8 -*- # ------------------------------------------------------------ -# Ringraziamo Icarus crew # Canale per mondoserietv -# # ---------------------------------------------------------- -import re -from core import scrapertools, servertools, httptools, scrapertoolsV2 -from core import tmdb -from core.item import Item -from lib.unshortenit import unshorten -from platformcode import logger, config -from specials import autoplay +from core import support __channel__ = "mondoserietv" -host = config.get_channel_url(__channel__) +host = support.config.get_channel_url(__channel__) IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() list_servers = ['akstream'] list_quality = ['default'] -checklinks = config.get_setting('checklinks', 'mondoserietv') -checklinks_number = config.get_setting('checklinks_number', 'mondoserietv') - headers = {'Referer': host} -PERPAGE = 14 - - +@support.menu def mainlist(item): - logger.info("kod.mondoserietvmainlist") - autoplay.init(item.channel, list_servers, list_quality) + film =['/lista-film'] - itemlist = [Item(channel=item.channel, - action="lista_serie", - title="[COLOR azure]Lista Serie Tv Anni 50 60 70 80[/COLOR]", - url=("%s/lista-serie-tv-anni-60-70-80/" % host), - thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), - Item(channel=item.channel, - action="lista_serie", - title="[COLOR azure]Lista Serie Tv Italiane[/COLOR]", - url=("%s/lista-serie-tv-italiane/" % host), - thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), - Item(channel=item.channel, - action="lista_serie", - title="[COLOR azure]Lista Cartoni Animati & Anime[/COLOR]", - url=("%s/lista-cartoni-animati-e-anime/" % host), - thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), - Item(channel=item.channel, - action="peliculas", - title="[COLOR azure]Lista Film[/COLOR]", - url=("%s/lista-film/" % host), - thumbnail="http://orig03.deviantart.net/6889/f/2014/079/7/b/movies_and_popcorn_folder_icon_by_matheusgrilo-d7ay4tw.png"), - Item(channel=item.channel, - title="[COLOR yellow]Cerca Film...[/COLOR]", - action="search", - extra="movie", - thumbnail="http://dc467.4shared.com/img/fEbJqOum/s7/13feaf0c8c0/Search"), - Item(channel=item.channel, - title="[COLOR yellow]Cerca SerieTV...[/COLOR]", - action="search", - extra="tvshow", - thumbnail="http://dc467.4shared.com/img/fEbJqOum/s7/13feaf0c8c0/Search")] - autoplay.show_option(item.channel, itemlist) + tvshow = ['/lista-serie-tv', + ('HD {TV}', ['/lista-serie-tv-in-altadefinizione']), + ('Anni 50 60 70 80 {TV}',['/lista-serie-tv-anni-60-70-80'])] - return itemlist + anime = ['/lista-cartoni-animati-e-anime'] -def search(item, texto): - logger.info("kod.mondoserietv search " + texto) - item.url = "%s/?s=%s" % (host, texto) + docu = [('Documentari bullet bold',['/lista-documentari', 'peliculas', '', 'tvshow']), + ('Cerca Documentari... submenu bold', ['/lista-documentari', 'search', '', 'tvshow'])] + return locals() + +def search(item, text): + support.log(text) try: - if item.extra == "movie": - return search_peliculas(item) - if item.extra == "tvshow": - return search_peliculas_tv(item) + item.search = text + return peliculas(item) # Continua la ricerca in caso di errore except: import sys for line in sys.exc_info(): - logger.error("%s" % line) + support.logger.error("%s" % line) return [] -def search_peliculas(item): - logger.info("kod.mondoserietv search_peliculas") - itemlist = [] - - # Carica la pagina - data = httptools.downloadpage(item.url, headers=headers).data - - # Estrae i contenuti - patron = '