fixing sync on new podcast

This commit is contained in:
Aaron Manning
2025-09-25 23:26:01 +10:00
parent 19330e66c9
commit 7ce0ae5830
2 changed files with 2 additions and 1 deletions

View File

@@ -67,7 +67,7 @@ impl<'a> Playlist<'a> {
drop(writer);
let output = output.into_inner()?;
if fs::read(&path)? != output {
if !path.exists() || fs::read(&path)? != output {
fs::write(path, output.as_slice())?;
Ok(true)
} else {