Browse files

Update iPlayer grabber for BBC Site changes.

I can't test this, but this is based on some changes made by Muzer in IRC on .24, which he reported to work with the older version.  Grabbing, minimally, seems to work again.
  • Loading branch information...
1 parent c4bc3e9 commit 6eaa653d65acac2ce1e20b2c0c17d0434be46755 Robert McNamara committed Jun 17, 2011
View
10 mythtv/programs/scripts/internetcontent/nv_python_libs/bbciplayer/bbciplayer_api.py
@@ -355,11 +355,11 @@ def searchTitle(self, title, pagenumber, pagelen):
urlType = u'fullscreen'
# Translate the search results into MNV RSS item format
- audioFilter = etree.XPath('./@class="audio"')
- linkFilter = etree.XPath(u".//div[@class='episode-info']//a")
- titleFilter = etree.XPath(u".//div[@class='episode-info']//a")
- descFilter = etree.XPath(u".//div[@class='episode-info']//p[@class='episode-synopsis']")
- thumbnailFilter = etree.XPath(u".//div[@class='episode-image']//img")
+ audioFilter = etree.XPath('contains(./@class,"audio") or contains(./../../@class,"audio")')
+ linkFilter = etree.XPath(u".//div[@class='episode-info ']//a")
+ titleFilter = etree.XPath(u".//div[@class='episode-info ']//a")
+ descFilter = etree.XPath(u".//div[@class='episode-info ']//p[@class='episode-synopsis']")
+ thumbnailFilter = etree.XPath(u".//span[@class='episode-image cta-play']//img")
itemDict = {}
for result in searchResults:
tmpLink = linkFilter(result)
View
4 mythtv/programs/scripts/internetcontent/nv_python_libs/configs/HTML/bbciplayer.html
@@ -31,7 +31,7 @@
var embedPage = "http://www.bbc.co.uk/iplayer/episode/";
embedPage = embedPage.concat(video_id);
- embedPage = embedPage.concat("/Top_Gear_Series_13_Episode_1_(new_series)/?t=00m01s");
+<!-- embedPage = embedPage.concat("/Top_Gear_Series_13_Episode_1_(new_series)/?t=00m01s");-->
var pl = "http://www.bbc.co.uk/iplayer/playlist/";
pl = pl.concat(video_id);
@@ -95,7 +95,7 @@
var attributes = { id: "mybbcplayer" };
- swfobject.embedSWF("http://www.bbc.co.uk/emp/9player.swf?revision=10344_10570", "myth_player", window.innerWidth, window.innerHeight, "9.0.0", "expressInstall.swf", flashvars, params, attributes);
+ swfobject.embedSWF("http://www.bbc.co.uk/emp/10player.swf?revision=10344_10570", "myth_player", window.innerWidth, window.innerHeight, "9.0.0", "expressInstall.swf", flashvars, params, attributes);
function onPlayerReady(playerId) {
myth_player = document.getElementById("mybbcplayer");

0 comments on commit 6eaa653

Please sign in to comment.