You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idea: Storage page split by music, audiobooks and format, with largest albums and cache size #149
I searched, and this isn't there yet. Nothing on a storage breakdown, largest albums or cache size in either repo, open or closed. Closest: Y2Linux After installing Y2Reborn, battery is too low to power on #39 (firmware drive free space), which is a different matter. It isn't on the ideas-that-won't-be-built list.
Not a maintainer. I read through the code and docs; nothing below is built or tested on a player.
What would you like?
On Settings → Library → Storage, which already draws one bar per volume:
Split each bar (Internal Storage and SD Card) into music, audiobooks, other and free.
A "By Format" page: bytes and file count per format, for example FLAC vs MP3.
"Largest Albums" and "Largest Artists" pages, by total size.
A Clear Cache row with the cache size next to it ("12 MB").
Why?
When a card fills up, the page only says "N free" and "N total". It doesn't say whether a few lossless albums or many audiobooks are the cause, and the only way to find out is to browse folders on a computer. The "Storage Almost Full" message already tells people to remove music; this would show what to remove.
Where would you look for it?
Settings → Library → Storage, as extra rows or a sub-page (a navigation filter on the Storage screen, so Restore Previous System keeps working).
How it could plug in (from reading the code, untested)
The numbers are already in the library database. tracks has size, codec, source_id and deleted, and Track has book and is_video(). That makes it one grouped, read-only query per volume with no new scan, and the UI would get a typed model next to VolumeSpace.
Clear Cache already exists under Reset & Maintenance ("Removes saved artwork copies"; clear_cache in app/reborn/src/main.rs). This would show its size and add the row to Storage. Summing <root>/cache is cheap, since CACHE_LIMIT keeps it to 3000 files.
"Other" would be the volume's used bytes minus the library's bytes.
Limits
The numbers follow the last scan, so files copied over USB show up once the incremental scan has run. The format is the library's codec field; a .m4a may be AAC or ALAC. Album sizes depend on the album grouping the library already does (#38, #45).
Each bar on Settings → Library → Storage is split into Music, Audiobooks, Videos and Other, with the rest free. A legend under it gives size, count and play time per kind. The sums come from the library that is already loaded, per source, so there is no extra scan. The spacing adapts to how much the page has to show.
On a player with 745 FLAC files on the SD card, and with every kind present (sample data):
Not in it yet: Largest Albums/Artists, By Format and the cache size.
Checked with unit and render tests, the host preview, and on a player with 745 FLAC files on the SD card. Audiobooks and Videos are covered by tests only, since that card has none.
Activity
Storage: bars split by music, audiobooks, videos and other (SchulzCod…
Storage: bars split by music, audiobooks, videos and other (SchulzCod…
jonasevcik commentedon Nov 19, 2026
A first version of the storage split is on a branch: https://github.com/jonasevcik/Y2Reborn/tree/storage-breakdown (based on main at 9.3.34).
Each bar on Settings → Library → Storage is split into Music, Audiobooks, Videos and Other, with the rest free. A legend under it gives size, count and play time per kind. The sums come from the library that is already loaded, per source, so there is no extra scan. The spacing adapts to how much the page has to show.
On a player with 745 FLAC files on the SD card, and with every kind present (sample data):
Not in it yet: Largest Albums/Artists, By Format and the cache size.
Checked with unit and render tests, the host preview, and on a player with 745 FLAC files on the SD card. Audiobooks and Videos are covered by tests only, since that card has none.
I can open a PR from this branch if that helps.
Storage: bars split by music, audiobooks, videos and other (SchulzCod…