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

Add a way to retrieve streams without decrypting all of them #424

Open
d60 opened this issue Jan 22, 2025 · 1 comment
Open

Add a way to retrieve streams without decrypting all of them #424

d60 opened this issue Jan 22, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@d60
Copy link

d60 commented Jan 22, 2025

Hello,

First of all, thank you very much for developing this library.

While reading the source code, I noticed that calling YouTube.streams decrypts all the streaming urls. Since decrypting a url takes some time, this could lead to a loss of time if all decrypted urls are not actually needed.

My suggestion is to introduce a new property (e.g., YouTube.encrypted_streams)and new classes (e.g., EncryptedStreamQuery and EncryptedStream), where the url decryption would only happen when calling EncryptedStream.url.

I apologize if I misunderstood anything. Thank you for your consideration.

@d60 d60 added the enhancement New feature or request label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: waiting
Development

No branches or pull requests

2 participants
@d60 and others