aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-09-12 23:05:52 +0700
committerSergey M․ <dstftw@gmail.com>2016-09-12 23:05:52 +0700
commita6ccc3e518eabf61cc41575e52361d5ea79e3796 (patch)
tree706d11fb64cb1cc115c5b5e77e8317c178ce94c2
parent1d16035bb4ec516d25326ce5ff35affb4ff1f13c (diff)
[safari] Improve ids regexes (#10617)
-rw-r--r--youtube_dl/extractor/safari.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/safari.py b/youtube_dl/extractor/safari.py
index 08ddbe3c4..eabe41efe 100644
--- a/youtube_dl/extractor/safari.py
+++ b/youtube_dl/extractor/safari.py
@@ -103,13 +103,13 @@ class SafariIE(SafariBaseIE):
webpage = self._download_webpage(url, video_id)
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')
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')
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')
query = {