diff --git a/plugin.video.alfa/channels/newpct1.json b/plugin.video.alfa/channels/newpct1.json index 9ce76eb7..4e620eb2 100644 --- a/plugin.video.alfa/channels/newpct1.json +++ b/plugin.video.alfa/channels/newpct1.json @@ -77,7 +77,7 @@ "id": "intervenidos_channels_list", "type": "text", "label": "Lista de canales y clones de NewPct1 intervenidos y orden de sustitución de URLs", - "default": "('0', 'canal_org', 'canal_des', 'url_org', 'url_des', 'patron1', 'patron2', 'patron3', 'patron4', 'patron5', 'content_inc', 'content_exc', 'ow_force'), ('1', 'mejortorrent', 'mejortorrent1', 'http://www.mejortorrent.com/', 'https://mejortorrent1.com/', '(http.?:\/\/.*?\/)', 'http.?:\/\/.*?\/.*?-torrent.?-[^-]+-(?:[^-]+-)([^0-9]+-)', 'http.?:\/\/.*?\/.*?-torrent.?-[^-]+-(?:[^-]+-)[^0-9]+-\\d+-(Temporada-).html', 'http.?:\/\/.*?\/.*?-torrent.?-[^-]+-(?:[^-]+-)[^0-9]+-(\\d+)-', '', 'tvshow, season', '', 'force'), ('1', 'mejortorrent', 'mejortorrent1', 'http://www.mejortorrent.com/', 'https://mejortorrent1.com/', '(http.?:\/\/.*?\/)', 'http.?:\/\/.*?\/.*?-torrent.?-[^-]+-([^.]+).html', '', '', '', 'movie', '', 'force'), ('1', 'mejortorrent', 'mejortorrent', 'http://www.mejortorrent.com/', http://www.mejortorrent.org/', '', '', '', '', '', '*', '', 'force')", + "default": "('0', 'canal_org', 'canal_des', 'url_org', 'url_des', 'patron1', 'patron2', 'patron3', 'patron4', 'patron5', 'content_inc', 'content_exc', 'ow_force'), ('0', 'mejortorrent', 'mejortorrent1', 'http://www.mejortorrent.com/', 'https://mejortorrent1.com/', '(http.?:\/\/.*?\/)', 'http.?:\/\/.*?\/.*?-torrent.?-[^-]+-(?:[^-]+-)([^0-9]+-)', 'http.?:\/\/.*?\/.*?-torrent.?-[^-]+-(?:[^-]+-)[^0-9]+-\\d+-(Temporada-).html', 'http.?:\/\/.*?\/.*?-torrent.?-[^-]+-(?:[^-]+-)[^0-9]+-(\\d+)-', '', 'tvshow, season', '', 'force'), ('0', 'mejortorrent', 'mejortorrent1', 'http://www.mejortorrent.com/', 'https://mejortorrent1.com/', '(http.?:\/\/.*?\/)', 'http.?:\/\/.*?\/.*?-torrent.?-[^-]+-([^.]+).html', '', '', '', 'movie', '', 'force'), ('1', 'mejortorrent', 'mejortorrent', 'http://www.mejortorrent.com/', 'http://www.mejortorrent.org/', '', '', '', '', '', '*', '', 'force'), ('1', 'plusdede', 'megadede', 'https://www.plusdede.com', 'https://www.megadede.com', '', '', '', '', '', '*', '', 'auto')", "enabled": true, "visible": false }, diff --git a/plugin.video.alfa/channels/pelisplusco.py b/plugin.video.alfa/channels/pelisplusco.py index f02deda1..06b96914 100644 --- a/plugin.video.alfa/channels/pelisplusco.py +++ b/plugin.video.alfa/channels/pelisplusco.py @@ -147,7 +147,7 @@ def get_source(url): logger.info() data = httptools.downloadpage(url).data - data = re.sub(r'"|\n|\r|\t| |
|\s{2,}', "", data) + data = re.sub(r'\n|\r|\t| |
|\s{2,}', "", data) return data def list_all (item): @@ -159,17 +159,20 @@ def list_all (item): else: contentType = 'pelicula' action = 'findvideos' - if item.type not in ['normal', 'seccion', 'serie']: + if 'pagination' in item.url: post = {'page':item.page, 'type':item.type,'slug':item.slug,'id':item.id} post = urllib.urlencode(post) data =httptools.downloadpage(item.url, post=post, headers=CHANNEL_HEADERS).data - data = re.sub(r'"|\n|\r|\t| |
|\s{2,}', "", data) - patron ='
(.*?)<\/p>(\d{4})<\/span>' + data = re.sub(r'\n|\r|\t| |
|\s{2,}', "", data) + patron = '
.*?
') + next_page_valid = scrapertools.find_single_match(data, '
') if item.type != 'normal' and (len(itemlist)>19 or next_page_valid): type = item.type if item.type == 'serie': @@ -233,24 +236,18 @@ def seccion(item): data = get_source(item.url) page = "1" if item.seccion == 'generos': - patron = '
  • <\/i>(.*?)<\/span>' + patron = '
  • ([^<]+)<' type = 'genre' pat = 'genero/' elif item.seccion == 'anios': - patron = '
  • (\d{4})<\/a>' + patron = '
  • (\d{4})<\/a>' type = 'year' pat = 'peliculas-' matches = scrapertools.find_multiple_matches(data, patron) for scrapedurl, scrapedtitle in matches: title = scrapedtitle - if item.seccion == 'generos': - cant = re.sub(r'.*?','',scrapedtitle) - only_title = re.sub(r'<.*','',scrapedtitle).rstrip() - title = only_title+' (%s)'%cant url = host+scrapedurl slug = scrapertools.find_single_match(scrapedurl, "%s(.*?)/" %pat) - if item.seccion in ['generos', 'anios']: - url = host + "/pagination/" itemlist.append( Item(action="list_all", channel=item.channel, diff --git a/plugin.video.alfa/channels/seriesblancoxyz.py b/plugin.video.alfa/channels/seriesblancoxyz.py index 3c251cb0..6b6dca98 100644 --- a/plugin.video.alfa/channels/seriesblancoxyz.py +++ b/plugin.video.alfa/channels/seriesblancoxyz.py @@ -206,7 +206,7 @@ def episodesxseason(item): language=language, infoLabels=infoLabels )) - + itemlist = filtertools.get_links(itemlist, item, list_language) tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True) return itemlist diff --git a/plugin.video.alfa/channels/seriesdanko.py b/plugin.video.alfa/channels/seriesdanko.py index b60e966c..513184bf 100644 --- a/plugin.video.alfa/channels/seriesdanko.py +++ b/plugin.video.alfa/channels/seriesdanko.py @@ -56,21 +56,19 @@ def novedades(item): data = httptools.downloadpage(item.url).data data = re.sub(r"\n|\r|\t|\s{2}| |
    |
    |
    |
    |
    |-\s", "", data) data = re.sub(r"", "", data) - patron = '
    ' - patron += "(.*?)") + patron = "
    (.*?)" matches = re.compile(patron, re.DOTALL).findall(data) - for scrapedtitle, scrapedurl, scrapedthumb in matches: - # patron = "^(.*?)(?:Ya Disponible|Disponible|Disponbile|disponible|\(Actualizada\))$" - # match = re.compile(patron, re.DOTALL).findall(scrapedtitle) + for serie_data in matches: + scrapedtitle = scrapertools.find_single_match(serie_data, "title='([^']+)'") + scrapedurl = scrapertools.find_single_match(serie_data, 'href="([^"]+)"') + scrapedthumb = scrapertools.find_single_match(serie_data, "src='([^']+)'") title = scrapertools.decodeHtmlentities(scrapedtitle) language='' - # language = scrapertools.find_multiple_matches(title,'(Vose|EspaƱol|Latino)') - # for lang in language: - # title = title.replace(lang,'') - # title = title.replace ('Disponible','') - # title = title.replace('Ya', '') - # title = title.strip() + title = title.replace ('Disponible','') + title = title.replace('Ya', '') + title = title.strip() show = scrapertools.find_single_match(title, "^(.+?) \d+[x|X]\d+")