mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[odnoklassniki] Fix extraction (Closes #5671)
This commit is contained in:
		| @@ -6,6 +6,7 @@ from ..utils import ( | ||||
|     unified_strdate, | ||||
|     int_or_none, | ||||
|     qualities, | ||||
|     unescapeHTML, | ||||
| ) | ||||
|  | ||||
|  | ||||
| @@ -36,8 +37,8 @@ class OdnoklassnikiIE(InfoExtractor): | ||||
|         webpage = self._download_webpage(url, video_id) | ||||
|  | ||||
|         player = self._parse_json( | ||||
|             self._search_regex( | ||||
|                 r"OKVideo\.start\(({.+?})\s*,\s*'VideoAutoplay_player'", webpage, 'player'), | ||||
|             unescapeHTML(self._search_regex( | ||||
|                 r'data-attributes="([^"]+)"', webpage, 'player')), | ||||
|             video_id) | ||||
|  | ||||
|         metadata = self._parse_json(player['flashvars']['metadata'], video_id) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․