From c1626a6a78dd1021b4c5b26e2c4701be16603765 Mon Sep 17 00:00:00 2001 From: CaptainT Date: Mon, 27 Nov 2017 15:21:36 +0100 Subject: [plugin.video.iplayerwww] 3.0.19 --- plugin.video.iplayerwww/addon.xml | 5 ++++- plugin.video.iplayerwww/resources/lib/ipwww_video.py | 20 +++++++++++++------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/plugin.video.iplayerwww/addon.xml b/plugin.video.iplayerwww/addon.xml index 6a96773..49292f4 100644 --- a/plugin.video.iplayerwww/addon.xml +++ b/plugin.video.iplayerwww/addon.xml @@ -1,5 +1,5 @@ - + @@ -22,6 +22,9 @@ resources/fanart.jpg +v3.0.19 +Fixed Channel Highlights. + v3.0.18 Fixed Highlights (again). Fixed BBCiD login. diff --git a/plugin.video.iplayerwww/resources/lib/ipwww_video.py b/plugin.video.iplayerwww/resources/lib/ipwww_video.py index 9af725b..1a4d0fa 100644 --- a/plugin.video.iplayerwww/resources/lib/ipwww_video.py +++ b/plugin.video.iplayerwww/resources/lib/ipwww_video.py @@ -830,13 +830,18 @@ def ListHighlights(highlights_url): html = OpenURL('https://www.bbc.co.uk/%s' % highlights_url) - inner_anchors = re.findall(r'',html,flags=(re.DOTALL | re.MULTILINE)) + inner_anchors = re.findall(r'href="(?!',html,flags=(re.DOTALL | re.MULTILINE)) # First find all groups as we need to store some properties of groups for later reuse. group_properties = [] # NOTE find episode count first episode_count = dict() + + # These groups seem to be no longer used, because this function is only used + # for Channel Highlights, no longer main Highlights. + # Comment the code for now and remove it in the future. + """ groups = [a for a in inner_anchors if re.match( r'