Better fix for getting source url's
authorJohny Mo Swag <johnymo@me.com>
Thu, 2 May 2013 20:37:26 +0000 (13:37 -0700)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 4 May 2013 06:04:28 +0000 (08:04 +0200)
youtube_dl/InfoExtractors.py

index 41b9aea0b37f21da9119cc86650d4b9d10a0bc4f..325c5ecd4c580018fd168f3812c3aafb885e5c57 100755 (executable)
@@ -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: