Disattivato il genio, fix ricerca ilgenio_cam
This commit is contained in:
@@ -6,6 +6,6 @@
|
|||||||
"thumbnail": "cinetecadibologna.png",
|
"thumbnail": "cinetecadibologna.png",
|
||||||
"banner": "cinetecadibologna.png",
|
"banner": "cinetecadibologna.png",
|
||||||
"categories": ["documentary"],
|
"categories": ["documentary"],
|
||||||
"not_active":["include_in_newest_peliculas", "include_in_newest_series", "include_in_newest_anime"],
|
"not_active":["include_in_newest_peliculas", "include_in_newest_series", "include_in_newest_anime", "include_in_global_search"],
|
||||||
"settings": []
|
"settings": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "ilgeniodellostreaming",
|
"id": "ilgeniodellostreaming",
|
||||||
"name": "IlGenioDelloStreaming",
|
"name": "IlGenioDelloStreaming",
|
||||||
"active": true,
|
"active": false,
|
||||||
"language": ["ita", "sub-ita"],
|
"language": ["ita", "sub-ita"],
|
||||||
"thumbnail": "ilgeniodellostreaming.png",
|
"thumbnail": "ilgeniodellostreaming.png",
|
||||||
"banner": "ilgeniodellostreaming.png",
|
"banner": "ilgeniodellostreaming.png",
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ def mainlist(item):
|
|||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
|
data = item.data
|
||||||
if item.args == 'sala':
|
if item.args == 'sala':
|
||||||
patronBlock = r'insala(?P<block>.*?)<header>'
|
patronBlock = r'insala(?P<block>.*?)<header>'
|
||||||
patron = r'<img src="(?P<thumb>[^"]+)[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>\s*(?P<rating>[^<]+)[^>]+>[^>]+>(?P<quality>[^<]+)[^>]+>[^>]+>[^>]+>[^>]+><a href="(?P<url>[^"]+)">(?P<title>[^<]+)[^>]+>[^>]+>[^>]+>(?P<year>\d{4})'
|
patron = r'<img src="(?P<thumb>[^"]+)[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>\s*(?P<rating>[^<]+)[^>]+>[^>]+>(?P<quality>[^<]+)[^>]+>[^>]+>[^>]+>[^>]+><a href="(?P<url>[^"]+)">(?P<title>[^<]+)[^>]+>[^>]+>[^>]+>(?P<year>\d{4})'
|
||||||
@@ -55,8 +56,7 @@ def genres(item):
|
|||||||
|
|
||||||
def search(item, text):
|
def search(item, text):
|
||||||
info(text)
|
info(text)
|
||||||
text = text.replace(' ', '+')
|
item.data = support.httptools.downloadpage(host + '/?s=' + text, post={'story': text, 'do': 'search', 'subaction': 'search'}).data
|
||||||
item.url = host + "/search/" + text
|
|
||||||
try:
|
try:
|
||||||
return peliculas(item)
|
return peliculas(item)
|
||||||
except:
|
except:
|
||||||
|
|||||||
+3
-2
@@ -14,13 +14,14 @@ def test_video_exists(page_url):
|
|||||||
global data
|
global data
|
||||||
data = httptools.downloadpage(page_url).data
|
data = httptools.downloadpage(page_url).data
|
||||||
|
|
||||||
|
if "<h2>WE ARE SORRY</h2>" in data or "<h2>ALMOST THERE</h2>" in data or '<title>404 Not Found</title>' in data:
|
||||||
|
return False, config.get_localized_string(70449) % "MixDrop"
|
||||||
|
|
||||||
if 'window.location' in data:
|
if 'window.location' in data:
|
||||||
domain = 'https://' + servertools.get_server_host('mixdrop')[0]
|
domain = 'https://' + servertools.get_server_host('mixdrop')[0]
|
||||||
url = domain + scrapertools.find_single_match(data, "window\.location\s*=\s*[\"']([^\"']+)")
|
url = domain + scrapertools.find_single_match(data, "window\.location\s*=\s*[\"']([^\"']+)")
|
||||||
data = httptools.downloadpage(url).data
|
data = httptools.downloadpage(url).data
|
||||||
|
|
||||||
if "<h2>WE ARE SORRY</h2>" in data or '<title>404 Not Found</title>' in data:
|
|
||||||
return False, config.get_localized_string(70449) % "MixDrop"
|
|
||||||
return True, ""
|
return True, ""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user