mirror of
https://github.com/v0l/m3u8-rs.git
synced 2025-06-17 17:48:49 +00:00
Write BYTERANGE inside quotes
This commit is contained in:
@ -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(())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user