Trying to write a script for a subreddit that enforces a 30s video policy for link posts. But it’s useless if the API doesn’t give me the proper duration of the video.
Not sure if there is another way to get the metadata of a clip (I haven’t been able to find one), but the oEmbed method should be fixed either way.
Examples:
(28s) https://api.twitch.tv/v5/oembed?url=clips.twitch.tv%2Fipav999%2FLongOwlVolcania
(24s) https://api.twitch.tv/v5/oembed?url=clips.twitch.tv%2Fdoublelift%2FFaithfulHerringPazPazowitz
(40s) https://api.twitch.tv/v5/oembed?url=clips.twitch.tv%2Fdoublelift%2FWildFrogTriHard