mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[InfoExtractor] Misc yt-dlp back-ports, etc
* add _yes_playlist() method * avoid crash using _NETRC_MACHINE * use _search_json() in _search_nextjs_data() * _search_nextjs_data() default is JSON, not text * test for above
This commit is contained in:
		| @@ -153,6 +153,9 @@ class TestInfoExtractor(unittest.TestCase): | ||||
| ''' | ||||
|         search = self.ie._search_nextjs_data(html, 'testID') | ||||
|         self.assertEqual(search['props']['pageProps']['video']['id'], 'testid') | ||||
|         search = self.ie._search_nextjs_data( | ||||
|             'no next.js data here, move along', 'testID', default={'status': 0}) | ||||
|         self.assertEqual(search['status'], 0) | ||||
|  | ||||
|     def test_search_nuxt_data(self): | ||||
|         html = ''' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user