twitchdev / issues

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

Some clips include an invalid thumbnail_url #981

Closed Xemdo closed 1 month ago

Xemdo commented 2 months ago

Calling Get Clips on some users returns a non-existent thumbnail. See thumbnail_url in the results. This is not consistent and only appears for some clips.

It appears that the thumbnail for these still exist and is visible in the Clips view on the user's profile, and in the Clips view on the user's dashboard.

For the user viaFruity:

> twitch api get clips -q broadcaster_id=501539914 -q first=100 -q started_at=2024-08-13T00:00:00Z
{
  "data": [
    {
      "broadcaster_id": "501539914",
      "broadcaster_name": "viaFruity",
      "created_at": "2024-08-14T21:18:42Z",
      "creator_id": "184278617",
      "creator_name": "xac1d",
      "duration": 33.8,
      "embed_url": "https://clips.twitch.tv/embed?clip=SlickIcyOysterDatSheffy-eq66DNhSGi22_6j3",
      "game_id": "509658",
      "id": "SlickIcyOysterDatSheffy-eq66DNhSGi22_6j3",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://clips-media-assets2.twitch.tv//-preview-480x272.jpg",
      "title": "broke a nail",
      "url": "https://clips.twitch.tv/SlickIcyOysterDatSheffy-eq66DNhSGi22_6j3",
      "video_id": "",
      "view_count": 4,
      "vod_offset": null
    },
    {
      "broadcaster_id": "501539914",
      "broadcaster_name": "viaFruity",
      "created_at": "2024-08-14T21:09:55Z",
      "creator_id": "101220326",
      "creator_name": "Iamtooflyy",
      "duration": 26,
      "embed_url": "https://clips.twitch.tv/embed?clip=RichAmorphousNostrilCorgiDerp-oqeROHRzX4_VTMp6",
      "game_id": "509658",
      "id": "RichAmorphousNostrilCorgiDerp-oqeROHRzX4_VTMp6",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://clips-media-assets2.twitch.tv/G6xou6KnkTh0c1-P1UzKeg/51765635085-offset-1040-preview-480x272.jpg",
      "title": "I'll be the Jack to your Rose, get nekkid and I'll start painting || !socials !merch",
      "url": "https://clips.twitch.tv/RichAmorphousNostrilCorgiDerp-oqeROHRzX4_VTMp6",
      "video_id": "2224345422",
      "view_count": 3,
      "vod_offset": 1014
    }
  ],
  "pagination": {}
}

For the user Joannemilktea:

> twitch api get clips -q broadcaster_id=166547601 -q first=100 -q started_at=2024-08-12T00:00:00Z
{
  "data": [
    {
      "broadcaster_id": "166547601",
      "broadcaster_name": "Joannemilktea",
      "created_at": "2024-08-14T03:21:27Z",
      "creator_id": "468492104",
      "creator_name": "rchannnn44",
      "duration": 30,
      "embed_url": "https://clips.twitch.tv/embed?clip=CaringHumbleHedgehogDeIlluminati-nSmR27enCaLJqnaY",
      "game_id": "509658",
      "id": "CaringHumbleHedgehogDeIlluminati-nSmR27enCaLJqnaY",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://clips-media-assets2.twitch.tv/e1XgCZ0pkdu3pwmiyap2mA/44670425899-offset-12098-preview-480x272.jpg",
      "title": "gaming tuesday + new sound alerts🎮 100 cats -\u003e fall guys -\u003e GTA| !socials",
      "url": "https://clips.twitch.tv/CaringHumbleHedgehogDeIlluminati-nSmR27enCaLJqnaY",
      "video_id": "",
      "view_count": 11,
      "vod_offset": null
    },
    {
      "broadcaster_id": "166547601",
      "broadcaster_name": "Joannemilktea",
      "created_at": "2024-08-14T03:23:12Z",
      "creator_id": "468492104",
      "creator_name": "rchannnn44",
      "duration": 30,
      "embed_url": "https://clips.twitch.tv/embed?clip=RealAggressiveTireShadyLulu-4zWj6pv25K11rkQu",
      "game_id": "509658",
      "id": "RealAggressiveTireShadyLulu-4zWj6pv25K11rkQu",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://clips-media-assets2.twitch.tv/VjsEVOM1o-qb9uStda5ELg/44670425899-offset-12202-preview-480x272.jpg",
      "title": "gaming tuesday + new sound alerts🎮 100 cats -\u003e fall guys -\u003e GTA| !socials",
      "url": "https://clips.twitch.tv/RealAggressiveTireShadyLulu-4zWj6pv25K11rkQu",
      "video_id": "",
      "view_count": 7,
      "vod_offset": null
    },
    {
      "broadcaster_id": "166547601",
      "broadcaster_name": "Joannemilktea",
      "created_at": "2024-08-14T01:41:22Z",
      "creator_id": "683329425",
      "creator_name": "pingdd7",
      "duration": 10.5,
      "embed_url": "https://clips.twitch.tv/embed?clip=SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd",
      "game_id": "512980",
      "id": "SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://clips-media-assets2.twitch.tv//-preview-480x272.jpg",
      "title": "Don't push me",
      "url": "https://clips.twitch.tv/SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd",
      "video_id": "",
      "view_count": 6,
      "vod_offset": null
    },
    {
      "broadcaster_id": "166547601",
      "broadcaster_name": "Joannemilktea",
      "created_at": "2024-08-14T00:58:54Z",
      "creator_id": "240241494",
      "creator_name": "ra_iv",
      "duration": 33,
      "embed_url": "https://clips.twitch.tv/embed?clip=CuteBlushingBubbleteaDAESuppy-Jd3pQ6LJR9VGbvlA",
      "game_id": "509658",
      "id": "CuteBlushingBubbleteaDAESuppy-Jd3pQ6LJR9VGbvlA",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://clips-media-assets2.twitch.tv/YZBVYSXd6UOiyUfVRm75QA/AT-cm%7CYZBVYSXd6UOiyUfVRm75QA-preview-480x272.jpg",
      "title": "gotem",
      "url": "https://clips.twitch.tv/CuteBlushingBubbleteaDAESuppy-Jd3pQ6LJR9VGbvlA",
      "video_id": "",
      "view_count": 5,
      "vod_offset": null
    },
    {
      "broadcaster_id": "166547601",
      "broadcaster_name": "Joannemilktea",
      "created_at": "2024-08-14T01:43:48Z",
      "creator_id": "54457008",
      "creator_name": "SICKdistic",
      "duration": 59.2,
      "embed_url": "https://clips.twitch.tv/embed?clip=CautiousInnocentPigPrimeMe-IJ92L8brOeBOUO3Y",
      "game_id": "512980",
      "id": "CautiousInnocentPigPrimeMe-IJ92L8brOeBOUO3Y",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://clips-media-assets2.twitch.tv/kKk24yCfdi_G6zngTlDt2A/AT-cm%7CkKk24yCfdi_G6zngTlDt2A-preview-480x272.jpg",
      "title": ".",
      "url": "https://clips.twitch.tv/CautiousInnocentPigPrimeMe-IJ92L8brOeBOUO3Y",
      "video_id": "",
      "view_count": 5,
      "vod_offset": null
    }
  ],
  "pagination": {}
}
BarryCarlyon commented 2 months ago

I've seen it once a couple of weeks ago and put it down to a freak error so I didn't report

barrycarlyon@Tara ~ % twitch api get 'clips?id=CautiousSarcasticAubergineHassaanChop-MHnyPbYXjHQdAkBS'
{
  "data": [
    {
      "broadcaster_id": "10817445",
      "broadcaster_name": "itmeJP",
      "created_at": "2024-08-02T21:02:48Z",
      "creator_id": "12021922",
      "creator_name": "Kaleith",
      "duration": 37.2,
      "embed_url": "https://clips.twitch.tv/embed?clip=CautiousSarcasticAubergineHassaanChop-MHnyPbYXjHQdAkBS",
      "game_id": "509658",
      "id": "CautiousSarcasticAubergineHassaanChop-MHnyPbYXjHQdAkBS",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://clips-media-assets2.twitch.tv//-preview-480x272.jpg",
      "title": "this is my worst clip by far",
      "url": "https://clips.twitch.tv/CautiousSarcasticAubergineHassaanChop-MHnyPbYXjHQdAkBS",
      "video_id": "",
      "view_count": 134,
      "vod_offset": null
    }
  ],
  "pagination": {}
}
Xemdo commented 2 months ago

Ticketed as APIPLAT-5089

xac1d commented 2 months ago

adding a few more clip id's for science. a lot from the same user within last few days

WealthyBoringLocustKappaClaus-gL9NnIlABEXgwTEo PluckyShinyClipsdadNotLikeThis-ot3h0efUDH248Ysb DarlingCrackyCheetahPraiseIt-FEoyEAIfMYTSQ2V1 AcceptableProtectiveKoupreyLitFam-0_UlPik6RKq6WzIZ SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd SaltyGorgeousPeafowlResidentSleeper-POUCTH_lzvIixPhJ UnsightlyFurtiveCobraJebaited-FbLpK43T1tkGxt8n

xac1d commented 2 months ago

To add additional information, I've been rolled over to the new clips UI as with others i've provided as examples of.

xac1d commented 2 months ago

along with an invalid thumbnail_url, these do not show up on clips page and are not returned by the API when pulling by broadcaster

AverageSpoopyBananaRedCoat-pfth5ubLHVgXF4NX AstuteResourcefulOxPoooound-SVTo_OH3tv4glxuj IronicAnnoyingPeanutMau5-CL7fQ0b-rmFf4d6r TentativeObedientHerringTebowing-IARaDec2z68UlPk-

iProdigy commented 2 months ago

It appears that the thumbnail for these still exist and is visible in the Clips view on the user's profile, and in the Clips view on the user's dashboard.

the first-party site seems to fallback to that full-resolution thumbnail (e.g., https://static-cdn.jtvnw.net/twitch-clips-thumbnails-prod/AverageSpoopyBananaRedCoat-pfth5ubLHVgXF4NX/b55e9b1d-8e05-421c-91fa-12f50c43fe1d/preview.jpg)

helix instead only returns rescaled thumbnails (e.g., https://clips-media-assets2.twitch.tv/klu4360CE-odOs2U7W5axg/AT-cm%7Cklu4360CE-odOs2U7W5axg-preview-480x272.jpg)

but it seems the thumbnail rescaling service is failing at a higher rate

xac1d commented 2 months ago
twitch.exe api get 'clips?id=SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd'
{
  "data": [
    {
      "broadcaster_id": "166547601",
      "broadcaster_name": "Joannemilktea",
      "created_at": "2024-08-14T01:41:22Z",
      "creator_id": "683329425",
      "creator_name": "pingdd7",
      "duration": 10.5,
      "embed_url": "https://clips.twitch.tv/embed?clip=SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd",
      "game_id": "512980",
      "id": "SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd",
      "is_featured": false,
      "language": "en",
      "thumbnail_url": "https://static-cdn.jtvnw.net/twitch-clips-thumbnails-prod/SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd/87a09dfb-949a-427c-b294-1cf5774d1976/preview-480x272.jpg",
      "title": "Don't push me",
      "url": "https://clips.twitch.tv/SmoothOilyWaspSwiftRage-6bC_ZiZksddjcGsd",
      "video_id": "",
      "view_count": 16,
      "vod_offset": null
    }
  ],
  "pagination": {}
}

seeing thumbnails (at least for now) again. although it's coming from https://static-cdn.jtvnw.net/twitch-clips-thumbnails-prod/ instead of the normal https://clips-media-assets2.twitch.tv, but working again nonetheless.

Xemdo commented 1 month ago

This has been resolved and the thumbnails should be showing up properly now.