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