mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 00:37:18 +08:00
Made api endpoint dynamic
Made api-endpoint more robust to change.
This commit is contained in:
parent
b12bfd5bb2
commit
a045fe9c59
@ -196,7 +196,7 @@ class SporzaIE(InfoExtractor):
|
|||||||
|
|
||||||
# Get a player token
|
# Get a player token
|
||||||
vrtPlayerToken = self._download_json(
|
vrtPlayerToken = self._download_json(
|
||||||
"https://media-services-public.vrt.be/vualto-video-aggregator-web/rest/external/v1/tokens",
|
api_url + "/tokens",
|
||||||
video_id, headers={"content-type": "application/json"}, data={}).get(
|
video_id, headers={"content-type": "application/json"}, data={}).get(
|
||||||
"vrtPlayerToken") # Default content type results in 415, correct content-type from: https://github.com/pietje666/plugin.video.vrt.nu/issues/21
|
"vrtPlayerToken") # Default content type results in 415, correct content-type from: https://github.com/pietje666/plugin.video.vrt.nu/issues/21
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user