Fix AnimeSaturn e serverWindow

This commit is contained in:
Alhaziel01
2021-09-29 12:00:59 +02:00
parent fee7a27758
commit 6639b5aaca
4 changed files with 23 additions and 17 deletions
+5 -1
View File
@@ -175,7 +175,6 @@ def findvideos(item):
logger.debug()
itemlist = []
links = []
main_url = support.match(item, patron=r'<a href="([^"]+)">[^>]+>[^>]+>G').match
urls = support.match(support.match(main_url, headers=headers).data, patron=r'<a class="dropdown-item"\s*href="([^"]+)', headers=headers).matches
itemlist.append(item.clone(action="play", title='Primario', url=main_url, server='directo'))
@@ -186,6 +185,11 @@ def findvideos(item):
links.append(link)
return support.server(item, data=links, itemlist=itemlist)
def play(item):
if item.server == 'directo':
item.url = support.match(item.url, patron=r'(?:source type="[^"]+"\s*src=|file:[^"]+)"([^"]+)').match
return[item]