Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decouple device spoofing from main extractor #19

Open
garret1317 opened this issue Oct 26, 2023 · 3 comments
Open

decouple device spoofing from main extractor #19

garret1317 opened this issue Oct 26, 2023 · 3 comments
Labels
code make the code better maybe? not sure whether to actually do this

Comments

@garret1317
Copy link
Owner

garret1317 commented Oct 26, 2023

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 garret1317 added maybe? not sure whether to actually do this code make the code better labels Oct 26, 2023
@garret1317
Copy link
Owner Author

@garret1317
Copy link
Owner Author

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

@garret1317
Copy link
Owner Author

well, the key's in a separate file now a1c7e13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code make the code better maybe? not sure whether to actually do this
Projects
None yet
Development

No branches or pull requests

1 participant