Add language_code from response

This commit is contained in:
tcely 2025-01-27 03:43:56 -05:00 committed by GitHub
parent 3130ff2816
commit 9fc773b5c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -301,11 +301,13 @@ def parse_media_format(format_dict):
format_str = f'{height}P'
else:
format_str = None
language = format_dict.get('language', None)
return {
'id': format_dict.get('format_id', ''),
'format': format_str,
'format_note': format_dict.get('format_note', ''),
'format_verbose': format_dict.get('format', ''),
'language_code': language,
'height': height,
'width': width,
'vcodec': vcodec,