mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-13 04:51:22 +00:00
Improve regex
Co-authored-by: Roy <git@rvsit.nl>
This commit is contained in:
parent
d4250c8703
commit
ad64f3751e
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ class VPROIE(NPOIE):
|
|||
def _real_extract(self, url):
|
||||
video_id = url.rstrip('/').split('/')[-1]
|
||||
page, _ = self._download_webpage_handle(url, video_id)
|
||||
results = re.findall(r'data-media-id="(.+_.+)"\s', page)
|
||||
results = re.findall(r'data-media-id="([a-zA-Z0-9_]+)"\s', page)
|
||||
formats = []
|
||||
for result in results:
|
||||
formats.extend(self._extract_formats_by_product_id(result, video_id))
|
||||
|
|
Loading…
Reference in a new issue