Fix streamtape, filmpertutti->aggiornamenti

This commit is contained in:
mac12m99
2021-08-14 19:19:31 +02:00
parent 817bcbc996
commit 840e47be78
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ def peliculas(item):
patronNext = r'<a href="([^"]+)[^>]+>Pagina' patronNext = r'<a href="([^"]+)[^>]+>Pagina'
else: else:
patronBlock = r'<ul class="posts">(?P<block>.*)<div class="clear[^"]*">' patronBlock = r'<ul class="posts">(?P<block>.*)<div class="clear[^"]*">'
patron = r'<li>\s?<a href="(?P<url>[^"]+)" data-thumbnail="(?P<thumb>[^"]+)">.*?<div class="title[^"]*">(?P<title>.+?)(?:\s\[(?P<quality>HD)\])?<\/div><div class="episode[^"]*"[^>]+>(?P<episode>[^<(]+)(?:\((?P<lang>[a-zA-Z\-]+)\))?' patron = r'<li>\s?<a href="(?P<url>[^"]+)" data-thumbnail="(?P<thumb>[^"]+)">.*?<div class="title[^"]*">(?P<title>.+?)(?:\s\[(?P<quality>HD)\])?<\/div>\s*<div class="episode[^"]*"[^>]+>(?P<episode>[^<(]+)(?:\((?P<lang>[a-zA-Z\-]+)\))?'
if item.args == 'search': if item.args == 'search':
action = 'select' action = 'select'
+3 -5
View File
@@ -27,13 +27,11 @@ def test_video_exists(page_url):
def get_video_url(page_url, premium=False, user="", password="", video_password=""): def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.debug("url=" + page_url) logger.debug("url=" + page_url)
# from core .support import dbg;dbg()
video_urls = [] video_urls = []
possible_url = '' find_url = match(data, patron=r'''innerHTML = ["']([^"]+)["'](?:\s*\+\s*['"(]+([^"']+))?''').match
find_url = match(data, patron=r'''innerHTML = ["']([^"]+)["'](?:\s*\+\s*['"]([^"']+))?''').match possible_url = find_url[0]
for m in find_url: possible_url += find_url[1][2:]
possible_url += m
if not possible_url: if not possible_url:
possible_url = match(data, patron=r"innerHTML\\'\]=\\'([^']+)").match possible_url = match(data, patron=r"innerHTML\\'\]=\\'([^']+)").match
+1 -1
View File
@@ -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'] chBlackList = ['url', 'mediasetplay', 'metalvideo']
srvBlacklist = ['mega', 'hdmario', 'torrent', 'youtube'] srvBlacklist = ['mega', 'hdmario', 'torrent', 'youtube']
chNumRis = { chNumRis = {
'altadefinizione01': { 'altadefinizione01': {