mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[test/test_InfoExtractor] add test for #18923
This commit is contained in:
		| @@ -497,7 +497,64 @@ jwplayer("mediaplayer").setup({"abouttext":"Visit Indie DB","aboutlink":"http:\/ | ||||
|                     'width': 1280, | ||||
|                     'height': 720, | ||||
|                 }] | ||||
|             ) | ||||
|             ), | ||||
|             ( | ||||
|                 # https://github.com/rg3/youtube-dl/issues/18923 | ||||
|                 # https://www.ted.com/talks/boris_hesser_a_grassroots_healthcare_revolution_in_africa | ||||
|                 'ted_18923', | ||||
|                 'http://hls.ted.com/talks/31241.m3u8', | ||||
|                 [{ | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/audio/600k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '600k-Audio', | ||||
|                     'vcodec': 'none', | ||||
|                 }, { | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/audio/600k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '68', | ||||
|                     'vcodec': 'none', | ||||
|                 }, { | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/video/64k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '163', | ||||
|                     'acodec': 'none', | ||||
|                     'width': 320, | ||||
|                     'height': 180, | ||||
|                 }, { | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/video/180k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '481', | ||||
|                     'acodec': 'none', | ||||
|                     'width': 512, | ||||
|                     'height': 288, | ||||
|                 }, { | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/video/320k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '769', | ||||
|                     'acodec': 'none', | ||||
|                     'width': 512, | ||||
|                     'height': 288, | ||||
|                 }, { | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/video/450k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '984', | ||||
|                     'acodec': 'none', | ||||
|                     'width': 512, | ||||
|                     'height': 288, | ||||
|                 }, { | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/video/600k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '1255', | ||||
|                     'acodec': 'none', | ||||
|                     'width': 640, | ||||
|                     'height': 360, | ||||
|                 }, { | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/video/950k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '1693', | ||||
|                     'acodec': 'none', | ||||
|                     'width': 853, | ||||
|                     'height': 480, | ||||
|                 }, { | ||||
|                     'url': 'http://hls.ted.com/videos/BorisHesser_2018S/video/1500k.m3u8?nobumpers=true&uniqueId=76011e2b', | ||||
|                     'format_id': '2462', | ||||
|                     'acodec': 'none', | ||||
|                     'width': 1280, | ||||
|                     'height': 720, | ||||
|                 }] | ||||
|             ), | ||||
|         ] | ||||
|  | ||||
|         for m3u8_file, m3u8_url, expected_formats in _TEST_CASES: | ||||
|   | ||||
							
								
								
									
										28
									
								
								test/testdata/m3u8/ted_18923.m3u8
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								test/testdata/m3u8/ted_18923.m3u8
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| #EXTM3U | ||||
| #EXT-X-VERSION:4 | ||||
| #EXT-X-STREAM-INF:AUDIO="600k",BANDWIDTH=1255659,PROGRAM-ID=1,CODECS="avc1.42c01e,mp4a.40.2",RESOLUTION=640x360 | ||||
| /videos/BorisHesser_2018S/video/600k.m3u8?nobumpers=true&uniqueId=76011e2b | ||||
| #EXT-X-STREAM-INF:AUDIO="600k",BANDWIDTH=163154,PROGRAM-ID=1,CODECS="avc1.42c00c,mp4a.40.2",RESOLUTION=320x180 | ||||
| /videos/BorisHesser_2018S/video/64k.m3u8?nobumpers=true&uniqueId=76011e2b | ||||
| #EXT-X-STREAM-INF:AUDIO="600k",BANDWIDTH=481701,PROGRAM-ID=1,CODECS="avc1.42c015,mp4a.40.2",RESOLUTION=512x288 | ||||
| /videos/BorisHesser_2018S/video/180k.m3u8?nobumpers=true&uniqueId=76011e2b | ||||
| #EXT-X-STREAM-INF:AUDIO="600k",BANDWIDTH=769968,PROGRAM-ID=1,CODECS="avc1.42c015,mp4a.40.2",RESOLUTION=512x288 | ||||
| /videos/BorisHesser_2018S/video/320k.m3u8?nobumpers=true&uniqueId=76011e2b | ||||
| #EXT-X-STREAM-INF:AUDIO="600k",BANDWIDTH=984037,PROGRAM-ID=1,CODECS="avc1.42c015,mp4a.40.2",RESOLUTION=512x288 | ||||
| /videos/BorisHesser_2018S/video/450k.m3u8?nobumpers=true&uniqueId=76011e2b | ||||
| #EXT-X-STREAM-INF:AUDIO="600k",BANDWIDTH=1693925,PROGRAM-ID=1,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=853x480 | ||||
| /videos/BorisHesser_2018S/video/950k.m3u8?nobumpers=true&uniqueId=76011e2b | ||||
| #EXT-X-STREAM-INF:AUDIO="600k",BANDWIDTH=2462469,PROGRAM-ID=1,CODECS="avc1.640028,mp4a.40.2",RESOLUTION=1280x720 | ||||
| /videos/BorisHesser_2018S/video/1500k.m3u8?nobumpers=true&uniqueId=76011e2b | ||||
| #EXT-X-STREAM-INF:AUDIO="600k",BANDWIDTH=68101,PROGRAM-ID=1,CODECS="mp4a.40.2",DEFAULT=YES | ||||
| /videos/BorisHesser_2018S/audio/600k.m3u8?nobumpers=true&uniqueId=76011e2b | ||||
|  | ||||
| #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=74298,PROGRAM-ID=1,CODECS="avc1.42c00c",RESOLUTION=320x180,URI="/videos/BorisHesser_2018S/video/64k_iframe.m3u8?nobumpers=true&uniqueId=76011e2b" | ||||
| #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=216200,PROGRAM-ID=1,CODECS="avc1.42c015",RESOLUTION=512x288,URI="/videos/BorisHesser_2018S/video/180k_iframe.m3u8?nobumpers=true&uniqueId=76011e2b" | ||||
| #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=304717,PROGRAM-ID=1,CODECS="avc1.42c015",RESOLUTION=512x288,URI="/videos/BorisHesser_2018S/video/320k_iframe.m3u8?nobumpers=true&uniqueId=76011e2b" | ||||
| #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=350933,PROGRAM-ID=1,CODECS="avc1.42c015",RESOLUTION=512x288,URI="/videos/BorisHesser_2018S/video/450k_iframe.m3u8?nobumpers=true&uniqueId=76011e2b" | ||||
| #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=495850,PROGRAM-ID=1,CODECS="avc1.42c01e",RESOLUTION=640x360,URI="/videos/BorisHesser_2018S/video/600k_iframe.m3u8?nobumpers=true&uniqueId=76011e2b" | ||||
| #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=810750,PROGRAM-ID=1,CODECS="avc1.4d401f",RESOLUTION=853x480,URI="/videos/BorisHesser_2018S/video/950k_iframe.m3u8?nobumpers=true&uniqueId=76011e2b" | ||||
| #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=1273700,PROGRAM-ID=1,CODECS="avc1.640028",RESOLUTION=1280x720,URI="/videos/BorisHesser_2018S/video/1500k_iframe.m3u8?nobumpers=true&uniqueId=76011e2b" | ||||
|  | ||||
| #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="600k",LANGUAGE="en",NAME="Audio",AUTOSELECT=YES,DEFAULT=YES,URI="/videos/BorisHesser_2018S/audio/600k.m3u8?nobumpers=true&uniqueId=76011e2b",BANDWIDTH=614400 | ||||
		Reference in New Issue
	
	Block a user
	 Remita Amine
					Remita Amine