mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 01:18:30 +00:00
[ie/SportDeutschland] Fix extractor (#13519)
Closes #13518 Authored by: DTrombett
This commit is contained in:
parent
c57412d1f9
commit
a4ce4327c9
@ -25,6 +25,7 @@ class SportDeutschlandIE(InfoExtractor):
|
|||||||
'upload_date': '20230114',
|
'upload_date': '20230114',
|
||||||
'timestamp': 1673733618,
|
'timestamp': 1673733618,
|
||||||
},
|
},
|
||||||
|
'skip': 'not found',
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://sportdeutschland.tv/deutscherbadmintonverband/bwf-tour-1-runde-feld-1-yonex-gainward-german-open-2022-0',
|
'url': 'https://sportdeutschland.tv/deutscherbadmintonverband/bwf-tour-1-runde-feld-1-yonex-gainward-german-open-2022-0',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -41,6 +42,7 @@ class SportDeutschlandIE(InfoExtractor):
|
|||||||
'upload_date': '20220309',
|
'upload_date': '20220309',
|
||||||
'timestamp': 1646860727.0,
|
'timestamp': 1646860727.0,
|
||||||
},
|
},
|
||||||
|
'skip': 'not found',
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://sportdeutschland.tv/ggcbremen/formationswochenende-latein-2023',
|
'url': 'https://sportdeutschland.tv/ggcbremen/formationswochenende-latein-2023',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -68,6 +70,7 @@ class SportDeutschlandIE(InfoExtractor):
|
|||||||
'live_status': 'was_live',
|
'live_status': 'was_live',
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
|
'skip': 'not found',
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://sportdeutschland.tv/dtb/gymnastik-international-tag-1',
|
'url': 'https://sportdeutschland.tv/dtb/gymnastik-international-tag-1',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -82,13 +85,30 @@ class SportDeutschlandIE(InfoExtractor):
|
|||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
'skip': 'live',
|
'skip': 'live',
|
||||||
|
}, {
|
||||||
|
'url': 'https://sportdeutschland.tv/rostock-griffins/gfl2-rostock-griffins-vs-elmshorn-fighting-pirates',
|
||||||
|
'md5': '35c11a19395c938cdd076b93bda54cde',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '9f27a97d-1544-4d0b-aa03-48d92d17a03a',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'GFL2: Rostock Griffins vs. Elmshorn Fighting Pirates',
|
||||||
|
'display_id': 'rostock-griffins/gfl2-rostock-griffins-vs-elmshorn-fighting-pirates',
|
||||||
|
'channel': 'Rostock Griffins',
|
||||||
|
'channel_url': 'https://sportdeutschland.tv/rostock-griffins',
|
||||||
|
'live_status': 'was_live',
|
||||||
|
'description': 'md5:60cb00067e55dafa27b0933a43d72862',
|
||||||
|
'channel_id': '9635f21c-3f67-4584-9ce4-796e9a47276b',
|
||||||
|
'timestamp': 1749913117,
|
||||||
|
'upload_date': '20250614',
|
||||||
|
},
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _process_video(self, asset_id, video):
|
def _process_video(self, asset_id, video):
|
||||||
is_live = video['type'] == 'mux_live'
|
is_live = video['type'] == 'mux_live'
|
||||||
token = self._download_json(
|
token = self._download_json(
|
||||||
f'https://api.sportdeutschland.tv/api/frontend/asset-token/{asset_id}',
|
f'https://api.sportdeutschland.tv/api/web/personal/asset-token/{asset_id}',
|
||||||
video['id'], query={'type': video['type'], 'playback_id': video['src']})['token']
|
video['id'], query={'type': video['type'], 'playback_id': video['src']},
|
||||||
|
headers={'Referer': 'https://sportdeutschland.tv/'})['token']
|
||||||
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
||||||
f'https://stream.mux.com/{video["src"]}.m3u8?token={token}', video['id'], live=is_live)
|
f'https://stream.mux.com/{video["src"]}.m3u8?token={token}', video['id'], live=is_live)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user