From c37d0ada3c4d44dadbe63227de3ba490aea57b59 Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Mon, 19 Feb 2018 12:46:52 -0500 Subject: [PATCH] kbagi: fix busquedas --- plugin.video.alfa/channels/kbagi.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin.video.alfa/channels/kbagi.py b/plugin.video.alfa/channels/kbagi.py index c356cc38..d3fedc41 100644 --- a/plugin.video.alfa/channels/kbagi.py +++ b/plugin.video.alfa/channels/kbagi.py @@ -134,7 +134,7 @@ def listado(item): data = re.sub(r"\n|\r|\t|\s{2}| |
", "", data) folder = filetools.join(config.get_data_path(), 'thumbs_kbagi') - patron = 'data-file-id(.*?)' + patron = 'data-file-id(.*?

)' bloques = scrapertools.find_multiple_matches(data, patron) for block in bloques: if "adult_info" in block and not adult_content: @@ -184,8 +184,7 @@ def listado(item): new_item.fanart = item.thumbnail itemlist.append(new_item) - - next_page = scrapertools.find_single_match(data, 'class="pageSplitter" data-nextpage-number="([^"]+)"') + next_page = scrapertools.find_single_match(data, 'class="pageSplitter.*?" data-nextpage-number="([^"]+)"') if next_page: if item.post: post = re.sub(r'pageNumber=(\d+)', "pageNumber=" + next_page, item.post)