garret1317 / yt-dlp-rajiko

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

decouple device spoofing from main extractor #19

Open garret1317 opened 8 months ago

garret1317 commented 8 months ago

ie, have the key, all the random info code, all in a separate file then, e.g. the aSmartPhone8 branch can just be one file, if you want to be aSmartPhone7a or pc_html5 you can just swap out that one file

i think all you'd need is

key auth1 info: X-Radiko-App, X-Radiko-App-Version, X-Radiko-Device, X-Radiko-User? User-Agent auth2 info: X-Radiko-AuthToken X-Radiko-Location X-Radiko-Connection X-Radiko-Partialkey X-Radiko-AuthToken can be done by the main thing, that's just "send what you got from auth1" X-Radiko-Partialkey could also be done in the main one - just gib the key and let the main extractor handle it X-Radiko-User is just random - but maybe could be overriden for eg premium support - note, dont know if premium actually uses this, haven't had the opportunity to look at it yet

will have to think about this

garret1317 commented 8 months ago

see https://github.com/garret1317/yt-dlp-rajiko/wiki/separating-auth-device-spoofing for the thinking about this

garret1317 commented 8 months ago

already doing this somewhat on aSmartPhone8 branch, with the key in a separate radiko_key file