Update dependencies and version

This commit is contained in:
bytedream 2024-04-25 00:48:37 +02:00
parent 177ceb1920
commit 74aaed4e7a
4 changed files with 19 additions and 20 deletions

View file

@ -960,8 +960,7 @@ impl Downloader {
let tempfile = tempfile(".ass")?;
let (mut file, path) = tempfile.into_parts();
let mut buf = vec![];
subtitle.write_to(&mut buf).await?;
let mut buf = subtitle.data().await?;
fix_subtitles(&mut buf, max_length);
file.write_all(buf.as_slice())?;