mirror of
https://github.com/v0l/m3u8-rs.git
synced 2025-06-17 09:47:45 +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<()> {
|
||||
write!(w, "URI=\"{}\"", self.uri)?;
|
||||
if let Some(ref byte_range) = self.byte_range {
|
||||
write!(w, ",BYTERANGE=")?;
|
||||
write!(w, ",BYTERANGE=\"")?;
|
||||
byte_range.write_value_to(w)?;
|
||||
write!(w, "\"")?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user