diff --git a/channels/altadefinizione01.json b/channels/altadefinizione01.json index 927022e4..a8690559 100644 --- a/channels/altadefinizione01.json +++ b/channels/altadefinizione01.json @@ -1,11 +1,11 @@ { "id": "altadefinizione01", "name": "Altadefinizione01", - "language": ["ita", "vos"], + "language": ["ita", "vosi"], "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"], + "categories": ["movie", "vos"], "settings": [] } diff --git a/channels/altadefinizione01.py b/channels/altadefinizione01.py index 1bcba04a..f24e4b88 100644 --- a/channels/altadefinizione01.py +++ b/channels/altadefinizione01.py @@ -2,12 +2,17 @@ # ------------------------------------------------------------ # Canale per altadefinizione01 # ------------------------------------------------------------ +""" + + Eccezioni note che non superano il test del canale: + + Avvisi: + - L'url si prende da questo file. + - è presente nelle novità-> Film. + + Ulteriori info: """ - - -""" - from core import scrapertoolsV2, httptools, support from core.item import Item from platformcode import config, logger @@ -33,9 +38,9 @@ def mainlist(item): film = [ ('Al Cinema', ['/cinema/', 'peliculas', 'pellicola']), ('Ultimi Aggiornati-Aggiunti', ['','peliculas', 'update']), - ('Generi', ['', 'categorie', 'genres']), - ('Lettera', ['/catalog/a/', 'categorie', 'orderalf']), - ('Anni', ['', 'categorie', 'years']), + ('Generi', ['', 'genres', 'genres']), + ('Lettera', ['/catalog/a/', 'genres', 'orderalf']), + ('Anni', ['', 'genres', 'years']), ('Sub-ITA', ['/sub-ita/', 'peliculas', 'pellicola']) ] @@ -44,7 +49,7 @@ def mainlist(item): @support.scrape def peliculas(item): support.log('peliculas',item) - deflang = 'ITA' +## deflang = 'ITA' action="findvideos" patron = r'

..*?<.*?src="(?P[^"]+)"'\ @@ -54,22 +59,20 @@ def peliculas(item): if item.args == "search": patronBlock = r'
(?P.*)
' + elif item.args == 'update': patronBlock = r'
Ultimi Film Aggiunti/Aggiornati
(?P.*?)
' - patron = r'style="background-image:url\((?P[^\)]+).+?

'\ - '(?P.*?)</p>[^>]+> [^>]+> [^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+> '\ - '[^>]+> [^>]+>[^>]+>(?P<year>\d{4})[^>]+>[^>]+> [^>]+>[^>]+>'\ - '(?P<duration>\d+).+?>.*?<p>(?P<plot>[^<]+)<.*?href="(?P<url>[^"]+)' + patron = r'style="background-image:url\((?P<thumb>[^\)]+).+?<p class="h4">(?P<title>.*?)</p>[^>]+> [^>]+> [^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+> [^>]+> [^>]+>[^>]+>(?P<year>\d{4})[^>]+>[^>]+> [^>]+>[^>]+>(?P<duration>\d+).+?>.*?(?:>Film (?P<lang>Sub ITA)</a></p> )?<p>(?P<plot>[^<]+)<.*?href="(?P<url>[^"]+)' else: patronBlock = r'<div class="cover_kapsul ml-mask">(?P<block>.*)<div class="page_nav">' patronNext = '<span>\d</span> <a href="([^"]+)">' - #debug = True + debug = True return locals() @support.scrape -def categorie(item): - support.log('categorie',item) +def genres(item): + support.log('genres',item) if item.args != 'orderalf': action = "peliculas" else: action = 'orderalf' @@ -100,9 +103,6 @@ def orderalf(item): return locals() -def findvideos(item): - support.log('findvideos', item) - return support.server(item, headers=headers) def search(item, text): support.log(item, text) @@ -139,3 +139,7 @@ def newest(categoria): return [] return itemlist + +def findvideos(item): + support.log('findvideos', item) + return support.server(item, headers=headers)