mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2025-02-05 02:02:19 +00:00
Write BYTERANGE inside quotes
This commit is contained in:
parent
ae31a2741f
commit
a1970192ff
1 changed files with 2 additions and 1 deletions
|
@ -1007,8 +1007,9 @@ impl Map {
|
||||||
pub fn write_attributes_to<T: Write>(&self, w: &mut T) -> std::io::Result<()> {
|
pub fn write_attributes_to<T: Write>(&self, w: &mut T) -> std::io::Result<()> {
|
||||||
write!(w, "URI=\"{}\"", self.uri)?;
|
write!(w, "URI=\"{}\"", self.uri)?;
|
||||||
if let Some(ref byte_range) = self.byte_range {
|
if let Some(ref byte_range) = self.byte_range {
|
||||||
write!(w, ",BYTERANGE=")?;
|
write!(w, ",BYTERANGE=\"")?;
|
||||||
byte_range.write_value_to(w)?;
|
byte_range.write_value_to(w)?;
|
||||||
|
write!(w, "\"")?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue