tphakala / birdnet-go

Realtime BirdNET soundscape analyzer
Other
137 stars 14 forks source link

"Failed to remove clips" forever #149

Closed farski closed 1 month ago

farski commented 1 month ago

It seems like when the process to prune clips is unable to (because the file was removed some other way), it doesn't do anything to prevent trying in the future. If it finds that a clip file has already deleted, it probably should update the DB/etc to reflect that, just as it would do normally.

isZumpo commented 1 month ago

Should be easy to add some sort of if condition if the file no longer exist, which would remove it from the DB. Suppose it should fail for other issues, for instance wrong file permissions when trying to delete