diff options
author | Johny Mo Swag <johnymo@me.com> | 2013-05-02 13:37:26 -0700 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-05-04 08:04:28 +0200 |
commit | 7da5556ac2985c246de0f0e4df982585577f44ba (patch) | |
tree | 08f9240c7c5e0df40ce4b52246d17bf429c2944f | |
parent | f23a03a89bdc1628fa2af9e30b33feb4e4b467af (diff) |
Better fix for getting source url's
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 41b9aea0b..325c5ecd4 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -3487,7 +3487,7 @@ class WorldStarHipHopIE(InfoExtractor): IE_NAME = u'WorldStarHipHop' def _real_extract(self, url): - _src_url = r"""(http://(hw-videos|hw-post)[0-9]*.*(?:mp4|flv))""" + _src_url = r'so\.addVariable\("file","(.*?)"\)' m = re.match(self._VALID_URL, url) video_id = m.group('id') @@ -3497,7 +3497,7 @@ class WorldStarHipHopIE(InfoExtractor): mobj = re.search(_src_url, webpage_src) if mobj is not None: - video_url = mobj.group() + video_url = mobj.group(1) if 'mp4' in video_url: ext = 'mp4' else: |