From 504b4ebe45e92a02b548c8730fdc7504b7976791 Mon Sep 17 00:00:00 2001 From: CaptainT Date: Fri, 22 Dec 2017 15:51:12 +0100 Subject: [plugin.video.iplayerwww] 3.0.20 --- plugin.video.iplayerwww/addon.xml | 5 +- plugin.video.iplayerwww/resources/icon.png | Bin 27305 -> 21971 bytes .../resources/lib/ipwww_video.py | 104 +++++++++++++++++---- 3 files changed, 92 insertions(+), 17 deletions(-) diff --git a/plugin.video.iplayerwww/addon.xml b/plugin.video.iplayerwww/addon.xml index 49292f4..8b4a6ff 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.20 +Fixed Most Popular and Highlights. + v3.0.19 Fixed Channel Highlights. diff --git a/plugin.video.iplayerwww/resources/icon.png b/plugin.video.iplayerwww/resources/icon.png index 7b111e8..5a87a0b 100644 Binary files a/plugin.video.iplayerwww/resources/icon.png and b/plugin.video.iplayerwww/resources/icon.png differ diff --git a/plugin.video.iplayerwww/resources/lib/ipwww_video.py b/plugin.video.iplayerwww/resources/lib/ipwww_video.py index 1a4d0fa..3f9fe77 100644 --- a/plugin.video.iplayerwww/resources/lib/ipwww_video.py +++ b/plugin.video.iplayerwww/resources/lib/ipwww_video.py @@ -1188,24 +1188,15 @@ def ListMainHighlights(highlights_url): url = 'https://www.bbc.co.uk' + href name = '' - if group_type == "popular": - name_match = re.search( - r'(.*?)', - programme, flags=(re.DOTALL | re.MULTILINE)) - else: - name_match = re.search( - r'item__title.+?>(.*?)', - programme, flags=(re.DOTALL | re.MULTILINE)) + name_match = re.search( + r'item__title.+?>(.*?)', + programme, flags=(re.DOTALL | re.MULTILINE)) if name_match: name = name_match.group(1) - if group_type == "popular": - subtitle_match = re.search( - r'item__subtitle.+?>(.*?)

', programme, flags=(re.DOTALL | re.MULTILINE)) - else: - subtitle_match = re.search( - r'primary">.*?item__description.+?>(.*?)', - programme, flags=(re.DOTALL | re.MULTILINE)) + subtitle_match = re.search( + r'primary">.*?item__description.+?>(.*?)', + programme, flags=(re.DOTALL | re.MULTILINE)) if subtitle_match: name = name + ' - ' + subtitle_match.group(1) @@ -1235,6 +1226,9 @@ def ListMainHighlights(highlights_url): if category_match: group_data.append(('[B]%s: %s[/B]' % (translation(30314), name), category_match.group(1), 125)) + elif group_type == "popular": + group_data.append(('[B]%s: %s[/B]' % (translation(30314), name), + url, 105)) else: group_data.append(('[B]%s: %s[/B]' % (translation(30314), name), url, 128)) @@ -1254,7 +1248,85 @@ def ListMainHighlights(highlights_url): def ListMostPopular(): """Scrapes all episodes of the most popular page.""" - ScrapeEpisodes("http://www.bbc.co.uk/iplayer/group/most-popular") + html = OpenURL("http://www.bbc.co.uk/iplayer/group/most-popular") + + #
  • EastEnders + title_match = re.search( + r'
    21/21 Crowning the champion
    + subtitle_match = re.search( + r'
    .*?>\s*(.*?)\s*
    ', + li, flags=(re.DOTALL | re.MULTILINE)) + if subtitle_match: + subtitle = subtitle_match.group(1) + if subtitle: + name = name + " - " + subtitle + + icon = '' + #
    Linda gets more than she bargained for when looking for her Christmas + # present.
    + synopsis_match = re.search( + r'
    .*?>\s*(.*?)\s*
    ', + li, flags=(re.DOTALL | re.MULTILINE)) + if synopsis_match: + synopsis = synopsis_match.group(1) + + aired = '' + episodes = None + more = None + + CheckAutoplay(name , main_url, icon, synopsis, aired) + + xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_VIDEO_TITLE) + xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_DATE) + xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_UNSORTED) + def AddAvailableStreamItem(name, url, iconimage, description): -- cgit v1.2.3