mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Merge pull request #2041 from dstftw/imdb-list
[imdb] Add support for IMDb list (#2033)
This commit is contained in:
		| @@ -28,7 +28,8 @@ from youtube_dl.extractor import ( | ||||
|     BandcampAlbumIE, | ||||
|     SmotriCommunityIE, | ||||
|     SmotriUserIE, | ||||
|     IviCompilationIE | ||||
|     IviCompilationIE, | ||||
|     ImdbListIE, | ||||
| ) | ||||
|  | ||||
|  | ||||
| @@ -187,6 +188,15 @@ class TestPlaylists(unittest.TestCase): | ||||
|         self.assertEqual(result['id'], u'dezhurnyi_angel/season2') | ||||
|         self.assertEqual(result['title'], u'Дежурный ангел (2010 - 2012) 2 сезон') | ||||
|         self.assertTrue(len(result['entries']) >= 20) | ||||
|          | ||||
|     def test_imdb_list(self): | ||||
|         dl = FakeYDL() | ||||
|         ie = ImdbListIE(dl) | ||||
|         result = ie.extract('http://www.imdb.com/list/sMjedvGDd8U') | ||||
|         self.assertIsPlaylist(result) | ||||
|         self.assertEqual(result['id'], u'sMjedvGDd8U') | ||||
|         self.assertEqual(result['title'], u'Animated and Family Films') | ||||
|         self.assertTrue(len(result['entries']) >= 48) | ||||
|  | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz