disattivato fastsubita (pare chiuso), fix animesaturn e piccola miglioria cb01

This commit is contained in:
marco
2021-01-06 20:47:42 +01:00
parent 6e8dd1c551
commit 59c1e66b28
4 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ def peliculas(item):
deflang= 'Sub-ITA' deflang= 'Sub-ITA'
action = 'check' action = 'check'
page = None page = None
post = "page=" + str(item.page if item.page else 1) if item.page > 1 else None post = "page=" + str(item.page if item.page else 1) if item.page and item.page > 1 else None
if item.args == 'top': if item.args == 'top':
data = item.other data = item.other
+4 -6
View File
@@ -5,9 +5,7 @@
import re import re
from core import scrapertools, httptools, servertools, tmdb, support from core import scrapertools, httptools, servertools, support
from core.item import Item
from lib import unshortenit
from platformcode import logger, config from platformcode import logger, config
@@ -90,14 +88,14 @@ def search(item, text):
logger.error("%s" % line) logger.error("%s" % line)
return [] return []
@support.scrape @support.scrape
def peliculas(item): def peliculas(item):
# esclusione degli articoli 'di servizio' # esclusione degli articoli 'di servizio'
blacklist = ['BENVENUTI', 'Richieste Serie TV', 'CB01.UNO ▶ TROVA L’INDIRIZZO UFFICIALE ', blacklist = ['BENVENUTI', 'Richieste Serie TV', 'CB01.UNO ▶ TROVA L’INDIRIZZO UFFICIALE ',
'Aggiornamento Quotidiano Serie TV', 'OSCAR 2019 ▶ CB01.UNO: Vota il tuo film preferito! 🎬', 'Aggiornamento Quotidiano Serie TV', 'OSCAR 2019 ▶ CB01.UNO: Vota il tuo film preferito! 🎬',
'Openload: la situazione. Benvenuto Verystream', 'Openload: lo volete ancora?', 'Openload: la situazione. Benvenuto Verystream', 'Openload: lo volete ancora?',
'OSCAR 2020 ▶ VOTA IL TUO FILM PREFERITO! 🎬'] 'OSCAR 2020 ▶ VOTA IL TUO FILM PREFERITO! 🎬',
'Auguri di Buon Natale e Felice Anno Nuovo! – 2021!']
# debug= True # debug= True
if 'newest' in item.args: if 'newest' in item.args:
if '/serietv/' not in item.url: if '/serietv/' not in item.url:
@@ -112,7 +110,7 @@ def peliculas(item):
action = 'episodios' action = 'episodios'
elif '/serietv/' not in item.url: elif '/serietv/' not in item.url:
patron = r'<div class="card-image">\s*<a[^>]+>\s*<img src="(?P<thumb>[^" ]+)" alt[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+><a href="?(?P<url>[^" >]+)(?:\/|"|\s+)>(?P<title>[^<[(]+)(?:\[(?P<quality>[A-Za-z0-9/-]+)])? (?:\((?P<year>[0-9]{4})\))?[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<genre>[^<>&–]+)(?:[^ ]+\s*DURATA\s*(?P<duration>[0-9]+)[^>]+>[^>]+>[^>]+>(?P<plot>[^<>]+))?' patron = r'<div class="card-image">\s*<a[^>]+>\s*<img src="(?P<thumb>[^" ]+)" alt[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+><a href="?(?P<url>[^" >]+)(?:\/|"|\s+)>(?P<title>[^<[(]+)(?:\[(?P<quality>[A-Za-z0-9/-]+)])? (?:\((?P<year>[0-9]{4})\))?[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<genre>[^<>&–]+)(?:[^ ]+\s*DURATA\s*(?P<duration>[0-9]+)[^>]+>[^>]+>[^>]+>(?P<plot>[^<>]+))?'
action = 'findvideos' action = 'findvideos'
else: else:
+1 -1
View File
@@ -2,7 +2,7 @@
"id": "fastsubita", "id": "fastsubita",
"name": "Fastsubita", "name": "Fastsubita",
"language": ["sub-ita"], "language": ["sub-ita"],
"active": true, "active": false,
"thumbnail": "fastsubita.png", "thumbnail": "fastsubita.png",
"banner": "fastsubita.png", "banner": "fastsubita.png",
"categories": ["tvshow", "vos"], "categories": ["tvshow", "vos"],
+4 -1
View File
@@ -283,7 +283,10 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
scraped['duration'] = int(h) * 60 + int(m) scraped['duration'] = int(h) * 60 + int(m)
if not matches: if not matches:
scraped['duration'] = scrapertools.find_single_match(scraped['duration'], r'(\d+)') scraped['duration'] = scrapertools.find_single_match(scraped['duration'], r'(\d+)')
infolabels['duration'] = int(scraped['duration']) * 60 try:
infolabels['duration'] = int(scraped['duration']) * 60
except:
scraped['duration'] = ''
if scraped['genere']: if scraped['genere']:
genres = scrapertools.find_multiple_matches(scraped['genere'], '[A-Za-z]+') genres = scrapertools.find_multiple_matches(scraped['genere'], '[A-Za-z]+')
infolabels['genere'] = ", ".join(genres) infolabels['genere'] = ", ".join(genres)