1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-23 09:55:12 +00:00

[cleanup] Fix misc bugs (#8968)

Closes #8816

Authored by: bashonly, seproDev, pukkandan, Grub4k
This commit is contained in:
pukkandan
2024-03-10 19:52:49 +05:30
parent 47ab66db0f
commit 93240fc184
13 changed files with 20 additions and 16 deletions

View File

@@ -38,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,
})