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
+5
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()
+1 -1
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
+1 -1
View File
@@ -1,7 +1,7 @@
{
"id": "paramount",
"name": "Paramount Network",
"active": false,
"active": true,
"language": ["ita"],
"thumbnail": "paramount.png",
"banner": "paramount.png",
+1 -1
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]]