Skip to content

Commit

Permalink
Update iPlayer grabber for BBC Site changes.
Browse files Browse the repository at this point in the history
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
Robert McNamara committed Jun 18, 2011
1 parent c4bc3e9 commit 6eaa653
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -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)
Expand Down
Expand Up @@ -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);
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 6eaa653

Please sign in to comment.