Nerothos / TwithGameList

List of Twitch game with id and box art link
MIT License
18 stars 1 forks source link

Box art url seems to have changed. #2

Open e3ndr opened 2 years ago

e3ndr commented 2 years ago

The new url format appears to be

https://static-cdn.jtvnw.net/ttv-boxart/{id}_IGDB-{width}x{height}.jpg

Nerothos commented 2 years ago

Ah yeah, I didn't noticed it. I will need to update the older one.

Edit: mmh, it seems the API itself doesn't return the correct URL.

{
    "data": [
        {
            "id": "515037",
            "name": "Senkaiden: TV Animation Senkaiden Houshin Engi Yori",
            "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/515037-{width}x{height}.jpg"
        }
    ]
}

And writing it in the new format doesn't work.

Edit 2 : It seems to work for certains game, I tried World of Warcraft (https://static-cdn.jtvnw.net/ttv-boxart/18122-144x192.jpg) and the old URL still work. Not sure how the changes were made. Maybe some game are still returned by the API but were removed from their art database. Probably the games that aren't popular enough to still being used.

Anyway, the new game that are being added do have the new url so they are fine.

Edit 3: Found the changelog, seems like they didn't update the old one at all, just used the new url at some point.

2021‑10‑27 | Organization Management updated to reflect IGDB will power Twitch game cover art as of November 17, 2021.

e3ndr commented 2 years ago

Do all games use the new url format or do some of the older games still use the old format?

Nerothos commented 2 years ago

Seems like only the games after 515024 (Diablo IV) are using the new url except a few that got the old one.

e3ndr commented 2 years ago

Interesting.