fix migrations deleting all playlists

This commit is contained in:
mungai-njoroge
2024-03-11 11:33:59 +03:00
committed by Mungai Njoroge
parent ae031014a9
commit 99ec11565c
4 changed files with 18 additions and 10 deletions
+13
View File
@@ -0,0 +1,13 @@
# TODO
A list of things to do. Feel free to grab one of this and work on it.
## Clean up old playlist images
When playlists are deleted or their images updated, the old
images are not deleted.
Write a function to:
- read all images in the playlist image directory and checks unlinked images by comparing the list with the .image property of each property
- delete unlinked images
The function can run on app start up, before periodic checks