Fix Altadefinizione Click
This commit is contained in:
@@ -185,8 +185,8 @@ def search(item, texto):
|
|||||||
def genres(item):
|
def genres(item):
|
||||||
logger.debug(item)
|
logger.debug(item)
|
||||||
data = support.httptools.downloadpage(item.url, cloudscraper=True).data
|
data = support.httptools.downloadpage(item.url, cloudscraper=True).data
|
||||||
|
blacklist = ['Film', 'Serie TV', 'Trovatore', 'Lista A-Z']
|
||||||
patronMenu = r'<a href="(?P<url>[^"]+)">(?P<title>[^<]+)'
|
patronGenreMenu = r'<a href="(?P<url>[^"]+)">(?P<title>[^<]+)'
|
||||||
if item.args == 'quality':
|
if item.args == 'quality':
|
||||||
item.contentType = 'undefined'
|
item.contentType = 'undefined'
|
||||||
patronBlock = r'Risoluzione(?P<block>.*?)</ul>'
|
patronBlock = r'Risoluzione(?P<block>.*?)</ul>'
|
||||||
@@ -207,14 +207,14 @@ def genres(item):
|
|||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
logger.debug(item)
|
logger.debug()
|
||||||
data = item.data
|
data = item.data
|
||||||
patron = r'class="playtvshow " data-href="(?P<url>[^"]+)'
|
patron = r'class="playtvshow "\s*data-href="(?P<url>[^"]+)'
|
||||||
|
|
||||||
def itemHook(it):
|
def itemHook(it):
|
||||||
spl = it.url.split('/')[-2:]
|
spl = it.url.split('/')[-2:]
|
||||||
it.infoLabels['season'] = int(spl[0])+1
|
it.contentSeason = int(spl[0])+1
|
||||||
it.infoLabels['episode'] = int(spl[1])+1
|
it.contentEpisodeNumber = int(spl[1])+1
|
||||||
it.url = it.url.replace('/watch-unsubscribed', '/watch-external')
|
it.url = it.url.replace('/watch-unsubscribed', '/watch-external')
|
||||||
return it
|
return it
|
||||||
|
|
||||||
|
|||||||
+6
-2
@@ -1401,7 +1401,7 @@ def thumb(data=None, mode=None):
|
|||||||
_thriller = ['thriller']
|
_thriller = ['thriller']
|
||||||
_western = ['western']
|
_western = ['western']
|
||||||
_romance = ['romantico', 'sentimentale', 'romance', 'soap']
|
_romance = ['romantico', 'sentimentale', 'romance', 'soap']
|
||||||
_family = ['famiglia','famiglie', 'family']
|
_family = ['famiglia','famiglie', 'familiare', 'family']
|
||||||
_historical = ['storia', 'storico', 'history', 'historical']
|
_historical = ['storia', 'storico', 'history', 'historical']
|
||||||
_setting = ['impostazioni', 'settaggi', 'configura', 'configurare', 'gestire', 'gestisci', 'gestione', 'setting', 'config']
|
_setting = ['impostazioni', 'settaggi', 'configura', 'configurare', 'gestire', 'gestisci', 'gestione', 'setting', 'config']
|
||||||
_talk = ['talk']
|
_talk = ['talk']
|
||||||
@@ -1415,6 +1415,7 @@ def thumb(data=None, mode=None):
|
|||||||
_fhd = ['fullhd']
|
_fhd = ['fullhd']
|
||||||
_2k = ['2k']
|
_2k = ['2k']
|
||||||
_4k = ['4k']
|
_4k = ['4k']
|
||||||
|
_short = ['corto','short']
|
||||||
|
|
||||||
main_dict = {'movie':_movie,
|
main_dict = {'movie':_movie,
|
||||||
'tvshow':_tvshow,
|
'tvshow':_tvshow,
|
||||||
@@ -1478,7 +1479,10 @@ def thumb(data=None, mode=None):
|
|||||||
'news':_news,
|
'news':_news,
|
||||||
'talk':_talk,
|
'talk':_talk,
|
||||||
'reality':_reality,
|
'reality':_reality,
|
||||||
'tvmovie':_movie}
|
'tvmovie':_movie,
|
||||||
|
'sub':_sub,
|
||||||
|
'cinema':_cinema,
|
||||||
|
'short':_short}
|
||||||
|
|
||||||
search = ['cerca', 'cercare', 'ricerca', 'ricercare', 'trova', 'trovare', 'search', 'searching', 'find', 'finding']
|
search = ['cerca', 'cercare', 'ricerca', 'ricercare', 'trova', 'trovare', 'search', 'searching', 'find', 'finding']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user