]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/rockstargames.py
[cleanup] Fix misc bugs (#8968)
[yt-dlp.git] / yt_dlp / extractor / rockstargames.py
index c491aaf53476e4dd36cd0fa9295a833d75f258bf..16622430cd3e1c2eba769264cc18a3fe9f8cd069 100644 (file)
@@ -6,6 +6,7 @@
 
 
 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/',
@@ -37,14 +38,14 @@ def _real_extract(self, url):
         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,
             })