]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/gamekings.py
[Gamekings] Fix order of replacement string
[youtube-dl.git] / youtube_dl / extractor / gamekings.py
index cf8e90d7dbe9483efffe7894bedbe437746c5da1..a5d854ade16cd55441b2019f76c525a61f6839b6 100644 (file)
@@ -31,6 +31,8 @@ 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('large/' + video_id, video_id)
 
         return {
             'id': video_id,