[bbc] Update tests

master
Sergey M․ 9 years ago
parent f6295bcb04
commit 6a74719060

@ -501,8 +501,7 @@ class BBCIE(BBCCoUkIE):
] ]
_TESTS = [{ _TESTS = [{
# article with multiple videos embedded with data-media-meta containing # article with multiple videos embedded with data-playable containing vpids
# playlist.sxml, externalId and no direct video links
'url': 'http://www.bbc.com/news/world-europe-32668511', 'url': 'http://www.bbc.com/news/world-europe-32668511',
'info_dict': { 'info_dict': {
'id': 'world-europe-32668511', 'id': 'world-europe-32668511',
@ -511,7 +510,7 @@ class BBCIE(BBCCoUkIE):
}, },
'playlist_count': 2, 'playlist_count': 2,
}, { }, {
# article with multiple videos embedded with data-media-meta (more videos) # article with multiple videos embedded with data-playable (more videos)
'url': 'http://www.bbc.com/news/business-28299555', 'url': 'http://www.bbc.com/news/business-28299555',
'info_dict': { 'info_dict': {
'id': 'business-28299555', 'id': 'business-28299555',
@ -522,6 +521,7 @@ class BBCIE(BBCCoUkIE):
'skip': 'Save time', 'skip': 'Save time',
}, { }, {
# article with multiple videos embedded with `new SMP()` # article with multiple videos embedded with `new SMP()`
# broken
'url': 'http://www.bbc.co.uk/blogs/adamcurtis/entries/3662a707-0af9-3149-963f-47bea720b460', 'url': 'http://www.bbc.co.uk/blogs/adamcurtis/entries/3662a707-0af9-3149-963f-47bea720b460',
'info_dict': { 'info_dict': {
'id': '3662a707-0af9-3149-963f-47bea720b460', 'id': '3662a707-0af9-3149-963f-47bea720b460',
@ -529,7 +529,7 @@ class BBCIE(BBCCoUkIE):
}, },
'playlist_count': 18, 'playlist_count': 18,
}, { }, {
# single video embedded with mediaAssetPage.init() # single video embedded with data-playable containing vpid
'url': 'http://www.bbc.com/news/world-europe-32041533', 'url': 'http://www.bbc.com/news/world-europe-32041533',
'info_dict': { 'info_dict': {
'id': 'p02mprgb', 'id': 'p02mprgb',
@ -544,9 +544,9 @@ class BBCIE(BBCCoUkIE):
'skip_download': True, 'skip_download': True,
} }
}, { }, {
# article with single video embedded with data-media-meta containing # article with single video embedded with data-playable containing XML playlist
# direct video links (for now these are extracted) and playlist.xml (with # with direct video links as progressiveDownloadUrl (for now these are extracted)
# media items as f4m and m3u8 - currently unsupported) # and playlist with f4m and m3u8 as streamingUrl
'url': 'http://www.bbc.com/turkce/haberler/2015/06/150615_telabyad_kentin_cogu', 'url': 'http://www.bbc.com/turkce/haberler/2015/06/150615_telabyad_kentin_cogu',
'info_dict': { 'info_dict': {
'id': '150615_telabyad_kentin_cogu', 'id': '150615_telabyad_kentin_cogu',
@ -560,20 +560,7 @@ class BBCIE(BBCCoUkIE):
'skip_download': True, 'skip_download': True,
} }
}, { }, {
# single video embedded with playlist.sxml in data-playable # single video embedded with data-playable containing XML playlists (regional section)
'url': 'http://www.bbc.com/turkce/multimedya/2015/10/151010_vid_ankara_patlama_ani',
'info_dict': {
'id': '151010_vid_ankara_patlama_ani',
'ext': 'mp4',
'title': "Ankara'da patlama anı",
'timestamp': 1444480325,
'upload_date': '20151010',
},
'params': {
'skip_download': True,
}
}, {
# single video embedded with mediaAssetPage.init() (regional section)
'url': 'http://www.bbc.com/mundo/video_fotos/2015/06/150619_video_honduras_militares_hospitales_corrupcion_aw', 'url': 'http://www.bbc.com/mundo/video_fotos/2015/06/150619_video_honduras_militares_hospitales_corrupcion_aw',
'info_dict': { 'info_dict': {
'id': '150619_video_honduras_militares_hospitales_corrupcion_aw', 'id': '150619_video_honduras_militares_hospitales_corrupcion_aw',
@ -629,7 +616,7 @@ class BBCIE(BBCCoUkIE):
'skip_download': True, 'skip_download': True,
} }
}, { }, {
# single video with playlist.sxml URL # single video with playlist.sxml URL in playlist param
'url': 'http://www.bbc.com/sport/0/football/33653409', 'url': 'http://www.bbc.com/sport/0/football/33653409',
'info_dict': { 'info_dict': {
'id': 'p02xycnp', 'id': 'p02xycnp',
@ -643,7 +630,7 @@ class BBCIE(BBCCoUkIE):
'skip_download': True, 'skip_download': True,
} }
}, { }, {
# article with multiple videos embedded with playlist.sxml # article with multiple videos embedded with playlist.sxml in playlist param
'url': 'http://www.bbc.com/sport/0/football/34475836', 'url': 'http://www.bbc.com/sport/0/football/34475836',
'info_dict': { 'info_dict': {
'id': '34475836', 'id': '34475836',

Loading…
Cancel
Save