From a87648530580c5ba86c80a424d1d25c8e67c5468 Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Wed, 6 Jun 2018 12:03:55 -0500 Subject: [PATCH 1/6] hdfull: fix temp --- plugin.video.alfa/channels/hdfull.py | 65 +++++++++++----------------- 1 file changed, 25 insertions(+), 40 deletions(-) diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py index 78c605b5..10982992 100644 --- a/plugin.video.alfa/channels/hdfull.py +++ b/plugin.video.alfa/channels/hdfull.py @@ -349,11 +349,16 @@ def fichas(item): bus = host[-4:] tag_type = scrapertools.find_single_match(url, '%s/([^/]+)/' %bus) title += " - [COLOR blue]" + tag_type.capitalize() + "[/COLOR]" - - itemlist.append( - Item(channel=item.channel, action=action, title=title, url=url, fulltitle=title, thumbnail=thumbnail, - show=show, folder=True, contentType=contentType, contentTitle=contentTitle, - language =language, infoLabels=infoLabels)) + if "/serie" in url or "/tags-tv" in url: + itemlist.append( + Item(channel=item.channel, action=action, title=title, url=url, thumbnail=thumbnail, + contentSerieName=show, folder=True, contentType=contentType, + language =language, infoLabels=infoLabels)) + else: + itemlist.append( + Item(channel=item.channel, action=action, title=title, url=url, fulltitle=title, thumbnail=thumbnail, + folder=True, contentType=contentType, contentTitle=contentTitle, + language =language, infoLabels=infoLabels)) ## Paginación next_page_url = scrapertools.find_single_match(data, '.raquo;') if next_page_url != "": @@ -389,50 +394,41 @@ def episodios(item): str = get_status(status, "shows", id) if str != "" and account and item.category != "Series" and "XBMC" not in item.title: if config.get_videolibrary_support(): - title = " ( [COLOR gray][B]" + item.show + "[/B][/COLOR] )" + title = " ( [COLOR gray][B]" + item.contentSerieName + "[/B][/COLOR] )" itemlist.append( - Item(channel=item.channel, action="episodios", title=title, fulltitle=title, url=url_targets, - thumbnail=item.thumbnail, show=item.show, folder=False)) + Item(channel=item.channel, action="episodios", title=title, url=url_targets, + thumbnail=item.thumbnail, contentSerieName=item.contentSerieName, folder=False)) title = str.replace('green', 'red').replace('Siguiendo', 'Abandonar') - itemlist.append(Item(channel=item.channel, action="set_status", title=title, fulltitle=title, url=url_targets, - thumbnail=item.thumbnail, show=item.show, folder=True)) + itemlist.append(Item(channel=item.channel, action="set_status", title=title, url=url_targets, + thumbnail=item.thumbnail, contentSerieName=item.contentSerieName, folder=True)) elif account and item.category != "Series" and "XBMC" not in item.title: if config.get_videolibrary_support(): title = " ( [COLOR gray][B]" + item.show + "[/B][/COLOR] )" itemlist.append( - Item(channel=item.channel, action="episodios", title=title, fulltitle=title, url=url_targets, - thumbnail=item.thumbnail, show=item.show, folder=False)) + Item(channel=item.channel, action="episodios", title=title, url=url_targets, + thumbnail=item.thumbnail, contentSerieName=item.contentSerieName, folder=False)) title = " ( [COLOR orange][B]Seguir[/B][/COLOR] )" - itemlist.append(Item(channel=item.channel, action="set_status", title=title, fulltitle=title, url=url_targets, - thumbnail=item.thumbnail, show=item.show, folder=True)) - + itemlist.append(Item(channel=item.channel, action="set_status", title=title, url=url_targets, + thumbnail=item.thumbnail, contentSerieName=item.contentSerieName, folder=True)) patron = "
  • [^<]+
  • " - matches = re.compile(patron, re.DOTALL).findall(data) - for scrapedurl in matches: - + if "temporada-0" in scrapedurl: + continue ## Episodios data = agrupa_datos(httptools.downloadpage(scrapedurl).data) - sid = scrapertools.get_match(data, "") data_unwise = jswise(js_wise).replace("\\", "") - at = scrapertools.find_single_match(data_unwise, 'var at\s*=\s*"([^"]+)"') - http_referer = scrapertools.find_single_match(data_unwise, 'var http_referer\s*=\s*"([^"]+)"') + at = scrapertools.find_single_match(data_unwise, 'at=(\w+)') + http_referer = scrapertools.find_single_match(data_unwise, 'http_referer=(.*?)&') url = "http://hqq.watch/sec/player/embed_player.php?iss=&vid=%s&at=%s&autoplayed=yes&referer=on" \ "&http_referer=%s&pass=&embed_from=&need_captcha=0&hash_from=" % (id_video, at, http_referer) data_player = httptools.downloadpage(url, add_referer=True).data From c3ffd4f5c297a0f2cc5f965f56f7574c6bf4e71b Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Wed, 6 Jun 2018 15:17:18 -0500 Subject: [PATCH 6/6] seriesverde: fix --- plugin.video.alfa/channels/seriesverde.py | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/plugin.video.alfa/channels/seriesverde.py b/plugin.video.alfa/channels/seriesverde.py index 7a6631f4..c35eb109 100644 --- a/plugin.video.alfa/channels/seriesverde.py +++ b/plugin.video.alfa/channels/seriesverde.py @@ -169,7 +169,7 @@ def seasons(item): return itemlist -def all_episodes(item): +def epidodios(item): logger.info() itemlist = [] templist = seasons(item) @@ -183,8 +183,9 @@ def episodesxseason(item): itemlist = [] data = get_source(item.url) season = item.contentSeasonNumber + season_data = scrapertools.find_single_match(data, '