summary refs log tree commit diff
diff options
context:
space:
mode:
authorrobin <rderooij685@gmail.com>2015-02-08 14:41:14 +0100
committerrobin <rderooij685@gmail.com>2015-02-08 14:41:14 +0100
commit8ca8cbe2bd262676cbe5a63aaee6559dfa795634 (patch)
treee0544cb1a9cfecd49d1f4b3b28f30cfd89fc9b9c
parentba322d82090bd1126774e772b699283121ffa4b8 (diff)
downloadyoutube-dl-8ca8cbe2bd262676cbe5a63aaee6559dfa795634.tar.gz
youtube-dl-8ca8cbe2bd262676cbe5a63aaee6559dfa795634.tar.xz
youtube-dl-8ca8cbe2bd262676cbe5a63aaee6559dfa795634.zip
[Gamekings] Check string for vimeo, fix test
The test now doesn't fail anymore. It just checks the string for having
"vimeo" in it, instead of using the method for URL-checking, since it's
returns an error.

The tests don't fail, and the extractor works fine now.
-rw-r--r--youtube_dl/extractor/gamekings.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/gamekings.py b/youtube_dl/extractor/gamekings.py
index aa589390a..ba4d2e082 100644
--- a/youtube_dl/extractor/gamekings.py
+++ b/youtube_dl/extractor/gamekings.py
@@ -24,7 +24,8 @@ class GamekingsIE(InfoExtractor):
         'info_dict': {
             'id': '118933752',
             'ext': 'mp4',
-            'title': 'The Legend of Zelda: Majora’s Mask'
+            'title': 'The Legend of Zelda: Majora’s Mask',
+            'description': 'md5:9917825fe0e9f4057601fe1e38860de3'
             }
         }
     ]
@@ -41,7 +42,7 @@ class GamekingsIE(InfoExtractor):
 
         # Todo: add medium format
         video_url = video_url.replace(video_id, 'large/' + video_id)
-        if not (self._is_valid_url(video_url, video_id)):
+        if "vimeo" in video_url:
             video_url = video_url.replace('large/' + video_id, video_id)
             video_url = video_url.replace('http://stream.gamekings.tv/', '')