diff --git a/channels/fastsubita.json b/channels/fastsubita.json index 2db8f206..9c0cb466 100644 --- a/channels/fastsubita.json +++ b/channels/fastsubita.json @@ -1,70 +1,20 @@ { "id": "fastsubita", "name": "Fastsubita", - "language": ["ita"], + "language": ["vosi"], "active": true, "adult": false, "thumbnail": "fastsubita.png", "banner": "fastsubita.png", - "categories": ["tvshow", "vosi"], + "categories": ["tvshow", "vos"], "settings": [ { - "id": "channel_host", - "type": "text", - "label": "Host del canale", - "default": "http://fastsubita.com", - "enabled": true, - "visible": true - }, - { - "id": "include_in_global_search", - "type": "bool", - "label": "Includi ricerca globale", - "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": [ "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": "include_in_newest_italiano", + "type": "bool", + "label": "@70727", + "default": false, + "enabled": false, + "visible": false } ] } diff --git a/channels/fastsubita.py b/channels/fastsubita.py index d92ea1de..2be810ab 100644 --- a/channels/fastsubita.py +++ b/channels/fastsubita.py @@ -3,146 +3,130 @@ # Canale per fastsubita # Thanks Icarus crew & Alfa addon & 4l3x87 # ------------------------------------------------------------ +""" -from core import scrapertools, httptools, tmdb, support + Problemi noti che non superano il test del canale: + - indicare i problemi + + Avvisi: + - Eventuali avvisi per i tester + + Ulteriori info: + - SOLO SUB-ITA + + --------------------------------------------------- + Per i DEV: + - nella ricerca, anche globale, esce la voce "successivo" + ma apre la maschera per l'inserimento testo + + +""" +from core import support, httptools, scrapertoolsV2, tmdb from core.item import Item from core.support import log -from platformcode import config, logger +from platformcode import config #, logger __channel__ = 'fastsubita' -host = config.get_setting("channel_host", __channel__) -IDIOMAS = {'Italiano': 'IT'} -list_language = IDIOMAS.values() +host = config.get_channel_url(__channel__) +headers = [['Referer', host]] +##IDIOMAS = {'Italiano': 'IT'} +##list_language = IDIOMAS.values() list_servers = ['verystream', 'openload', 'speedvideo', 'wstream', 'flashx', 'vidoza', 'vidtome'] list_quality = ['default'] -headers = [ - ['Host', host.split("//")[-1].split("/")[0]], - ['User-Agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0'], - ['Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'], - ['Accept-Language', 'en-US,en;q=0.5'], - ['Accept-Encoding', 'gzip, deflate'], - ['Referer', host], - ['DNT', '1'], - ['Connection', 'keep-alive'], - ['Upgrade-Insecure-Requests', '1'], - ['Cache-Control', 'max-age=0'] -] - PERPAGE = 15 - @support.menu def mainlist(item): tvshow = ['', - ('Novità', ['', 'peliculas']), ('Archivio A-Z ', ['', 'list_az']) ] return locals() -# ---------------------------------------------------------------------------------------------------------------- +@support.scrape +def peliculas(item): + support.log(item) + #dbg # decommentare per attivare web_pdb + deflang = 'Sub-ITA' + + action = 'findvideos' + blacklist = [''] + patron = r'