fix ricerca altadefinizioneclick e altre piccole modifiche
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"cineblog01": "https://cb01.uno",
|
||||
"eurostreaming": "https://eurostreaming.link",
|
||||
"film4k": "https://film4k-nuovo.link",
|
||||
"filmpertutti": "https://filmpertutti.nuovo.live",
|
||||
"ilcorsaronero": "https://lagazzettadelcorsaro.com",
|
||||
"seriehd": "https://nuovoindirizzo.info/seriehd/",
|
||||
"serietvonline": "https://serietvonline.online",
|
||||
@@ -32,7 +33,6 @@
|
||||
"fastsubita": "https://fastsubita.uno",
|
||||
"filmgratis": "https://www.filmaltadefinizione.co",
|
||||
"filmigratis": "https://filmigratis.org",
|
||||
"filmpertutti": "https://www.filmpertutti.voto",
|
||||
"filmsenzalimiticc": "https://www.filmsenzalimiti01.club",
|
||||
"filmstreaming01": "https://filmstreaming01.com",
|
||||
"guardaserie_stream": "https://guardaserie.host",
|
||||
|
||||
@@ -99,7 +99,7 @@ def search(item, texto):
|
||||
support.info("search ", texto)
|
||||
|
||||
item.args = 'search'
|
||||
item.url = host + "/?s=" + texto
|
||||
item.url = host + "/search/" + texto
|
||||
try:
|
||||
return peliculas(item)
|
||||
# Continua la ricerca in caso di errore
|
||||
|
||||
@@ -7,12 +7,12 @@ from core import httptools, support
|
||||
from core.item import Item
|
||||
from platformcode import config
|
||||
|
||||
# def findhost(url):
|
||||
# page = httptools.downloadpage("https://filmpertutti.nuovo.live/").data
|
||||
# url = scrapertools.find_single_match(page, 'Il nuovo indirizzo di FILMPERTUTTI è <a href="([^"]+)')
|
||||
# return url
|
||||
def findhost(url):
|
||||
page = httptools.downloadpage(url).data
|
||||
url = support.scrapertools.find_single_match(page, 'Il nuovo indirizzo di FILMPERTUTTI è <a href="([^"]+)')
|
||||
return url
|
||||
|
||||
host = config.get_channel_url()
|
||||
host = config.get_channel_url(findhost)
|
||||
headers = [['Referer', host]]
|
||||
|
||||
|
||||
|
||||
@@ -444,7 +444,7 @@ def scrape(func):
|
||||
data = data.replace('\n', ' ')
|
||||
data = data.replace('\t', ' ')
|
||||
data = data.replace(' ', ' ')
|
||||
data = re.sub(r'>\s+<', '> <', data)
|
||||
data = re.sub(r'>\s{2,}<', '> <', data)
|
||||
# replace all ' with " and eliminate newline, so we don't need to worry about
|
||||
scrapingTime = time()
|
||||
if patronBlock:
|
||||
|
||||
Reference in New Issue
Block a user