mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[Gamekings] Fix 404 when large isn't available
When trying to download some GameKings videos, not all worked. This was because not all videos had a "/large"-URL available. The extractor checks now if the /large URL is available, if it isn't, it tries to get the normal URL.
This commit is contained in:
parent
67ce4f8820
commit
77d2b106cc
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ def _real_extract(self, url):
|
|||
|
||||
# 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,
|
||||
|
|
Loading…
Reference in a new issue