Piccolo fix a ricerca globale

Fix SerietvOnline (no findhost)
Fix Eurostreaming (no findhost)
This commit is contained in:
Alhaziel01
2020-11-27 20:19:02 +01:00
parent c5c1bb2221
commit 88f23ef43d
6 changed files with 13 additions and 7 deletions

View File

@@ -17,6 +17,7 @@
"cinetecadibologna": "http://cinestore.cinetecadibologna.it",
"dreamsub": "https://dreamsub.stream",
"dsda": "https://www.dsda.press",
"eurostreaming": "https://eurostreaming.bid",
"fastsubita": "https://fastsubita.xyz",
"filmgratis": "https://www.filmaltadefinizione.co",
"filmigratis": "https://filmigratis.org",
@@ -34,6 +35,7 @@
"piratestreaming": "https://www.piratestreaming.date",
"polpotv": "https://roma.polpo.tv",
"raiplay": "https://www.raiplay.it",
"serietvonline": "https://serietvonline.cam",
"serietvsubita": "http://serietvsubita.xyz",
"serietvu": "https://www.serietvu.link",
"streamingcommunity": "https://streamingcommunity.net",
@@ -46,12 +48,10 @@
"altadefinizioneclick": "https://altadefinizione-nuovo.me",
"animealtadefinizione": "https://www.animealtadefinizione.it",
"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",
"tantifilm": "https://www.tantifilm.wiki"
}
}

View File

@@ -92,6 +92,11 @@ def peliculas(item):
patron = r'<div class="showStreaming"> +<b>(?P<title>[^<]+)[^>]+>[^>]+>\s*<span>Lingua:\s*(?P<lang>[^>]+)?>[<>br\s]+a href="(?P<url>[^"]+)"[^>]+>.*?--image-url:url\(/*(?P<thumb>[^\)]+).*?Anno di inizio</b>:\s*(?P<year>[0-9]{4})'
patronNext = '<li class="currentPage">[^>]+><li[^<]+<a href="([^"]+)">'
def itemHook(item):
if item.thumbnail and not item.thumbinail.startswith('http'):
item.thumbnail = 'http://' + item.thumbnail
return item
return locals()

View File

@@ -12,7 +12,7 @@ def findhost(url):
host = 'https://'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
return host
host = support.config.get_channel_url(findhost)
host = support.config.get_channel_url()
headers = [['Referer', host]]
@support.menu

View File

@@ -1,7 +1,7 @@
{
"id": "paramount",
"name": "Paramount Network",
"active": false,
"active": true,
"language": ["ita"],
"thumbnail": "paramount.png",
"banner": "paramount.png",

View File

@@ -25,7 +25,7 @@ def findhost(url):
host = support.match(url, patron=r'href="([^"]+)">\s*cliccando qui').matches[-1]
return host
host = config.get_channel_url(findhost)
host = config.get_channel_url()
headers = [['Referer', host]]

View File

@@ -249,7 +249,7 @@ class SearchWindow(xbmcgui.WindowXML):
results.extend(module.search(search_action, item.text))
if len(results) == 1:
if not results[0].action or config.get_localized_string(70006).lower() in results[0].title.lower():
results.clear()
results = []
if self.item.mode != 'all':
for elem in results:
@@ -271,7 +271,8 @@ class SearchWindow(xbmcgui.WindowXML):
def makeItem(self, item):
logger.debug()
thumb = item.thumbnail if item.thumbnail else 'Infoplus/' + item.contentType.replace('show','')
thumb = item.thumbnail if item.thumbnail else 'Infoplus/' + item.contentType.replace('show','') + 'png'
logger.info('THUMB', thumb)
it = xbmcgui.ListItem(item.title)
it.setProperty('thumb', thumb)
it.setProperty('fanart', item.fanart)