Skip to content

Commit

Permalink
media: Do basic validation
Browse files Browse the repository at this point in the history
  • Loading branch information
emk committed May 5, 2024
1 parent d11ece8 commit f604c9b
Show file tree
Hide file tree
Showing 5 changed files with 201 additions and 23 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions aligned_media/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,12 @@ readme = "README.md"
repository = "https://github.com/emk/subtitles-rs"
documentation = "https://docs.rs/aligned_media/"

[features]
# ONLY FOR USE BY THE VALIDATION TOOL. When this feature is enabled, we will
# return an error whenever we encounter unknown attributes outside of an `"ext"`
# extension block. Of course, this means that when a new version of the format
# comes out, we don't be able to read it. So this feature really only makes
# sense for the web-based validator, which is always kept up to date, and not
# for actual end-user software.
no_forwards_compatibility = []

[dependencies]
isolang = { version = "2.4.0", features = ["serde"] }
peg = "0.8.2"
relative-path = { version = "1.9.2", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0.58"
tracing = "0.1.40"
uuid = { version = "1.8.0", features = ["serde", "v4"] }
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"title": "Episode 01.01",
"tracks": {
"base.": {
"base": {
"origin": "original",
"type": "media",
"lang": "fr",
Expand All @@ -30,7 +30,7 @@
"alignments": [
{
"id": "56523fb0-b4c5-40d4-bb08-4c59fb027dbb",
"timeSpan": [
"time_span": [
10,
15.5
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tracks": {
"base.": {
"base": {
"origin": "original",
"type": "media",
"lang": "fr",
Expand Down Expand Up @@ -36,7 +36,7 @@
"alignments": [
{
"id": "b9cbc638-430b-4b71-9c92-3f9e3e651a5c",
"timeSpan": [
"time_span": [
10,
15.5
],
Expand Down
Loading

0 comments on commit f604c9b

Please sign in to comment.