v0.73.0: Connections › Import Shazams… — the Rabbit's new Shazams, found on YouTube as the original song, tagged as they land

Reads Shazam's history over root adb (and unroots after), offers only
Shazams not dealt with yet (a synced list), picks the plain studio take
(no live/cover/karaoke/clean/vinyl/sped-up, Apple's length decides), and
shows every song's stage with the Identify panel for each one as soon as
it's imported, in the same window.
This commit is contained in:
2026-10-20 00:00:20 -07:00
parent fb5f134045
commit a52542750c
9 changed files with 1948 additions and 27 deletions
+22
View File
@@ -727,6 +727,28 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
cancel `_url_batch` on teardown, or a late lookup opens a modal dialog
in the next test.
- **`lintunes/shazam.py`** + **`gui/shazam_import.py`** — Connections ›
Import Shazams… (Round 103), the `/shazam-import` skill inside the app.
Shazam's `library.db` is only reachable through **root adbd**
(`ShazamReader`: `adb root`, pull the db **and its -wal** — the newest
Shazams live there — then `adb unroot` if it was the one that rooted).
Which Shazams are dealt with is the synced pref `shazam_import.handled`
(request id → date; the skill's own state file counts too): imported,
unticked in the preview, or already in the library (`match_library`) —
never a failure, so that comes back next time. Picking the result:
`not_the_song` rejects live/cover/karaoke/instrumental/clean/vinyl/
turntable/sped-up/remix… unless Shazam's title says it too; then Apple's
length (iTunes Search, never a live album or a hits collection) rejects
anything >20 s off, and Topic > the artist's own channel > a stranger's
"(Official Audio)" (measured: the other order picked fan uploads over
Kendrick's and Outkast's own). `ShazamImportWorker` is a
`UrlImportWorker` (it owns `_url_worker`/`_url_progress`, so busy/cancel/
quit come free) narrating `stage` per song — the `LTPP` postprocess
marker is what says "Converting". `ShazamImportWindow` is the song list
*and* an embedded `identify_dialog.IdentifyPanel` per song as soon as it's
imported (its own one-at-a-time `TrackIdentifier` queue; filename
candidates are dropped, since the file already wears Shazam's tags).
- **`lintunes/mpris.py`** — registers `org.mpris.MediaPlayer2.lintunes` over D-Bus
so the desktop's media keys / now-playing popup control playback. Spacebar and
arrow keys are handled locally via `MainWindow.eventFilter`, which **ignores