mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 14:45:52 +01:00
[safari] Improve ids regexes (#10617)
This commit is contained in:
parent
1d16035bb4
commit
a6ccc3e518
@ -103,13 +103,13 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
reference_id = self._search_regex(
|
reference_id = self._search_regex(
|
||||||
r'data-reference-id=(["\'])(?P<id>.+?)\1',
|
r'data-reference-id=(["\'])(?P<id>(?:(?!\1).)+)\1',
|
||||||
webpage, 'kaltura reference id', group='id')
|
webpage, 'kaltura reference id', group='id')
|
||||||
partner_id = self._search_regex(
|
partner_id = self._search_regex(
|
||||||
r'data-partner-id=(["\'])(?P<id>.+?)\1',
|
r'data-partner-id=(["\'])(?P<id>(?:(?!\1).)+)\1',
|
||||||
webpage, 'kaltura widget id', group='id')
|
webpage, 'kaltura widget id', group='id')
|
||||||
ui_id = self._search_regex(
|
ui_id = self._search_regex(
|
||||||
r'data-ui-id=(["\'])(?P<id>.+?)\1',
|
r'data-ui-id=(["\'])(?P<id>(?:(?!\1).)+)\1',
|
||||||
webpage, 'kaltura uiconf id', group='id')
|
webpage, 'kaltura uiconf id', group='id')
|
||||||
|
|
||||||
query = {
|
query = {
|
||||||
|
Loading…
Reference in New Issue
Block a user