mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[vk] Improve rutube embeds detection (Closes #8461)
This commit is contained in:
parent
3834d3e35c
commit
35972ba172
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ def _real_extract(self, url):
|
||||||
return self.url_result(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|play)\\?/embed(?:.*?))\\?"', info_page)
|
||||||
if m_rutube is not None:
|
if m_rutube is not None:
|
||||||
rutube_url = self._proto_relative_url(
|
rutube_url = self._proto_relative_url(
|
||||||
m_rutube.group(1).replace('\\', ''))
|
m_rutube.group(1).replace('\\', ''))
|
||||||
|
|
Loading…
Reference in a new issue