diff --git a/channels.json b/channels.json index 8347780e..5a36c337 100644 --- a/channels.json +++ b/channels.json @@ -3,6 +3,7 @@ "altadefinizione01_link": "https://altadefinizione01.cam", "animeforce": "https://ww1.animeforce.org", "animeleggendari": "https://animepertutti.com", + "animesaturn": "https://animesaturn.com", "animestream": "https://www.animeworld.it", "animesubita": "http://www.animesubita.org", "animetubeita": "http://www.animetubeita.com", diff --git a/channels/animesaturn.json b/channels/animesaturn.json index c2e68a8a..e409d3c4 100644 --- a/channels/animesaturn.json +++ b/channels/animesaturn.json @@ -7,79 +7,5 @@ "thumbnail": "animesaturn.png", "banner": "animesaturn.png", "categories": ["anime"], - "settings": [ - { - "id": "modo_grafico", - "type": "bool", - "label": "Cerca informazioni extra", - "default": true, - "enabled": true, - "visible": true - }, - { - "id": "channel_host", - "type": "text", - "label": "Host del canale", - "default": "https://www.animesaturn.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_anime", - "type": "bool", - "label": "Includi in Novità - Anime", - "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": "autorenumber", - "type": "bool", - "label": "@70712", - "default": false, - "enabled": true, - "visible": true - }, - { - "id": "autorenumber_mode", - "type": "bool", - "label": "@70688", - "default": false, - "enabled": true, - "visible": "eq(-1,true)" - } - ] + "settings": [] } diff --git a/channels/animesaturn.py b/channels/animesaturn.py index e07d0de4..ff52f470 100644 --- a/channels/animesaturn.py +++ b/channels/animesaturn.py @@ -6,8 +6,9 @@ from core import support -__channel__ = "animesaturn" -host = support.config.get_setting("channel_host", __channel__) +# __channel__ = "animesaturn" +# host = support.config.get_setting("channel_host", __channel__) +host = support.config.get_channel_url() headers={'X-Requested-With': 'XMLHttpRequest'} @@ -77,7 +78,7 @@ def peliculas(item): action = 'check' else: pagination = '' - if item.args == 'incorso': patron = r'"slider_title" href="(?P[^"]+)">]+>(?P[^\(<]+)(?:\((?P<year>\d+)\))?</a>' + if item.args == 'incorso': patron = r'"slider_title"\s*href="(?P<url>[^"]+)"><img src="(?P<thumb>[^"]+)"[^>]+>(?P<title>[^\(<]+)(?:\((?P<year>\d+)\))?</a>' else: patron = r'href="(?P<url>[^"]+)"[^>]+>[^>]+>(?P<title>.+?)(?:\((?P<lang>ITA)\))?(?:(?P<year>\((\d+)\)))?</span>' action = 'check' return locals()