DevUser
December 9, 2019, 2:15am
#1
I’m not sure if this was intended design but the format for the thumbnail_url is different in streams and videos.
GET STREAMS
"thumbnail_url": "https://static-cdn.jtvnw.net/previews-ttv/live_user_lirik-{width}x{height}.jpg"
GET VIDEOS
"thumbnail_url": "https://static-cdn.jtvnw.net/s3_vods/bebc8cba2926d1967418_chewiemelodies_27786761696_805342775/thumb/thumb0-%{width}x%{height}.jpg"
What’s more inconsistent is other image urls don’t have the width and height formatting of some of the other APIs.
"profile_image_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/dallas-profile_image-1a2c906ee2c35f12-300x300.png"
Correct it’s not supposed to be consistent.
DevUser
December 9, 2019, 6:24pm
#3
I think it should be from a developer standpoint
You are comparing three different things.
So they have three different URLS
Additionally VOD Thumbnails can and will change. Recent VOD’s tend to have one URL and older VOD’s have a different URL.
If you think this should be changed of you have a feature request.
https://twitch.uservoice.com/forums/310213/
Personally I don’t have a problem I fetch and display whatever it is from the JSON responses from the API without issue. So if it changes then nothing breaks. And I don’t have to consider about constructing it from a fixed format if I can just fetch it
system
closed
January 8, 2020, 6:25pm
#5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.