1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 07:56:49 +00:00
Based on yt-dlp/yt-dlp 051d6b4 merging [extractor/arte] yt-dlp/yt-dlp#3302: Move to v2 API

Authored by: fstirlitz, pukkandan
This commit is contained in:
dirkf 2023-02-15 00:24:38 +00:00 committed by GitHub
parent cdcb4af1c3
commit b3b0520c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,10 +50,12 @@ class ArteTVIE(ArteTVBaseIE):
'title': 'USA: Dyskryminacja na porodówce', 'title': 'USA: Dyskryminacja na porodówce',
'description': 'md5:242017b7cce59ffae340a54baefcafb1', 'description': 'md5:242017b7cce59ffae340a54baefcafb1',
'alt_title': 'ARTE Reportage', 'alt_title': 'ARTE Reportage',
'timestamp': 1604417980,
'upload_date': '20201103', 'upload_date': '20201103',
'duration': 554, 'duration': 554,
# test format sort
'height': 720,
'thumbnail': r're:https://api-cdn\.arte\.tv/.+940x530', 'thumbnail': r're:https://api-cdn\.arte\.tv/.+940x530',
'timestamp': 1604417980,
'ext': 'mp4', 'ext': 'mp4',
}, },
'params': { 'params': {
@ -205,6 +207,7 @@ class ArteTVIE(ArteTVBaseIE):
formats.extend(secondary_formats) formats.extend(secondary_formats)
self._remove_duplicate_formats(formats) self._remove_duplicate_formats(formats)
self._sort_formats(formats)
metadata = config['data']['attributes']['metadata'] metadata = config['data']['attributes']['metadata']