1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-29 19:15:01 +00:00

[arte.tv:+7] Append media type to format_id (Closes #3967)

This commit is contained in:
Sergey M․ 2014-10-18 18:14:49 +07:00 committed by Sergey M
parent 9471c44405
commit f9befee1f5

View file

@ -160,6 +160,9 @@ class ArteTVPlus7IE(InfoExtractor):
format_id = '%s-%s' % (quality, format_info['versionCode']) format_id = '%s-%s' % (quality, format_info['versionCode'])
else: else:
format_id = quality format_id = quality
media_type = format_info.get('mediaType')
if media_type is not None:
format_id += '-%s' % media_type
info = { info = {
'format_id': format_id, 'format_id': format_id,
'format_note': format_info.get('versionLibelle'), 'format_note': format_info.get('versionLibelle'),