[ie/sportdeuschland] Support embedded player URLs (#13833)

Closes #13766
Authored by: InvalidUsernameException
pull/13500/merge
InvalidUsernameException 5 days ago committed by GitHub
parent 3e609b2ced
commit 30302df22b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -8,70 +8,86 @@ from ..utils import (
class SportDeutschlandIE(InfoExtractor): class SportDeutschlandIE(InfoExtractor):
_VALID_URL = r'https?://sportdeutschland\.tv/(?P<id>(?:[^/]+/)?[^?#/&]+)' _VALID_URL = r'https?://(?:player\.)?sportdeutschland\.tv/(?P<id>(?:[^/?#]+/)?[^?#/&]+)'
_TESTS = [{ _TESTS = [{
'url': 'https://sportdeutschland.tv/blauweissbuchholztanzsport/buchholzer-formationswochenende-2023-samstag-1-bundesliga-landesliga', # Single-part video, direct link
'url': 'https://sportdeutschland.tv/rostock-griffins/gfl2-rostock-griffins-vs-elmshorn-fighting-pirates',
'md5': '35c11a19395c938cdd076b93bda54cde',
'info_dict': { 'info_dict': {
'id': '9839a5c7-0dbb-48a8-ab63-3b408adc7b54', 'id': '9f27a97d-1544-4d0b-aa03-48d92d17a03a',
'ext': 'mp4', 'ext': 'mp4',
'title': 'Buchholzer Formationswochenende 2023 - Samstag - 1. Bundesliga / Landesliga', 'title': 'GFL2: Rostock Griffins vs. Elmshorn Fighting Pirates',
'display_id': 'blauweissbuchholztanzsport/buchholzer-formationswochenende-2023-samstag-1-bundesliga-landesliga', 'display_id': 'rostock-griffins/gfl2-rostock-griffins-vs-elmshorn-fighting-pirates',
'description': 'md5:a288c794a5ee69e200d8f12982f81a87', 'channel': 'Rostock Griffins',
'channel_url': 'https://sportdeutschland.tv/rostock-griffins',
'live_status': 'was_live', 'live_status': 'was_live',
'channel': 'Blau-Weiss Buchholz Tanzsport', 'description': 'md5:60cb00067e55dafa27b0933a43d72862',
'channel_url': 'https://sportdeutschland.tv/blauweissbuchholztanzsport', 'channel_id': '9635f21c-3f67-4584-9ce4-796e9a47276b',
'channel_id': '93ec33c9-48be-43b6-b404-e016b64fdfa3', 'timestamp': 1749913117,
'duration': 32447, 'upload_date': '20250614',
'upload_date': '20230114', 'duration': 12287.0,
'timestamp': 1673733618,
}, },
'skip': 'not found',
}, { }, {
'url': 'https://sportdeutschland.tv/deutscherbadmintonverband/bwf-tour-1-runde-feld-1-yonex-gainward-german-open-2022-0', # Single-part video, embedded player link
'url': 'https://player.sportdeutschland.tv/9e9619c4-7d77-43c4-926d-49fb57dc06dc',
'info_dict': { 'info_dict': {
'id': '95c80c52-6b9a-4ae9-9197-984145adfced', 'id': '9f27a97d-1544-4d0b-aa03-48d92d17a03a',
'ext': 'mp4', 'ext': 'mp4',
'title': 'BWF Tour: 1. Runde Feld 1 - YONEX GAINWARD German Open 2022', 'title': 'GFL2: Rostock Griffins vs. Elmshorn Fighting Pirates',
'display_id': 'deutscherbadmintonverband/bwf-tour-1-runde-feld-1-yonex-gainward-german-open-2022-0', 'display_id': '9e9619c4-7d77-43c4-926d-49fb57dc06dc',
'description': 'md5:2afb5996ceb9ac0b2ac81f563d3a883e', 'channel': 'Rostock Griffins',
'channel_url': 'https://sportdeutschland.tv/rostock-griffins',
'live_status': 'was_live', 'live_status': 'was_live',
'channel': 'Deutscher Badminton Verband', 'description': 'md5:60cb00067e55dafa27b0933a43d72862',
'channel_url': 'https://sportdeutschland.tv/deutscherbadmintonverband', 'channel_id': '9635f21c-3f67-4584-9ce4-796e9a47276b',
'channel_id': '93ca5866-2551-49fc-8424-6db35af58920', 'timestamp': 1749913117,
'duration': 41097, 'upload_date': '20250614',
'upload_date': '20220309', 'duration': 12287.0,
'timestamp': 1646860727.0,
}, },
'skip': 'not found', 'params': {'skip_download': True},
}, { }, {
'url': 'https://sportdeutschland.tv/ggcbremen/formationswochenende-latein-2023', # Multi-part video
'url': 'https://sportdeutschland.tv/rhine-ruhr-2025-fisu-world-university-games/volleyball-w-japan-vs-brasilien-halbfinale-2',
'info_dict': { 'info_dict': {
'id': '9889785e-55b0-4d97-a72a-ce9a9f157cce', 'id': '9f63d737-2444-4e3a-a1ea-840df73fd481',
'title': 'Formationswochenende Latein 2023 - Samstag', 'display_id': 'rhine-ruhr-2025-fisu-world-university-games/volleyball-w-japan-vs-brasilien-halbfinale-2',
'display_id': 'ggcbremen/formationswochenende-latein-2023', 'title': 'Volleyball w: Japan vs. Braslien - Halbfinale 2',
'description': 'md5:6e4060d40ff6a8f8eeb471b51a8f08b2', 'description': 'md5:0a17da15e48a687e6019639c3452572b',
'channel': 'Rhine-Ruhr 2025 FISU World University Games',
'channel_id': '9f5216be-a49d-470b-9a30-4fe9df993334',
'channel_url': 'https://sportdeutschland.tv/rhine-ruhr-2025-fisu-world-university-games',
'live_status': 'was_live', 'live_status': 'was_live',
'channel': 'Grün-Gold-Club Bremen e.V.',
'channel_id': '9888f04e-bb46-4c7f-be47-df960a4167bb',
'channel_url': 'https://sportdeutschland.tv/ggcbremen',
}, },
'playlist_count': 3, 'playlist_count': 2,
'playlist': [{ 'playlist': [{
'info_dict': { 'info_dict': {
'id': '988e1fea-9d44-4fab-8c72-3085fb667547', 'id': '9f725a94-d43e-40ff-859d-13da3081bb04',
'ext': 'mp4', 'ext': 'mp4',
'channel_url': 'https://sportdeutschland.tv/ggcbremen', 'title': 'Volleyball w: Japan vs. Braslien - Halbfinale 2 Part 1',
'channel_id': '9888f04e-bb46-4c7f-be47-df960a4167bb', 'channel': 'Rhine-Ruhr 2025 FISU World University Games',
'channel': 'Grün-Gold-Club Bremen e.V.', 'channel_id': '9f5216be-a49d-470b-9a30-4fe9df993334',
'duration': 86, 'channel_url': 'https://sportdeutschland.tv/rhine-ruhr-2025-fisu-world-university-games',
'title': 'Formationswochenende Latein 2023 - Samstag Part 1', 'duration': 14773.0,
'upload_date': '20230225', 'timestamp': 1753085197,
'timestamp': 1677349909, 'upload_date': '20250721',
'live_status': 'was_live',
},
}, {
'info_dict': {
'id': '9f725a94-370e-4477-89ac-1751098e3217',
'ext': 'mp4',
'title': 'Volleyball w: Japan vs. Braslien - Halbfinale 2 Part 2',
'channel': 'Rhine-Ruhr 2025 FISU World University Games',
'channel_id': '9f5216be-a49d-470b-9a30-4fe9df993334',
'channel_url': 'https://sportdeutschland.tv/rhine-ruhr-2025-fisu-world-university-games',
'duration': 14773.0,
'timestamp': 1753128421,
'upload_date': '20250721',
'live_status': 'was_live', 'live_status': 'was_live',
}, },
}], }],
'skip': 'not found',
}, { }, {
# Livestream
'url': 'https://sportdeutschland.tv/dtb/gymnastik-international-tag-1', 'url': 'https://sportdeutschland.tv/dtb/gymnastik-international-tag-1',
'info_dict': { 'info_dict': {
'id': '95d71b8a-370a-4b87-ad16-94680da18528', 'id': '95d71b8a-370a-4b87-ad16-94680da18528',
@ -85,22 +101,6 @@ 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):

Loading…
Cancel
Save