Disattivato altadefinizioneclick (unito al community), fix altacomm e cineblog per certi tipi di serie
This commit is contained in:
+1
-2
@@ -45,8 +45,7 @@
|
|||||||
"vvvvid": "https://www.vvvvid.it"
|
"vvvvid": "https://www.vvvvid.it"
|
||||||
},
|
},
|
||||||
"findhost": {
|
"findhost": {
|
||||||
"altadefinizioneclick": "https://altadefinizione-nuovo.click",
|
"altadefinizionecommunity": "https://altadefinizione-nuovo.click",
|
||||||
"altadefinizionecommunity": "https://altaregistrazione.net",
|
|
||||||
"animealtadefinizione": "https://www.animealtadefinizione.it",
|
"animealtadefinizione": "https://www.animealtadefinizione.it",
|
||||||
"filmpertutti": "https://filmpertuttiii.nuovo.live",
|
"filmpertutti": "https://filmpertuttiii.nuovo.live",
|
||||||
"streamingcommunity": "https://streamingcommunity-nuovo.link"
|
"streamingcommunity": "https://streamingcommunity-nuovo.link"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "altadefinizioneclick",
|
"id": "altadefinizioneclick",
|
||||||
"name": "AltadefinizioneClick",
|
"name": "AltadefinizioneClick",
|
||||||
"active": true,
|
"active": false,
|
||||||
"language": ["ita","sub-ita"],
|
"language": ["ita","sub-ita"],
|
||||||
"thumbnail": "altadefinizioneclick.png",
|
"thumbnail": "altadefinizioneclick.png",
|
||||||
"bannermenu": "altadefinizioneciclk.png",
|
"bannermenu": "altadefinizioneciclk.png",
|
||||||
|
|||||||
@@ -8,12 +8,17 @@ from platformcode import config, platformtools, logger
|
|||||||
from core import scrapertools, httptools
|
from core import scrapertools, httptools
|
||||||
|
|
||||||
|
|
||||||
|
# def findhost(url):
|
||||||
|
# global register_url
|
||||||
|
# register_url = url
|
||||||
|
# return support.match(url, patron=r'<a href="([^"]+)/\w+">Accedi').match
|
||||||
def findhost(url):
|
def findhost(url):
|
||||||
global register_url
|
return support.match(url, patron=r'<div class="elementor-button-wrapper">\s*<a href="([^"]+)"').match
|
||||||
register_url = url
|
|
||||||
return support.match(url, patron=r'<a href="([^"]+)/\w+">Accedi').match
|
|
||||||
|
|
||||||
host = config.get_channel_url(findhost)
|
host = config.get_channel_url(findhost)
|
||||||
|
if host.endswith('/'):
|
||||||
|
host = host[:-1]
|
||||||
|
|
||||||
headers = {'Referer': host, 'x-requested-with': 'XMLHttpRequest'}
|
headers = {'Referer': host, 'x-requested-with': 'XMLHttpRequest'}
|
||||||
order = ['', 'i_piu_visti', 'i_piu_votati', 'i_piu_votati_dellultimo_mese', 'titolo_az', 'voto_imdb_piu_alto'][config.get_setting('order', 'altadefinizionecommunity')]
|
order = ['', 'i_piu_visti', 'i_piu_votati', 'i_piu_votati_dellultimo_mese', 'titolo_az', 'voto_imdb_piu_alto'][config.get_setting('order', 'altadefinizionecommunity')]
|
||||||
@@ -86,7 +91,7 @@ def peliculas(item):
|
|||||||
item.quality = 'HD'
|
item.quality = 'HD'
|
||||||
json = {}
|
json = {}
|
||||||
params ={'type':item.contentType, 'anno':item.year_id, 'quality':item.quality_id, 'cat':item.cat_id, 'order':order}
|
params ={'type':item.contentType, 'anno':item.year_id, 'quality':item.quality_id, 'cat':item.cat_id, 'order':order}
|
||||||
|
# debug = True
|
||||||
|
|
||||||
if item.contentType == 'movie':
|
if item.contentType == 'movie':
|
||||||
action = 'findvideos'
|
action = 'findvideos'
|
||||||
@@ -110,8 +115,8 @@ def peliculas(item):
|
|||||||
except:
|
except:
|
||||||
data = ' '
|
data = ' '
|
||||||
|
|
||||||
patron = r'wrapFilm">\s*<a href="(?P<url>[^"]+)">[^>]+>(?P<year>\d+)(?:[^>]+>){2}(?P<rating>[^<]+)(?:[^>]+>){4}\s*<img src="(?P<thumb>[^"]+)(?:[^>]+>){3}(?P<title>[^<[]+)(?:\[(?P<lang>[sSuUbBiItTaA-]+))?'
|
patron = r'wrapFilm">\s*<a href="(?P<url>[^"]+)">[^>]+>(?P<year>\d+)(?:[^>]+>){2}(?P<rating>[^<]+)(?:[^>]+>){4}\s*<img src="(?P<thumb>[^"]+)(?:[^>]+>){2,6}\s+<h3>(?P<title>[^<[]+)(?:\[(?P<lang>[sSuUbBiItTaA-]+))?'
|
||||||
# patron = r'wrapFilm">\s*<a href="(?P<url>[^"]+)">[^>]+>(?P<year>\d+)(?:[^>]+>){2}(?P<rating>[^<]+)(?:[^>]+>){2}(?P<quality>[^<]+)(?:[^>]+>){2}\s*<img src="(?P<thumb>[^"]+)(?:[^>]+>){3}(?P<title>[^<[]+)(?:\[(?P<lang>[sSuUbBiItTaA-]+))?'
|
# patron = r'wrapFilm">\s*<a href="(?P<url>[^"]+)">[^>]+>(?P<year>\d+)(?:[^>]+>){2}(?P<rating>[^<]+)(?:[^>]+>){4}\s*<img src="(?P<thumb>[^"]+)(?:[^>]+>){3}(?P<title>[^<[]+)(?:\[(?P<lang>[sSuUbBiItTaA-]+))?'
|
||||||
|
|
||||||
# paginazione
|
# paginazione
|
||||||
if json.get('have_next') or 'have_next_film=true' in data:
|
if json.get('have_next') or 'have_next_film=true' in data:
|
||||||
|
|||||||
+13
-13
@@ -133,28 +133,28 @@ def peliculas(item):
|
|||||||
@support.scrape
|
@support.scrape
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def folder(item, data):
|
def folder(item, url):
|
||||||
"""
|
"""
|
||||||
Quando c'è un link ad una cartella contenente più stagioni
|
Quando c'è un link ad una cartella contenente più stagioni
|
||||||
"""
|
"""
|
||||||
actLike = 'episodios'
|
if url:
|
||||||
addVideolibrary = False
|
data = support.match(url).data
|
||||||
downloadEnabled = False
|
actLike = 'episodios'
|
||||||
|
addVideolibrary = False
|
||||||
|
downloadEnabled = False
|
||||||
|
|
||||||
folderUrl = scrapertools.find_single_match(data, r'TUTTA L[EA] \w+\s+(?:–|-)\s+<a href="?([^" ]+)')
|
patron = r'<td>(?P<title>[^<]+)<td><a [^>]+href="(?P<url>[^"]+)[^>]+>'
|
||||||
data = httptools.downloadpage(folderUrl, disable_directIP=True).data
|
sceneTitle = True
|
||||||
patron = r'<td>(?P<title>[^<]+)<td><a [^>]+href="(?P<url>[^"]+)[^>]+>'
|
# debug = True
|
||||||
sceneTitle = True
|
|
||||||
# debug = True
|
|
||||||
|
|
||||||
def itemHook(item):
|
def itemHook(item):
|
||||||
item.serieFolder = True
|
item.serieFolder = True
|
||||||
return item
|
return item
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
# debugBlock=True
|
# debugBlock=True
|
||||||
data = support.match(item.url, headers=headers).data
|
data = support.match(item.url, headers=headers).data
|
||||||
folderItemlist = folder(item, data) if '<p>TUTTA L' in data else []
|
folderItemlist = folder(item, scrapertools.find_single_match(data, r'TUTT[EA] L[EA] \w+\s+(?:–|-)\s+<a href="?([^" ]+)'))
|
||||||
|
|
||||||
patronBlock = r'(?P<block>sp-head[^>]+>\s*(?:STAGION[EI]\s*(?:(?:DA)?\s*[0-9]+\s*A)?\s*[0-9]+|MINISSERIE)(?::\s*PARTE\s*[0-9]+)? - (?P<lang>[^-<]+)(?:- (?P<quality>[^-<]+))?.*?<\/div>.*?)spdiv[^>]*>'
|
patronBlock = r'(?P<block>sp-head[^>]+>\s*(?:STAGION[EI]\s*(?:(?:DA)?\s*[0-9]+\s*A)?\s*[0-9]+|MINISSERIE)(?::\s*PARTE\s*[0-9]+)? - (?P<lang>[^-<]+)(?:- (?P<quality>[^-<]+))?.*?<\/div>.*?)spdiv[^>]*>'
|
||||||
patron = r'(?:/>|<p>|<strong>)(?P<other>.*?(?P<episode>[0-9]+(?:×|ÃÂ)[0-9]+)\s*(?P<title2>.*?)?(?:\s*–|\s*-|\s*<).*?)(?:<\/p>|<br)'
|
patron = r'(?:/>|<p>|<strong>)(?P<other>.*?(?P<episode>[0-9]+(?:×|ÃÂ)[0-9]+)\s*(?P<title2>.*?)?(?:\s*–|\s*-|\s*<).*?)(?:<\/p>|<br)'
|
||||||
|
|||||||
Reference in New Issue
Block a user