mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-05 20:41:47 -07:00
Fix variable name and add capture group to regex
This commit is contained in:
parent
958f9aa7d4
commit
0d1fa41564
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ class VPROIE(NPOIE):
|
|||
def _real_extract(self, url):
|
||||
video_id = url.rstrip('/').split('/')[-1]
|
||||
page = self._download_webpage(url, video_id)
|
||||
format = traverse_obj(re.search(r'<[\w.-]+\s[^>]*(?<!-)\bdata-media-id\s*=\s*[^>]+>', page), (
|
||||
formats = traverse_obj(re.search(r'<[\w.-]+\s[^>]*(?<!-)\bdata-media-id="([a-zA-Z0-9_]+)"', page), (
|
||||
1, T(lambda x: self._extract_formats_by_product_id(x, video_id)),
|
||||
Ellipsis))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue