1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-17 18:58:35 +00:00

fix: ruff check

This commit is contained in:
red-acid 2025-07-03 12:48:48 +01:00 committed by GitHub
parent 557234219d
commit daa83034e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,7 +65,7 @@ class RTPIE(InfoExtractor):
'modified_timestamp': 1735766883,
'series': 'Telejornal',
'modified_date': '20250101',
'season': '2025'
'season': '2025',
},
}, {
# Episode not accessible through API
@ -164,7 +164,7 @@ def _extract_from_api(self, program_id, episode_id, part_id):
})
return {
'id': f"{episode_id}_{asset_index + 1}" if asset_index > 0 else episode_id,
'id': f'{episode_id}_{asset_index + 1}' if asset_index > 0 else episode_id,
'formats': formats,
'subtitles': subtitles,
'thumbnail': traverse_obj(episode_data, ('assets', asset_index, 'asset_thumbnail', {url_or_none})),