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

Resolve Available Thumbnails from Player Response #249

Open
codedbycurtis opened this issue Aug 24, 2023 · 0 comments
Open

Resolve Available Thumbnails from Player Response #249

codedbycurtis opened this issue Aug 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@codedbycurtis
Copy link

Is your feature request related to a problem? Please describe.
The ThumbnailSet class provides five different hard-coded URLs for each thumbnail that a video can have, these being LowResUrl, MediumResUrl, HighResUrl, StandardResUrl, and MaxResUrl, however, as the class states, only some of these thumbnails may be available. Currently, there is no way of determining which thumbnails are available until we send an HTTP request to one of the URLs, at which point the request will return a 404 error if the thumbnail is not available in that quality.

Describe the solution you'd like
The YoutubeExplode library circumvents this by resolving the available thumbnails from the player response, as can be seen here:

PlayerResponse.cs
VideoClient.cs

This allows us to tell exactly which thumbnails are available for a specific video, and their resolution.

Describe alternatives you've considered
N/A

How should this be implemented
I imagine the solution used in YoutubeExplode could be ported with relative ease.

Additional context
N/A

@codedbycurtis codedbycurtis added the enhancement New feature or request label Aug 24, 2023
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
None yet
Development

No branches or pull requests

1 participant