diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-02-01 02:19:03 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-02-01 02:19:03 +0800 |
commit | 0e1b1a011d1772bc1a7069bad8ad71a53798a212 (patch) | |
tree | d23f9f99a2e64d223187e53c6c4f8c26bf1b7c33 /youtube_dl/extractor/gamekings.py | |
parent | eab3c2895c66a8d2f5da181d3ccba35a901b813f (diff) |
[gamekings] Stricter checks
Diffstat (limited to 'youtube_dl/extractor/gamekings.py')
-rw-r--r-- | youtube_dl/extractor/gamekings.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/gamekings.py b/youtube_dl/extractor/gamekings.py index df385e338..f6b9046f9 100644 --- a/youtube_dl/extractor/gamekings.py +++ b/youtube_dl/extractor/gamekings.py @@ -6,6 +6,7 @@ from ..utils import ( xpath_text, xpath_with_ns, ) +from .youtube import YoutubeIE class GamekingsIE(InfoExtractor): @@ -47,10 +48,10 @@ class GamekingsIE(InfoExtractor): webpage = self._download_webpage(url, video_id) playlist_id = self._search_regex( - r'gogoVideo\(.*,\s*"([^"]+)', webpage, 'playlist id') + r'gogoVideo\([^,]+,\s*"([^"]+)', webpage, 'playlist id') # Check if a YouTube embed is used - if playlist_id.find('youtube') != -1: + if YoutubeIE.suitable(playlist_id): return self.url_result(playlist_id, ie='Youtube') playlist = self._download_xml( |