[Gamekings] Fix order of replacement string
authorrobin <rderooij685@gmail.com>
Sun, 8 Feb 2015 12:49:32 +0000 (13:49 +0100)
committerrobin <rderooij685@gmail.com>
Sun, 8 Feb 2015 12:49:32 +0000 (13:49 +0100)
Oops.

youtube_dl/extractor/gamekings.py

index 1697f5e44019001f18cbf79c5ae9746f13c97a7b..a5d854ade16cd55441b2019f76c525a61f6839b6 100644 (file)
@@ -32,7 +32,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)):
-            video_url = video_url.replace(video_id + 'large/', video_id)
+            video_url = video_url.replace('large/' + video_id, video_id)
 
         return {
             'id': video_id,