Skip to content

A feature-rich command-line audio/video downloader

[Gamekings] Fix 404 when large isn't available

robin77d2b106ccf8
diff --git a/youtube_dl/extractor/gamekings.py b/youtube_dl/extractor/gamekings.py
index cf8e90d7db..bac325bd80 100644
--- a/youtube_dl/extractor/gamekings.py
+++ b/youtube_dl/extractor/gamekings.py
@@ -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(video_id + '/large', video_id)
return {
'id': video_id,