mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[toypics] Separate user and video extraction (#2601)
This commit is contained in:
		| @@ -37,6 +37,7 @@ from youtube_dl.extractor import ( | ||||
|     GoogleSearchIE, | ||||
|     GenericIE, | ||||
|     TEDIE, | ||||
|     ToypicsUserIE, | ||||
| ) | ||||
|  | ||||
|  | ||||
| @@ -269,5 +270,13 @@ class TestPlaylists(unittest.TestCase): | ||||
|         self.assertEqual(result['title'], 'Who are the hackers?') | ||||
|         self.assertTrue(len(result['entries']) >= 6) | ||||
|  | ||||
|     def test_toypics_user(self): | ||||
|         dl = FakeYDL() | ||||
|         ie = ToypicsUserIE(dl) | ||||
|         result = ie.extract('http://videos.toypics.net/Mikey') | ||||
|         self.assertIsPlaylist(result) | ||||
|         self.assertEqual(result['id'], 'Mikey') | ||||
|         self.assertTrue(len(result['entries']) >= 17) | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister