garret1317 / yt-dlp-rajiko

improved radiko.jp extractor for yt-dlp
https://427738.xyz/yt-dlp-rajiko/
Other
23 stars 1 forks source link

law-abiding citizen mode #7

Closed garret1317 closed 8 months ago

garret1317 commented 1 year ago

as the title says no geo bypass

pain to test lol (need to use vpn, thats exactly what i was trying to escape) will need to add stuff to:

probably not too excruciating but the extractor was written with the assumption that nothing will ever be blocked lol could maybe get it merged into dlp proper

also as a nice to have:

im not paying for it though (unless it works legit outside japan)

garret1317 commented 1 year ago

wasnt bad at all really - already had a check for station region not matching what we got just use lesmiscore's key grabbing thing and make the check throw an error

garret1317 commented 9 months ago

actually, hmm, this maybe fucks multi-region stations since the actual region can be different to the station's home region, but still work (also oof, didnt realise the force-pushing spams the issue like that)

garret1317 commented 9 months ago

i suppose if i dont want to just yolo it, i need a way of getting all the regions a station's available in during the indexing

12 mobile site has this, but nothing else afaik

^ that's if i want to change as little as possible

but i suppose i could just do what the site does and grab the stations for the region we have, eg https://radiko.jp/v3/station/list/JP14.xml that would likely be better, but needs actual changes just for the law-abiding-citizen mode (pain in the ass)

garret1317 commented 9 months ago

current (bypassing) extractor looks at the station and auths as an area it's in law abiding citizen mode would (likely) need to auth first, and then see what's available and that would likely involve a not-insubstantial rewrite we can get all regions a station is in with the mobile site's json blobs but i'd prefer not to go there if possible

hm yes ive said this before

garret1317 commented 8 months ago

i think this belongs in yt-dlp proper's extractor i might bring over some of the metadata stuff, and then there you go, law-abiding citizen mode and this one can be just for geo-block bypass and testing ground/bleeding edge

garret1317 commented 8 months ago

https://api.annex.radiko.jp/radiko.ProgramService/ListStations

protobuf response: ListStations.bin.gz https://protobuf-decoder.netlify.app/ equivalent of https://radiko.jp/v3/station/region/full.xml but with all regions and no ascii name