summaryrefslogtreecommitdiff
path: root/lib/rms.php
diff options
context:
space:
mode:
authorjade (winter)2026-09-07 18:20:29 +0100
committerjade (winter)2026-09-07 18:20:29 +0100
commitd528de4fb965ab338cd8ab80de5f6841bf520f11 (patch)
treed1357bec4260f8d2f3751989eaa72ae4503dc07d /lib/rms.php
parentc34ce636639654be1862e3c39bda9be50e0fcd6e (diff)
fix live playbackHEADmain
no need to scrape next data anymore, i found the rms endpoint that just gives you the token lmfao by the way i think the magic number 1d590d3 in the previous code was actually the next 'build id' and it broke because the build id changed ? maybe?
Diffstat (limited to 'lib/rms.php')
-rw-r--r--lib/rms.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rms.php b/lib/rms.php
index 8b92e49..ab0fd71 100644
--- a/lib/rms.php
+++ b/lib/rms.php
@@ -4,6 +4,7 @@ const RMS_API_BASE = 'https://rms.api.bbc.co.uk/v2';
const RMS_SOUNDS_HOME = '/experience/inline/listen/sign-in';
const RMS_SOUNDS_CONTAINER = '/experience/inline/container';
const RMS_SOUNDS_PLAYABLE = '/experience/inline/play';
+const RMS_SOUNDS_TOKEN_BASE = '/sign/token';
function rms_fetch(string $path): stdClass {
return json_decode(file_get_contents(RMS_API_BASE . $path));