Fix paramount serie tv
This commit is contained in:
@@ -53,6 +53,11 @@ def peliculas(item):
|
|||||||
patron = r'>(?P<quality>[^"<]+)'
|
patron = r'>(?P<quality>[^"<]+)'
|
||||||
patron += '<TD[^>]+><A class="tab" HREF="(?P<url>[^"]+)"\s*>[^<]+<[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<size>[^<]+)<[^>]+>[^>]+>[^>]+><form action="[^"]+/\d+/(?P<title>[^"]+)[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<seed>[^<]+)'
|
patron += '<TD[^>]+><A class="tab" HREF="(?P<url>[^"]+)"\s*>[^<]+<[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<size>[^<]+)<[^>]+>[^>]+>[^>]+><form action="[^"]+/\d+/(?P<title>[^"]+)[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<seed>[^<]+)'
|
||||||
|
|
||||||
|
if not sceneTitle:
|
||||||
|
def itemHook(item):
|
||||||
|
item.title = item.title.replace('_', ' ')
|
||||||
|
return item
|
||||||
|
|
||||||
if 'search' not in item.args:
|
if 'search' not in item.args:
|
||||||
item.url += str(item.args[0])
|
item.url += str(item.args[0])
|
||||||
def itemlistHook(itemlist):
|
def itemlistHook(itemlist):
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ def peliculas(item):
|
|||||||
|
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
logger.debug()
|
logger.debug()
|
||||||
|
reEp = r'"isEpisodes":[^,]+,"items":(.*?])'
|
||||||
def load_more(url):
|
def load_more(url):
|
||||||
second_url = host if url.startswith('/') else '' + url.replace('\u002F','/').replace('%5C','/')
|
second_url = host if url.startswith('/') else '' + url.replace('\u002F','/').replace('%5C','/')
|
||||||
new_data = support.match(host + second_url).data
|
new_data = support.match(host + second_url).data
|
||||||
@@ -114,11 +115,10 @@ def episodios(item):
|
|||||||
return jsontools.load(match)
|
return jsontools.load(match)
|
||||||
|
|
||||||
itemlist = []
|
itemlist = []
|
||||||
data = []
|
|
||||||
page_data = support.match(item.url).data
|
page_data = support.match(item.url).data
|
||||||
seasons = support.match(page_data, patron=r'href="([^"]+)"[^>]+>Stagione\s*\d+').matches
|
seasons = support.match(page_data, patron=r'href="([^"]+)"[^>]+>Stagione\s*\d+').matches
|
||||||
more = support.match(page_data, patron=r'loadingTitle":[^,]+,"url":"([^"]+)"').match
|
more = support.match(page_data, patron=r'loadingTitle":[^,]+,"url":"([^"]+)"').match
|
||||||
data = jsontools.load(support.scrapertools.decodeHtmlentities(support.match(page_data, patron=r'"isEpisodes":[^,]+,"items":(.*?),"isKidsUI"').match))
|
data = jsontools.load(support.scrapertools.decodeHtmlentities(support.match(page_data, patron=reEp).match))
|
||||||
|
|
||||||
if data:
|
if data:
|
||||||
if more:
|
if more:
|
||||||
@@ -126,7 +126,7 @@ def episodios(item):
|
|||||||
if seasons:
|
if seasons:
|
||||||
for url in seasons:
|
for url in seasons:
|
||||||
new_data = support.match(host + url).data
|
new_data = support.match(host + url).data
|
||||||
data += jsontools.load(support.scrapertools.decodeHtmlentities(support.match(new_data, patron=r'isEpisodes":[^,]+,"items":(.*?),"isKidsUI"').match.replace('\x01','l').replace('\x02','a')))
|
data += jsontools.load(support.scrapertools.decodeHtmlentities(support.match(new_data, patron=reEp).match.replace('\x01','l').replace('\x02','a')))
|
||||||
match = support.match(new_data, patron=r'loadingTitle":[^,]+,"url":"([^"]+)"').match
|
match = support.match(new_data, patron=r'loadingTitle":[^,]+,"url":"([^"]+)"').match
|
||||||
if match and match != load_more:
|
if match and match != load_more:
|
||||||
data += load_more(match)
|
data += load_more(match)
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ validUrlRegex = re.compile(
|
|||||||
r'(?::\d+)?' # optional port
|
r'(?::\d+)?' # optional port
|
||||||
r'(?:/?|[/?]\S+)$', re.IGNORECASE)
|
r'(?:/?|[/?]\S+)$', re.IGNORECASE)
|
||||||
|
|
||||||
chBlackList = ['url', 'mediasetplay', 'metalvideo']
|
chBlackList = ['url', 'mediasetplay', 'metalvideo', 'altadefinizionecommunity']
|
||||||
srvBlacklist = ['mega', 'hdmario', 'torrent', 'youtube']
|
srvBlacklist = ['mega', 'hdmario', 'torrent', 'youtube']
|
||||||
chNumRis = {
|
chNumRis = {
|
||||||
'altadefinizione01': {
|
'altadefinizione01': {
|
||||||
|
|||||||
Reference in New Issue
Block a user