multi-areas

how auth/metadata grabbing will work if/when we (have to?) switch to multi-regions

first run

second run

got cached stuff from first run now

where the areas actually come from

grpc api

use the grpc/protobuf api made for this purpose https://api.annex.radiko.jp/radiko.ProgramService/ListStations

downloader script
self-written .proto file to decode it
decode done with le top sekrit gchq software (cyberchef)
but hmm, then i would have to figure out how to properly deal with protobufs
no prior art in yt-dlp that i can copy from afaik

mobile site

alternatively, some pages on the new mobile site have area details in the big json blob
todo: find example
sad time, they got rid of it

mobile api

https://api.annex.radiko.jp/v1/programs/stations/list
https://api.annex-cf.radiko.jp/v1/programs/stations/list
you can set the query ?prefecture=JP1 to get stations in that prefecture

idk what annex means, cf seems to mean cloudflare though
see https://api.annex-cf.radiko.jp/cdn-cgi/trace

idk which one to use, app seems to prefer cf, site does direct
both seem exactly the same, cf is faster i guess (local datacentre)