Skip to content

chore: add Makefile with clean-songs target - #1

Merged
ttncode merged 1 commit into
mainfrom
chore/makefile-clean-songs
Oct 15, 2026
Merged

ttncode merged 1 commit into
mainfrom
chore/makefile-clean-songs

Conversation

@ttncode

@ttncode ttncode commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Makefile with up, down, restart, logs, web, dev, test, clean-songs.
  • clean-songs asks for confirmation, then deletes only server-downloaded MP3s (those recorded in .<hash>.done sidecars) plus their sidecars, and removes empty playlist folders. Runs inside the app container because the files are root-owned on the host.
  • /data (songs, devices, download history) and untracked files in /music are kept. Sidecar paths outside /music are ignored.

Test plan

  • Ran the delete script against a fake music tree: tracked MP3s removed, untracked MP3s kept, sidecar pointing at /etc/hosts did not delete it.
  • make clean-songs against the real volume (not run).

clean-songs deletes only server-downloaded MP3s (tracked by .done
sidecars) from the /music volume via a container, since the files are
root-owned on the host. /data and untracked files are kept.
@ttncode
ttncode merged commit e0553d5 into main Oct 15, 2026
1 check passed
@ttncode
ttncode deleted the chore/makefile-clean-songs branch October 15, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant