1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-05 02:32:52 +08:00

New videos from gamekings.tv use video as video_url

This commit is contained in:
Jelle van der Waa 2014-06-01 21:35:23 +02:00
parent ceb7a17f34
commit e1a8c5aa37

View File

@ -25,7 +25,11 @@ class GamekingsIE(InfoExtractor):
name = mobj.group('name')
webpage = self._download_webpage(url, name)
video_url = self._og_search_video_url(webpage)
if 'vimeo' in video_url:
video = re.search(r'[0-9]+', video_url)
video_id = video.group(0)
video_url = video_url.replace('http://stream.gamekings.tv/','')
else:
video = re.search(r'[0-9]+', video_url)
video_id = video.group(0)