_TESTS = [
{
- 'url': 'http://www.bbc.co.uk/programmes/p01q7wz1',
+ 'url': 'http://www.bbc.co.uk/programmes/b039g8p7',
'info_dict': {
- 'id': 'p01q7wz4',
+ 'id': 'b039d07m',
'ext': 'flv',
- 'title': 'Friction: Blu Mar Ten guest mix: Blu Mar Ten - Guest Mix',
- 'description': 'Blu Mar Ten deliver a Guest Mix for Friction.',
- 'duration': 1936,
+ 'title': 'Kaleidoscope: Leonard Cohen',
+ 'description': 'md5:db4755d7a665ae72343779f7dacb402c',
+ 'duration': 1740,
},
'params': {
# rtmp download
'params': {
# rtmp download
'skip_download': True,
- }
+ },
+ 'skip': 'Episode is no longer available on BBC iPlayer Radio',
},
{
'url': 'http://www.bbc.co.uk/iplayer/episode/b03vhd1f/The_Voice_UK_Series_3_Blind_Auditions_5/',
mobj = re.match(self._VALID_URL, url)
group_id = mobj.group('id')
+ webpage = self._download_webpage(url, group_id, 'Downloading video page')
+ if re.search(r'id="emp-error" class="notinuk">', webpage):
+ raise ExtractorError('Currently BBC iPlayer TV programmes are available to play in the UK only',
+ expected=True)
+
playlist = self._download_xml('http://www.bbc.co.uk/iplayer/playlist/%s' % group_id, group_id,
'Downloading playlist XML')