From 4e91456e5fc690763e19705f2b9071b9200f1272 Mon Sep 17 00:00:00 2001 From: Sam Decrock Date: Tue, 5 Nov 2024 20:57:31 +0100 Subject: [PATCH] #10857 / Fix GoPlay --- yt_dlp/extractor/goplay.py | 65 +++++++++++++++----------------------- 1 file changed, 26 insertions(+), 39 deletions(-) diff --git a/yt_dlp/extractor/goplay.py b/yt_dlp/extractor/goplay.py index dfe5afe635..c059b736fb 100644 --- a/yt_dlp/extractor/goplay.py +++ b/yt_dlp/extractor/goplay.py @@ -20,37 +20,24 @@ class GoPlayIE(InfoExtractor): _NETRC_MACHINE = 'goplay' _TESTS = [{ - 'url': 'https://www.goplay.be/video/de-container-cup/de-container-cup-s3/de-container-cup-s3-aflevering-2#autoplay', + 'url': 'https://www.goplay.be/video/de-slimste-mens-ter-wereld/de-slimste-mens-ter-wereld-s22/de-slimste-mens-ter-wereld-s22-aflevering-1', 'info_dict': { - 'id': '9c4214b8-e55d-4e4b-a446-f015f6c6f811', - 'ext': 'mp4', - 'title': 'S3 - Aflevering 2', - 'series': 'De Container Cup', - 'season': 'Season 3', - 'season_number': 3, - 'episode': 'Episode 2', - 'episode_number': 2, + 'id': '2baa4560-87a0-421b-bffc-359914e3c387', + 'title': 'De Slimste Mens ter Wereld - S22 - Aflevering 1', }, 'skip': 'This video is only available for registered users', }, { - 'url': 'https://www.goplay.be/video/a-family-for-thr-holidays-s1-aflevering-1#autoplay', + 'url': 'https://www.goplay.be/video/fantastic-beasts-the-secrets-of-dumbledore', 'info_dict': { - 'id': '74e3ed07-748c-49e4-85a0-393a93337dbf', - 'ext': 'mp4', - 'title': 'A Family for the Holidays', + 'id': '046a91f1-db9c-41ff-8652-d35881ea72c4', + 'title': 'Fantastic Beasts: The Secrets of Dumbledore', }, 'skip': 'This video is only available for registered users', }, { - 'url': 'https://www.goplay.be/video/de-mol/de-mol-s11/de-mol-s11-aflevering-1#autoplay', + 'url': 'https://www.goplay.be/video/de-mol/de-mol-s11/de-mol-s11-aflevering-1', 'info_dict': { - 'id': '03eb8f2f-153e-41cb-9805-0d3a29dab656', - 'ext': 'mp4', - 'title': 'S11 - Aflevering 1', - 'episode': 'Episode 1', - 'series': 'De Mol', - 'season_number': 11, - 'episode_number': 1, - 'season': 'Season 11', + 'id': 'ecb79672-92b9-4cd9-a0d7-e2f0250681ee', + 'title': 'De Mol - S11 - Aflevering 1', }, 'params': { 'skip_download': True, @@ -72,24 +59,23 @@ class GoPlayIE(InfoExtractor): def _real_extract(self, url): url, display_id = self._match_valid_url(url).group(0, 'display_id') webpage = self._download_webpage(url, display_id) - video_data_json = self._html_search_regex(r'