Mithronn / rusty_ytdl

A Rust library for Youtube video searcher and downloader
https://docs.rs/rusty_ytdl
MIT License
107 stars 20 forks source link

Add ability to supply own PO tokens #46

Closed nick42d closed 1 month ago

nick42d commented 1 month ago

This partially resolves #43. Added new request_option to supply PO token. I have tested this with a PO token from my browser and confirmed that this resolves #44 when a correct token is supplied.

In a future PR I'd like to add the ability to supply own visitor data as well, but that will require a little more refactoring. @clytras it seems the PO token by itself is sufficient - if possible could you please explain why we might need visitor data as well?

clytras commented 1 month ago

@nick42d thank you for adding the PO token support. I am not sure why would we need Visitor Data, maybe it could increase some kind of "trust" score that the request comes from a real browser but that is just a guess, I believe just PO token is enough for now.