Fix 1337x e Film Streaming

This commit is contained in:
Alhaziel01
2022-03-08 19:30:36 +01:00
parent 2b8b1d42f2
commit f3011b5b5d
2 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -58,8 +58,8 @@ def moviefilter(item):
return platformtools.show_channel_settings(list_controls=controls, item=item, caption='Filtro', callback='filtered') return platformtools.show_channel_settings(list_controls=controls, item=item, caption='Filtro', callback='filtered')
def filtered(item, values):
def filtered(item, values):
genre = item.genreValues[values['genre']] genre = item.genreValues[values['genre']]
lang = item.langValues[values['lang']] lang = item.langValues[values['lang']]
sortby = item.sortValues[values['sort']] sortby = item.sortValues[values['sort']]
@@ -97,8 +97,11 @@ def search(item, text):
def peliculas(item): def peliculas(item):
if item.args == 'filter': if item.args == 'filter':
item.url = moviefilter(item) item.url = moviefilter(item)
if not item.url:
data = ' '
else:
data = support.match(item).data data = support.match(item).data
if item.args == 'search': if item.args == 'search':
sceneTitle = 'undefined' sceneTitle = 'undefined'
patron = r'<a href="(?P<url>[^"]+)">(?P<title>[^<]+)<(?:[^>]+>){3,7}(?P<seed>[^<]+)<(?:[^>]+>){6}(?P<size>[^<]+)<span' patron = r'<a href="(?P<url>[^"]+)">(?P<title>[^<]+)<(?:[^>]+>){3,7}(?P<seed>[^<]+)<(?:[^>]+>){6}(?P<size>[^<]+)<span'
@@ -118,6 +121,7 @@ def peliculas(item):
nextPage = int(currentPage) + 1 nextPage = int(currentPage) + 1
support.nextPage(itemlist, item, next_page=item.url.replace(f'/{currentPage}', f'/{nextPage}'), function_or_level='peliculas') support.nextPage(itemlist, item, next_page=item.url.replace(f'/{currentPage}', f'/{nextPage}'), function_or_level='peliculas')
return itemlist return itemlist
return locals() return locals()
+2 -2
View File
@@ -84,8 +84,8 @@ def genres(item):
def findvideos(item): def findvideos(item):
data = support.match(item.url).data data = support.match(item.url).data
urls = support.match(data, patron=r'<span data-link="([^"]+)').matches urls = support.match(data, patron=r'<span data-link="([^"]+)',).matches
if urls: if len(urls) > 1:
data = urls data = urls
else: else:
url = support.match(item.url, patron='<iframe.*?src="([^"]+)').match url = support.match(item.url, patron='<iframe.*?src="([^"]+)').match