aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen Jacobs <git@jeroenj.be>2023-02-03 23:42:43 +0100
committerGitHub <noreply@github.com>2023-02-04 04:12:43 +0530
commitd27bde98832e3b7ffb39f3cf6346011b97bb3bc3 (patch)
tree1143349ee76c1e8e89d5a2da71cca20a3280eb16
parent0fe87a8730638490415d630f48e61d264d89c358 (diff)
downloadhypervideo-pre-d27bde98832e3b7ffb39f3cf6346011b97bb3bc3.tar.lz
hypervideo-pre-d27bde98832e3b7ffb39f3cf6346011b97bb3bc3.tar.xz
hypervideo-pre-d27bde98832e3b7ffb39f3cf6346011b97bb3bc3.zip
[extractor/GoPlay] Use new API (#6151)
Authored by: jeroenj Closes #6032
-rw-r--r--yt_dlp/extractor/goplay.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/goplay.py b/yt_dlp/extractor/goplay.py
index 2882b49dd..960d7d7bc 100644
--- a/yt_dlp/extractor/goplay.py
+++ b/yt_dlp/extractor/goplay.py
@@ -76,11 +76,11 @@ class GoPlayIE(InfoExtractor):
}
api = self._download_json(
- f'https://api.viervijfzes.be/content/{video_id}',
- video_id, headers={'Authorization': self._id_token})
+ f'https://api.goplay.be/web/v1/videos/long-form/{video_id}',
+ video_id, headers={'Authorization': 'Bearer %s' % self._id_token})
formats, subs = self._extract_m3u8_formats_and_subtitles(
- api['video']['S'], video_id, ext='mp4', m3u8_id='HLS')
+ api['manifestUrls']['hls'], video_id, ext='mp4', m3u8_id='HLS')
info_dict.update({
'id': video_id,