mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[test/subtitles] Add test for ThePlatformFeedIE
This commit is contained in:
		| @@ -25,6 +25,7 @@ from youtube_dl.extractor import ( | |||||||
|     RaiIE, |     RaiIE, | ||||||
|     VikiIE, |     VikiIE, | ||||||
|     ThePlatformIE, |     ThePlatformIE, | ||||||
|  |     ThePlatformFeedIE, | ||||||
|     RTVEALaCartaIE, |     RTVEALaCartaIE, | ||||||
|     FunnyOrDieIE, |     FunnyOrDieIE, | ||||||
| ) | ) | ||||||
| @@ -307,6 +308,18 @@ class TestThePlatformSubtitles(BaseTestSubtitles): | |||||||
|         self.assertEqual(md5(subtitles['en']), '97e7670cbae3c4d26ae8bcc7fdd78d4b') |         self.assertEqual(md5(subtitles['en']), '97e7670cbae3c4d26ae8bcc7fdd78d4b') | ||||||
|  |  | ||||||
|  |  | ||||||
|  | class TestThePlatformFeedSubtitles(BaseTestSubtitles): | ||||||
|  |     url = 'http://feed.theplatform.com/f/7wvmTC/msnbc_video-p-test?form=json&pretty=true&range=-40&byGuid=n_hardball_5biden_140207' | ||||||
|  |     IE = ThePlatformFeedIE | ||||||
|  |  | ||||||
|  |     def test_allsubtitles(self): | ||||||
|  |         self.DL.params['writesubtitles'] = True | ||||||
|  |         self.DL.params['allsubtitles'] = True | ||||||
|  |         subtitles = self.getSubtitles() | ||||||
|  |         self.assertEqual(set(subtitles.keys()), set(['en'])) | ||||||
|  |         self.assertEqual(md5(subtitles['en']), '48649a22e82b2da21c9a67a395eedade') | ||||||
|  |  | ||||||
|  |  | ||||||
| class TestRtveSubtitles(BaseTestSubtitles): | class TestRtveSubtitles(BaseTestSubtitles): | ||||||
|     url = 'http://www.rtve.es/alacarta/videos/los-misterios-de-laura/misterios-laura-capitulo-32-misterio-del-numero-17-2-parte/2428621/' |     url = 'http://www.rtve.es/alacarta/videos/los-misterios-de-laura/misterios-laura-capitulo-32-misterio-del-numero-17-2-parte/2428621/' | ||||||
|     IE = RTVEALaCartaIE |     IE = RTVEALaCartaIE | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user