Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgiuliani committed Nov 23, 2023
1 parent 2bfdfe5 commit 0363192
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ and its documentation can be found at <https://hexdocs.pm/glubs>.
* [x] Support WebVTT STYLE-Tags (https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#styling_webvtt_cues)
* [x] Support WebVTT cue settings (https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#cue_settings)
* [x] Support WebVTT header metadata
* [ ] Support HLS X-TIMESTAMP-MAP
* [x] Support HLS X-TIMESTAMP-MAP

## Example

Expand All @@ -43,6 +43,7 @@ pub fn main() {
let assert WebVTT(
comment: Some("- Translation of that film I like"),
metadata: [],
items: [
Note(
"This translation was done by Kyle so that\nsome friends can watch it with their parents.",
Expand All @@ -52,19 +53,22 @@ pub fn main() {
start_time: 135_000,
end_time: 140_000,
payload: "- Ta en kopp varmt te.\n- Det är inte varmt.",
settings: [],
),
Cue(
id: Some("2"),
start_time: 140_000,
end_time: 145_000,
payload: "- Har en kopp te.\n- Det smakar som te.",
settings: [],
),
Note("This last line may not translate well."),
Cue(
id: Some("3"),
start_time: 145_000,
end_time: 150_000,
payload: "- Ta en kopp",
settings: [],
),
],
) = result
Expand Down

0 comments on commit 0363192

Please sign in to comment.