Fix Animeworl e Casacinema

This commit is contained in:
Alhaziel01
2021-03-22 10:32:10 +01:00
parent 9f304abbee
commit 13cb0b915f
5 changed files with 6 additions and 6 deletions

View File

@@ -211,5 +211,5 @@ def findvideos(item):
json = jsontools.load(dataJson)
title = support.match(json['grabber'], patron=r'server\d+.([^.]+)', string=True).match
if title: itemlist.append(item.clone(action="play", title=title, url=json['grabber'].split('=')[-1], server='directo'))
else: itemlist.append(item.clone(action="play", title=name, url=json['grabber'], server=name))
else: urls.append(json['grabber'])
return support.server(item, urls, itemlist)

View File

@@ -133,14 +133,14 @@ def episodios(item):
action = 'findvideos'
item.contentType = 'tvshow'
blacklist = ['']
patron = r'(?P<episode>\d+(?:&#215;|×)?\d+\-\d+|\d+(?:&#215;|×)\d+)[;]?(?:(?P<title>[^<]+)<(?P<url>.*?)|(\2[ ])(?:<(\3.*?)))(?:<br />|</p>)'
patron = r'(?P<episode>\d+(?:&#215;|×)?\d+\-\d+|\d+(?:&#215;|×)\d+)[;]?(?:(?P<title>[^<]+)<(?P<data>.*?)|(\2[ ])(?:<(\3.*?)))(?:<br />|</p>)'
patronBlock = r'<strong>(?P<block>(?:.+?Stagione*.+?(?P<lang>[Ii][Tt][Aa]|[Ss][Uu][Bb][\-]?[iI][tT][aA]))?(?:.+?|</strong>)(/?:</span>)?</p>.*?</p>)'
return locals()
def findvideos(item):
if item.contentType != 'movie':
links = support.match(item.url, patron=r'href="([^"]+)"').matches
links = support.match(item.data, patron=r'href="([^"]+)"').matches
else:
matchData = item.data if item.data else item
links = support.match(matchData, patron=r'(?:SRC|href)="([^"]+)"', patronBlock=r'<div class="col-md-10">(.+?)<div class="ads">').matches

View File

@@ -68,7 +68,7 @@ def find_video_items(item=None, data=None):
# Find the links to the videos
for label, url, server, thumbnail in findvideos(data):
title = config.get_localized_string(70206) % label
title = label
itemlist.append(
item.clone(title=title, action="play", url=url, thumbnail=thumbnail, server=server, folder=False))

View File

@@ -4,7 +4,7 @@
"ignore_urls": [],
"patterns": [
{
"pattern": "vup.to/((?:embed-)?[a-z0-9]+)",
"pattern": "(?:vupload.com|vup.to)/((?:embed-)?[a-z0-9]+)",
"url": "https://vup.to/\\1.html"
}
]

View File

@@ -10,7 +10,7 @@ def test_video_exists(page_url):
global data
data = page.data
if page.code == 404 or 'File is no longer available' in data:
return False, config.get_localized_string(70449) % "VUP"
return False, config.get_localized_string(70449) % "VUP Player"
return True, ""