twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
73 stars 6 forks source link

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

Open BarryCarlyon opened 3 years ago

BarryCarlyon commented 3 years ago

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

skuxlife commented 3 years ago

Any updates on this issue?

bastimeyer commented 2 years ago

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 commented 2 years ago

This is still not fixed

skuxlife commented 1 year ago

Still seeing this issue 🙃

BarryCarlyon commented 1 year ago

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