mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2024-12-23 15:00:28 +00:00
Merge pull request #40 from sdroege/type-closed-captions
The `TYPE` attribute uses `CLOSED-CAPTIONS` and not `CLOSEDCAPTIONS`
This commit is contained in:
commit
5ee1273f7c
1 changed files with 2 additions and 2 deletions
|
@ -279,7 +279,7 @@ impl FromStr for AlternativeMediaType {
|
||||||
"AUDIO" => Ok(AlternativeMediaType::Audio),
|
"AUDIO" => Ok(AlternativeMediaType::Audio),
|
||||||
"VIDEO" => Ok(AlternativeMediaType::Video),
|
"VIDEO" => Ok(AlternativeMediaType::Video),
|
||||||
"SUBTITLES" => Ok(AlternativeMediaType::Subtitles),
|
"SUBTITLES" => Ok(AlternativeMediaType::Subtitles),
|
||||||
"CLOSEDCAPTIONS" => Ok(AlternativeMediaType::ClosedCaptions),
|
"CLOSED-CAPTIONS" => Ok(AlternativeMediaType::ClosedCaptions),
|
||||||
_ => Err(format!(
|
_ => Err(format!(
|
||||||
"Unable to create AlternativeMediaType from {:?}",
|
"Unable to create AlternativeMediaType from {:?}",
|
||||||
s
|
s
|
||||||
|
@ -303,7 +303,7 @@ impl fmt::Display for AlternativeMediaType {
|
||||||
AlternativeMediaType::Audio => "AUDIO",
|
AlternativeMediaType::Audio => "AUDIO",
|
||||||
AlternativeMediaType::Video => "VIDEO",
|
AlternativeMediaType::Video => "VIDEO",
|
||||||
AlternativeMediaType::Subtitles => "SUBTITLES",
|
AlternativeMediaType::Subtitles => "SUBTITLES",
|
||||||
AlternativeMediaType::ClosedCaptions => "CLOSEDCAPTIONS",
|
AlternativeMediaType::ClosedCaptions => "CLOSED-CAPTIONS",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue