Support for WorldStarHipHop
cover/
updates_key.pem
*.egg-info
cover/
updates_key.pem
*.egg-info
return [info]
class WorldStarHipHopIE(InfoExtractor):
return [info]
class WorldStarHipHopIE(InfoExtractor):
- _VALID_URL = r"""(http://(?:www|m).worldstar(?:candy|hiphop)\.com.*)"""
+ _VALID_URL = r'http://(?:www|m)\.worldstar(?:candy|hiphop)\.com/videos/video\.php\?v=(?P<id>.*)'
IE_NAME = u'WorldStarHipHop'
def _real_extract(self, url):
IE_NAME = u'WorldStarHipHop'
def _real_extract(self, url):
title = 'World Start Hip Hop - %s' % time.ctime()
_thumbnail = r"""rel="image_src" href="(.*)" />"""
title = 'World Start Hip Hop - %s' % time.ctime()
_thumbnail = r"""rel="image_src" href="(.*)" />"""
mobj = re.search(_thumbnail, webpage_src)
# Getting thumbnail and if not thumbnail sets correct title for WSHH candy video.
mobj = re.search(_thumbnail, webpage_src)
# Getting thumbnail and if not thumbnail sets correct title for WSHH candy video.
title = mobj.group(1)
thumbnail = None
title = mobj.group(1)
thumbnail = None
+ m = re.match(self._VALID_URL, url)
+ video_id = m.group('id')
+
'url' : video_url,
'title' : title,
'thumbnail' : thumbnail,
'url' : video_url,
'title' : title,
'thumbnail' : thumbnail,