Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 50 additions & 78 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@

<h1>Platter</h1>

<p><b>Your iPod Classic, without iTunes.</b></p>

<p>
Browse, edit and grow the music library on a click-wheel iPod —<br/>
imports, conversion, cover art and listening stats, all in one place.
</p>
<p><b>iPod without iTunes — a native macOS app that manages your library.</b></p>

<p>
<img src="https://img.shields.io/badge/macOS-14%2B-black?style=flat&logo=apple&logoColor=white" alt="macOS 14+" />
Expand All @@ -29,87 +24,59 @@
&nbsp;·&nbsp;
<a href="#build-from-source">Build from source</a>
&nbsp;·&nbsp;
<a href="#safety">Safety</a>
&nbsp;·&nbsp;
<a href="#requirements">Requirements</a>
</p>

</div>
<br/>

<img src="assets/screenshot.png" width="900" alt="Platter showing an iPod library grouped by album, with seven tracks selected and the tag inspector open" />

> [!NOTE]
> Platter drives a real iPod Classic through **libgpod** — the same open-source
> engine gtkpod used — wrapped in a native macOS app. Plug the iPod in, and its
> library is yours to manage. No iTunes, no Music.app, no cloud.
</div>

## Features

### Library
### Your music, the way you left it

- **Browse** the iPod grouped by artist, album or genre, with cover art and
per-album track counts. The list is virtualized — a library of tens of
thousands of tracks scrolls without breaking a sweat
- **Search** as you type across title, artist, album and genre
- **Edit** one track in the inspector, or select thousands (⌘-click,
shift-click, per-artist and per-album select-all) and stamp artist, album,
composer or genre across all of them in one apply
- **Cover art**: set or replace covers for any selection; albums missing art
are counted right on their headers
- **Capacity gauge** shows what's free before and after every import
- Plug the iPod in and everything on it shows up — grouped by artist, album or
genre, cover art and all
- Search as you type
- Scrolls smoothly whether you have 80 tracks or 80,000
- See how much space is free before and after you add anything

### Importing
### Fix the messy tags

- **Drag and drop** files or folders anywhere on the window
- **From Drive** scans a whole mounted disk and tells you exactly how many
tracks an import would bring in before anything is copied
- MP3 and M4A/AAC import directly; **FLAC, WAV, AIFF, APE, WavPack, DSD and
`.cue` album images are converted to Apple Lossless** automatically, tags
and art included
- Long imports post a system notification when they finish while you're in
another app
- Click a track and edit it, or select a whole album — or a whole artist — and
fix the artist, album, composer or genre for all of them at once
- Add or replace cover art for anything you've selected
- Albums missing artwork are counted right on their header, so you can see what
still needs a cover

### Convert
### Add music

- A standalone converter to iPod-ready formats — to the device or to a folder,
with per-file size estimates, a live log, and formats probed from the
bundled ffmpeg so nothing is offered that can't be produced
- Drag files or folders anywhere onto the window
- Or point Platter at an external drive and it'll tell you how much it would
add before it copies a thing
- MP3 and AAC go straight on. FLAC, WAV, AIFF, APE, WavPack, DSD and `.cue`
albums are converted for you, tags and artwork included
- Big imports notify you when they're done, so you can go do something else

### Stats
### Convert on its own

- Lifetime plays, listening time, library coverage and top albums, read from
the iPod's own play counts
- An **activity heatmap** of your listening, and a **share card** rendered to
the clipboard as an image
- A converter you can use by itself — put the result on the iPod or in a
folder, see the size before you commit, watch it work

### Devices
### See what you actually listened to

- Model detection from the iPod's own SysInfo — a Classic shows up as a
Classic, with the right glyph and generation
- Devices Platter positively can't manage (iPhone/iPod Touch, 3rd/4th-gen
Shuffle) are shown and labeled rather than hidden
- Eject from the toolbar; the last-connected iPod reconnects at launch
- Lifetime plays, hours listened and top albums, taken from the iPod's own
counts
- A heatmap of your listening year, and a share card you can copy as an image

### Settings
### Make it yours

- Light, dark, or follow-the-system theme
- Alternate Dock icons
- Light, dark or match the system
- Pick a different Dock icon
- ⌘1 / ⌘2 / ⌘3 switch tabs, ⌘, opens Settings

## Safety

An iPod's database has no undo, so Platter is conservative by design:

- **Paired backups.** The iTunesDB and the device's Play Counts file are
backed up together — at connect and again before writes. They are only
coherent as a pair, and Platter never copies one without the other
- **Play counts survive.** Fresh plays recorded by the device are merged, then
written back — nothing your iPod counted is lost
- **Edits coalesce** into a single database write after a short idle window,
cutting flash wear; quitting waits for the write to finish
- **Failures are loud.** A background save that fails raises a persistent
alert, not a log line. Crash and error logs land in
`~/Library/Logs/com.kolebaev.platter/platter.log` — attach that file to bug
reports

## Installation

[**Download the latest DMG**](https://github.com/kolebayev/platter/releases/latest/download/Platter_macOS_arm64.dmg)
Expand All @@ -121,14 +88,21 @@ same recipe, downloadable with a GitHub account. Or
[build from source](#build-from-source).

1. Open the `.dmg` and drag Platter to Applications
2. Open Platter and connect your iPod
3. Click **Open Privacy Settings** when prompted and enable Platter under
**Privacy & Security → Files & Folders → Removable Volumes**, then relaunch

> [!TIP]
> Builds are ad-hoc signed (no Developer ID), so macOS reports them as
> "damaged". Clear the quarantine flag once:
> `xattr -dr com.apple.quarantine /Applications/Platter.app`
2. Run this once in Terminal:

```sh
xattr -dr com.apple.quarantine /Applications/Platter.app
```

Builds are ad-hoc signed rather than notarized, so without this macOS
refuses to open the app — "Apple could not verify Platter is free of
malware". The command clears the download flag; you only need it once.

3. Open Platter and connect your iPod

4. Click **Open Privacy Settings** when prompted and enable Platter under
**Privacy & Security → Files & Folders → Removable Volumes**, then relaunch

## Build from source

Expand Down Expand Up @@ -213,10 +187,8 @@ bitrates, `--covers` replaces art in place).
## Requirements

- macOS 14 or later, Apple Silicon (no Intel build)
- A click-wheel iPod in disk mode — Classic 6th/7th generation is the primary
target; models with an iTunesDB that libgpod recognizes also work
- Not supported: iPhone / iPod Touch (SQLite library) and 3rd/4th-generation
Shuffle (a different iTunesSD layout)
- An iPod Classic in disk mode
- Not supported: iPhone / iPod Touch and 3rd/4th-generation Shuffle

## Privacy

Expand Down
Binary file added assets/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 31 additions & 10 deletions ui/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ export default function App() {
useEffect(() => {
if (view === "convert") setConvertMounted(true);
}, [view]);
/** Paths dropped on the window while Convert is the visible tab, handed to
* that tab to stage. Cleared as soon as it has taken them, so the next drop
* of the same files is still a new value. */
const [convertDrop, setConvertDrop] = useState<string[] | null>(null);
const takeConvertDrop = useCallback(() => setConvertDrop(null), []);
const detailRef = useRef<HTMLDivElement>(null);

// First-run TCC primer: shown once. Declining raises the quiet banner
Expand Down Expand Up @@ -159,6 +164,11 @@ export default function App() {
const isOpenRef = useRef(isOpen);
isOpenRef.current = isOpen;

// Read by the drag-drop handler, which routes by tab and must not
// re-subscribe every time the tab changes.
const viewRef = useRef(view);
viewRef.current = view;

// Logged from the persistence effects rather than the handlers: menu,
// keyboard shortcut and restore-at-launch all land here, so one line each
// covers every way the setting can move. The mount run records the state the
Expand Down Expand Up @@ -345,21 +355,29 @@ export default function App() {
setIsDropTarget(true);
} else if (kind === "drop") {
setIsDropTarget(false);
const paths = event.payload.paths;
if (paths.length === 0) return;
// A few real paths, not just a count: an import that fails on one file
// in a folder is unreproducible without knowing what was dropped.
const dropped = `${paths.length} — ${paths.slice(0, 3).join(", ")}${
paths.length > 3 ? " …" : ""
}`;
// On Convert a drop only fills the queue. Format, bitrate and
// destination are all still the user's to set when the files land, so
// the gesture that imports on Library stages here and stops — nothing
// is converted until Convert Files is pressed.
if (viewRef.current === "convert") {
log.info("drop.staged", dropped);
setConvertDrop(paths);
return;
}
if (!isOpenRef.current) {
log.warn("drop.rejected", "no iPod connected");
setLastError("Connect an iPod before adding songs.");
return;
}
const paths = event.payload.paths;
// A few real paths, not just a count: an import that fails on one file
// in a folder is unreproducible without knowing what was dropped.
log.info(
"drop.files",
`${paths.length} — ${paths.slice(0, 3).join(", ")}${paths.length > 3 ? " …" : ""}`,
);
if (paths.length > 0) {
run(api.importFiles(paths)).then(handleImportResult);
}
log.info("drop.files", dropped);
run(api.importFiles(paths)).then(handleImportResult);
} else {
setIsDropTarget(false);
}
Expand Down Expand Up @@ -807,6 +825,9 @@ export default function App() {
ipodMount={snapshot.mountPoint}
onLibraryChanged={reloadLibrary}
onProgressChange={setConvertProgress}
droppedPaths={convertDrop}
onDropStaged={takeConvertDrop}
isDropTarget={isDropTarget}
/>
</Suspense>
</div>
Expand Down
44 changes: 40 additions & 4 deletions ui/components/ConvertView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,23 @@ function ConvertViewImpl({
ipodMount,
onLibraryChanged,
onProgressChange,
droppedPaths,
onDropStaged,
isDropTarget,
}: {
/** Mount point of the open library, or null when nothing is connected. */
ipodMount: string | null;
/** A finished iPod-destined job changed the library; the shell reloads it. */
onLibraryChanged: () => void;
/** Surfaces the running job's fraction on the header tab. */
onProgressChange: (fraction: number | null) => void;
/** Files dropped on the window while this tab is visible. Staged, never
* started: the settings beside the queue are what the drop is waiting on. */
droppedPaths: string[] | null;
/** Hands the drop back so the shell can clear it. */
onDropStaged: () => void;
/** Something is being dragged over the window. */
isDropTarget: boolean;
}) {
const [formats, setFormats] = useState<FormatOption[]>([]);
const [rows, setRows] = useState<SourceRow[]>([]);
Expand Down Expand Up @@ -227,7 +237,7 @@ function ConvertViewImpl({
await stage(picked);
}

async function stage(paths: string[]) {
const stage = useCallback(async (paths: string[]) => {
setAdding(true);
setError(null);
try {
Expand All @@ -237,7 +247,22 @@ function ConvertViewImpl({
} finally {
setAdding(false);
}
}
}, []);

// A drop is the same gesture as the Add button, and does the same thing:
// it lists the files. Starting a job off it would convert with whatever
// format and destination happened to be selected, which is the one moment
// the user has not looked at them yet.
useEffect(() => {
if (!droppedPaths || droppedPaths.length === 0) return;
onDropStaged();
if (running) {
// The backend reads the queue while a job runs, so it cannot grow.
setError("Wait for this conversion to finish before adding more files.");
return;
}
void stage(droppedPaths);
}, [droppedPaths, onDropStaged, running, stage]);

async function chooseFolder() {
const picked = await openDialog({ directory: true, multiple: false });
Expand Down Expand Up @@ -312,6 +337,7 @@ function ConvertViewImpl({
adding={adding}
running={running}
statuses={statuses}
isDropTarget={isDropTarget}
onAddMusic={addMusic}
onRemove={removeRow}
onClear={clearRows}
Expand Down Expand Up @@ -529,6 +555,7 @@ function SourceList({
adding,
running,
statuses,
isDropTarget,
onAddMusic,
onRemove,
onClear,
Expand All @@ -538,6 +565,8 @@ function SourceList({
/** Staging the queue is locked while a job reads from it. */
running: boolean;
statuses: Map<number, ConvertItemUpdate>;
/** Something is being dragged over the window; the queue is where it lands. */
isDropTarget: boolean;
onAddMusic: () => void;
onRemove: (id: number) => void;
onClear: () => void;
Expand All @@ -555,7 +584,8 @@ function SourceList({
const addMusic = <AddMusicButton onClick={onAddMusic} disabled={adding || running} />;

return (
<div className="flex min-w-0 flex-1 flex-col">
// `relative` for the drag overlay below, which frames the whole queue.
<div className="relative flex min-w-0 flex-1 flex-col">
{/* No toolbar over an empty queue. A strip of controls above a panel whose
whole message is "there is nothing here yet" splits the one action the
user has into two places and puts the smaller one first. With the queue
Expand Down Expand Up @@ -588,7 +618,7 @@ function SourceList({
<EmptyState
icon={<Music2 className="size-10" />}
title="Nothing to Convert"
body="Add audio files or a folder. Platter reads each one, works out how big the result will be, and tells you whether it fits before anything is written."
body="Add audio files or a folder, or drop them on this window. Platter reads each one, works out how big the result will be, and tells you whether it fits before anything is written."
action={
<AddMusicButton onClick={onAddMusic} disabled={adding || running} prominent />
}
Expand Down Expand Up @@ -631,6 +661,12 @@ function SourceList({
/>
</>
)}

{/* The same frame the track list draws, for the same reason: the drop
has a destination, and this is it. */}
{isDropTarget && (
<div className="pointer-events-none absolute inset-1 rounded-lg border-2 border-dashed border-primary" />
)}
</div>
);
}
Expand Down
Loading