1
0
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:
Maocx 2018-08-31 17:31:35 +02:00 committed by GitHub
parent b12bfd5bb2
commit a045fe9c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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