Upgrade yt_dlp and download script
This commit is contained in:
@@ -6,6 +6,7 @@ from ..utils import (
|
||||
|
||||
|
||||
class RockstarGamesIE(InfoExtractor):
|
||||
_WORKING = False
|
||||
_VALID_URL = r'https?://(?:www\.)?rockstargames\.com/videos(?:/video/|#?/?\?.*\bvideo=)(?P<id>\d+)'
|
||||
_TESTS = [{
|
||||
'url': 'https://www.rockstargames.com/videos/video/11544/',
|
||||
@@ -18,7 +19,7 @@ class RockstarGamesIE(InfoExtractor):
|
||||
'thumbnail': r're:^https?://.*\.jpg$',
|
||||
'timestamp': 1464876000,
|
||||
'upload_date': '20160602',
|
||||
}
|
||||
},
|
||||
}, {
|
||||
'url': 'http://www.rockstargames.com/videos#/?video=48',
|
||||
'only_matching': True,
|
||||
@@ -37,14 +38,14 @@ class RockstarGamesIE(InfoExtractor):
|
||||
title = video['title']
|
||||
|
||||
formats = []
|
||||
for video in video['files_processed']['video/mp4']:
|
||||
if not video.get('src'):
|
||||
for v in video['files_processed']['video/mp4']:
|
||||
if not v.get('src'):
|
||||
continue
|
||||
resolution = video.get('resolution')
|
||||
resolution = v.get('resolution')
|
||||
height = int_or_none(self._search_regex(
|
||||
r'^(\d+)[pP]$', resolution or '', 'height', default=None))
|
||||
formats.append({
|
||||
'url': self._proto_relative_url(video['src']),
|
||||
'url': self._proto_relative_url(v['src']),
|
||||
'format_id': resolution,
|
||||
'height': height,
|
||||
})
|
||||
|
Reference in New Issue
Block a user