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

Search Categories: no {width}x{height} #329

Open
BarryCarlyon opened this issue Feb 28, 2021 · 5 comments
Open

Search Categories: no {width}x{height} #329

BarryCarlyon opened this issue Feb 28, 2021 · 5 comments
Labels
product: api API endpoints in the "helix" namespace

Comments

@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented Feb 28, 2021

Brief description

https://dev.twitch.tv/docs/api/reference#search-categories

also effects

https://dev.twitch.tv/docs/api/reference#get-games

is returning "fixed dimension" URL's for box art instead of the template

How to reproduce

Search for

https://api.twitch.tv/helix/search/categories?query=minecraft

Recieve

{
"data": [
{
"box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/Minecraft%20Master%20Collection-52x72.jpg",
"id": "134707685",
"name": "Minecraft Master Collection"
},
{
"box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/MineCart%20-%203D%20Mine%20Cart%20Game%20for%20MineCraft-52x72.jpg",
"id": "1078970694",
"name": "MineCart - 3D Mine Cart Game for MineCraft"
},
{
"box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/Add-Ons%20Studio%20for%20Minecraft-52x72.jpg",
"id": "1633826266",
"name": "Add-Ons Studio for Minecraft"
},

Expected behavior

https://static-cdn.jtvnw.net/ttv-boxart/Minecraft%20Master%20Collection-52x72.jpg

should be

https://static-cdn.jtvnw.net/ttv-boxart/Minecraft%20Master%20Collection-{width}x{height}.jpg

Additional context or questions

https://discuss.dev.twitch.tv/t/search-categories-box-art-url/30661

@BarryCarlyon BarryCarlyon added the product: api API endpoints in the "helix" namespace label Feb 28, 2021
@skuxlife
Copy link

Any updates on this issue?

@bastimeyer
Copy link

Still hasn't been fixed.

Example response from query=dota:

{
  "data": [
    {
      "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/29595-52x72.jpg",
      "id": "29595",
      "name": "Dota 2"
    }
  ],
  "pagination": {
    "cursor": "foo"
  }
}

@S0und
Copy link

S0und commented Feb 24, 2022

This is still not fixed

@skuxlife
Copy link

Still seeing this issue 🙃

@BarryCarlyon
Copy link
Contributor Author

Rather than wait for a fix just do a find replace on 52x72.jpg or use the IGDB ID to get the Box art (cover art) from the IGDB API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: api API endpoints in the "helix" namespace
Projects
None yet
Development

No branches or pull requests

4 participants