1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 02:37:15 +08:00

Added new regex for video url extraction

This commit is contained in:
Walter Dworak 2017-04-07 19:05:13 -05:00
parent c254f75bbb
commit 31f95e9f5b

View File

@ -35,7 +35,8 @@ class WorldStarHipHopIE(InfoExtractor):
video_url = self._search_regex( video_url = self._search_regex(
[r'so\.addVariable\("file","(.*?)"\)', [r'so\.addVariable\("file","(.*?)"\)',
r'<div class="artlist">\s*<a[^>]+href="([^"]+)">'], r'<div class="artlist">\s*<a[^>]+href="([^"]+)">',
r'<video id="video-player".*>\s*<source\s*src="(.*?)".*</video>'],
webpage, 'video URL') webpage, 'video URL')
if 'youtube' in video_url: if 'youtube' in video_url: