mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	| @@ -1568,7 +1568,7 @@ class InfoExtractor: | ||||
|                 webpage, 'next.js data', fatal=fatal, **kw), | ||||
|             video_id, transform_source=transform_source, fatal=fatal) | ||||
| 
 | ||||
|     def _search_nuxt_data(self, webpage, video_id, context_name='__NUXT__'): | ||||
|     def _search_nuxt_data(self, webpage, video_id, context_name='__NUXT__', return_full_data=False): | ||||
|         ''' Parses Nuxt.js metadata. This works as long as the function __NUXT__ invokes is a pure function. ''' | ||||
|         # not all website do this, but it can be changed | ||||
|         # https://stackoverflow.com/questions/67463109/how-to-change-or-hide-nuxt-and-nuxt-keyword-in-page-source | ||||
| @@ -1584,7 +1584,10 @@ class InfoExtractor: | ||||
|             if val in ('undefined', 'void 0'): | ||||
|                 args[key] = 'null' | ||||
| 
 | ||||
|         return self._parse_json(js_to_json(js, args), video_id)['data'][0] | ||||
|         ret = self._parse_json(js_to_json(js, args), video_id) | ||||
|         if return_full_data: | ||||
|             return ret | ||||
|         return ret['data'][0] | ||||
| 
 | ||||
|     @staticmethod | ||||
|     def _hidden_inputs(html): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lesmiscore
					Lesmiscore