From 82f4d97fddcb2e8e6e0f6d4acebde2d377f92458 Mon Sep 17 00:00:00 2001 From: Mu-An Chiou Date: Tue, 29 Oct 2024 10:36:19 +0800 Subject: [PATCH] Breaking change: WEBVTT should be a URL --- README.md | 2 +- dist/openstories.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 30da056..7e8e2a1 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ Common fields between Image Stories and Video Stories: Fields unique to Video Story: - `mime_type` (required, _String_ beginning with `video/`): the MIME type of the video. -- `webvtt` (optional, _String_ beginning with `WEBVTT\n`): The VTT of the video. +- `webvtt` (optional, _String_): The URL of the WEBVTT of the video. ### Authors diff --git a/dist/openstories.ts b/dist/openstories.ts index b58d79d..00c8206 100644 --- a/dist/openstories.ts +++ b/dist/openstories.ts @@ -48,7 +48,7 @@ interface ImageStory extends OpenStory { interface VideoStory extends OpenStory { mime_type: `video/${string}`; - webvtt?: `WEBVTT\n${string}`; + webvtt?: string; } export default OpenStoriesFeed;