mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[vk] Add support for pladform embeds (Closes #7780)
This commit is contained in:
		| @@ -18,6 +18,7 @@ from ..utils import ( | |||||||
|     unified_strdate, |     unified_strdate, | ||||||
| ) | ) | ||||||
| from .vimeo import VimeoIE | from .vimeo import VimeoIE | ||||||
|  | from .pladform import PladformIE | ||||||
|  |  | ||||||
|  |  | ||||||
| class VKIE(InfoExtractor): | class VKIE(InfoExtractor): | ||||||
| @@ -254,6 +255,10 @@ class VKIE(InfoExtractor): | |||||||
|         if vimeo_url is not None: |         if vimeo_url is not None: | ||||||
|             return self.url_result(vimeo_url) |             return self.url_result(vimeo_url) | ||||||
|  |  | ||||||
|  |         pladform_url = PladformIE._extract_url(info_page) | ||||||
|  |         if pladform_url: | ||||||
|  |             return self.url_result(pladform_url) | ||||||
|  |  | ||||||
|         m_rutube = re.search( |         m_rutube = re.search( | ||||||
|             r'\ssrc="((?:https?:)?//rutube\.ru\\?/video\\?/embed(?:.*?))\\?"', info_page) |             r'\ssrc="((?:https?:)?//rutube\.ru\\?/video\\?/embed(?:.*?))\\?"', info_page) | ||||||
|         if m_rutube is not None: |         if m_rutube is not None: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․