Added new tests and added expected warnings to existing tests.
This commit is contained in:
parent
7def329f19
commit
2fcb8b8c20
@ -60,36 +60,42 @@ class SenateISVPIE(InfoExtractor):
|
||||
'info_dict': {
|
||||
'id': 'judiciary031715',
|
||||
'ext': 'mp4',
|
||||
'title': 'Integrated Senate Video Player',
|
||||
'thumbnail': r're:^https?://.*\.(?:jpg|png)$',
|
||||
},
|
||||
'params': {
|
||||
# m3u8 download
|
||||
'skip_download': True,
|
||||
},
|
||||
}, {
|
||||
'url': 'http://www.senate.gov/isvp/?type=live&comm=commerce&filename=commerce011514.mp4&auto_play=false',
|
||||
'info_dict': {
|
||||
'id': 'commerce011514',
|
||||
'ext': 'mp4',
|
||||
'title': 'Integrated Senate Video Player'
|
||||
},
|
||||
'params': {
|
||||
# m3u8 download
|
||||
'skip_download': True,
|
||||
'title': 'judiciary031715',
|
||||
'thumbnail': 'http://www.judiciary.senate.gov/themes/judiciary/images/video-poster-flash-fit.png',
|
||||
},
|
||||
'expected_warnings': ['Failed to download m3u8 information: HTTP Error 404: Not Found'],
|
||||
}, {
|
||||
'url': 'http://www.senate.gov/isvp/?type=arch&comm=intel&filename=intel090613&hc_location=ufi',
|
||||
# checksum differs each time
|
||||
'info_dict': {
|
||||
'id': 'intel090613',
|
||||
'ext': 'mp4',
|
||||
'title': 'Integrated Senate Video Player'
|
||||
}
|
||||
'title': 'intel090613',
|
||||
},
|
||||
'expected_warnings': ['Failed to download m3u8 information: HTTP Error 404: Not Found'],
|
||||
}, {
|
||||
# From http://www.c-span.org/video/?96791-1
|
||||
'url': 'http://www.senate.gov/isvp?type=live&comm=banking&filename=banking012715',
|
||||
'only_matching': True,
|
||||
'url': 'https://www.senate.gov/isvp/?comm=govtaff&type=archv&stt=975&filename=govtaff111722&auto_play=false&poster=https%3A%2F%2Fwww%2Ehsgac%2Esenate%2Egov%2Fimages%2Fvideo%2Dposter%2Dflash%2Dfit%2Epng',
|
||||
'info_dict': {
|
||||
'id': 'govtaff111722',
|
||||
'ext': 'mp4',
|
||||
'title': 'govtaff111722',
|
||||
'thumbnail': 'https://www.hsgac.senate.gov/images/video-poster-flash-fit.png',
|
||||
},
|
||||
}, {
|
||||
'url': 'https://www.senate.gov/isvp/?type=arch&comm=energy&filename=energy111722&stt=00:22:30&auto_play=false&wmode=transparent&poster=https%3A%2F%2Fwww%2Eenergy%2Esenate%2Egov%2Fthemes%2Fenergy%2Fimages%2Fvideo%2Dposter%2Dflash%2Dfit%2Epng',
|
||||
'info_dict': {
|
||||
'id': 'energy111722',
|
||||
'ext': 'mp4',
|
||||
'title': 'energy111722',
|
||||
'thumbnail': 'https://www.energy.senate.gov/themes/energy/images/video-poster-flash-fit.png',
|
||||
},
|
||||
}, {
|
||||
'url': 'https://www.senate.gov/isvp/?comm=foreign&type=archv&stt=0&filename=foreign080322&auto_play=false&wmode=transparent&poster=https%3A%2F%2Fwww%2Eforeign%2Esenate%2Egov%2Fthemes%2Fforeign%2Fimages%2Fvideo%2Dposter%2Dflash%2Dfit%2Epng',
|
||||
'info_dict': {
|
||||
'id': 'foreign080322',
|
||||
'ext': 'mp4',
|
||||
'title': 'foreign080322',
|
||||
'thumbnail': 'https://www.foreign.senate.gov/themes/foreign/images/video-poster-flash-fit.png',
|
||||
},
|
||||
}]
|
||||
|
||||
@staticmethod
|
||||
@ -142,7 +148,7 @@ class SenateISVPIE(InfoExtractor):
|
||||
video_id,
|
||||
ext='mp4',
|
||||
m3u8_id='hls',
|
||||
entry_protocal='mu38_native',
|
||||
entry_protocol='mu38_native',
|
||||
fatal=False
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user