-
Notifications
You must be signed in to change notification settings - Fork 35
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
Consume media urls from api #885
Comments
I ran into two issues when tackling this, both with the data the API exposed (PRs linked above). YouTube image URLs are coming through with HTTP instead of HTTPS, so Pie devices refuse to load them (unless we whitelist that cleartext traffic, but there is no compelling reason to do so). Picasso also doesn't like loading the CD media URLs because the web.archive.org links include an iframe (it isn't just a raw image). |
Huh, you're right on both fronts. Thanks for the other associated fixes - I merged them both :) |
@phil-lopreiato match videos also generate their URLs based on a key/type combo, but it doesn't look like the match endpoints expose Are you expecting that those endpoints should also expose the URLs, or do we want to just keep generating the match video URLs ourselves? |
Nice catch again. I guessed they would have, but maybe we need another tweak on the server side to add them (unsure why this didn't come along for free the first time) |
Oh, wait figured it out. This is a fun TBA quirk... Match videos aren't technically stored as medias on the server side (they predate all other types of media). Instead, they're stored inline on the match object so they have their own format. https://github.com/the-blue-alliance/the-blue-alliance/blob/master/models/match.py#L285 So we should probably change this server-side as well. |
Consume data exposed in the-blue-alliance/the-blue-alliance#2368, so we don't have to be constructing image urls locally
The text was updated successfully, but these errors were encountered: