Commit Graph
32 Commits
Author SHA1 Message Date
sanapachandClaude Opus 5.5 d275e7326b Add the Import library page and wizard to the web player
Import library sits between Followed and Settings in the account menu and
opens #imports: the sources, the history with statistics and links to the
created playlists, and #imports/N with progress, per-playlist results, a
deleted-playlist notice with Create again, and the entries with status and
playlist filters, search, paging and the candidates of doubtful entries to
choose from. Retry unmatched (with the federated search consent), Cancel,
Delete history and a new Spotify sign-in for waiting imports call the
existing /api/imports endpoints. The page polls every 3 s while an import
runs. It follows the player's views, skeletons, dialogs, switches and
phrase table in English and Russian.

The New import wizard picks a source, then the data export or the Spotify
sign-in, then the playlists: imported ones cannot be selected, similar ones
need an explicit confirmation, and federated search is off until the user
turns it on. A ZIP export is opened in the browser with fflate 0.8.2,
vendored with its MIT licence and served at /vendor/fflate-0.8.2.js only
when an archive is picked. Only Playlist*.json and YourLibrary.json are
extracted; archives over 256 MiB, with more than 2,000 entries, more than
256 playlist files or more than 32 MiB declared for them are refused before
anything is decompressed, and a request over 32 MiB is not sent.

Federated tracks can now be removed from a playlist in edit mode:
DELETE /api/player/tracks/content/playlist checks the owner and records the
existing PlaylistTrackRemoved operation. The body-level dialogs get an
Alpine root, which also makes Get app open again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:05:30 +02:00
sanapachandClaude Opus 5.5 ff87d9110d Import Spotify data exports and optionally playlists from the Spotify Web API
Add the Spotify adapter to the library import. The data export path parses
Playlist*.json and YourLibrary.json sent by the browser, tolerates missing
and unexpected keys, keeps the source order and repeats, and stores episodes,
audiobooks, local files and unreadable entries as unsupported instead of
dropping them. The bundled export fixture is synthetic and must be joined by
an anonymized real export before acceptance.

POST /api/imports/preview lists the playlists of an upload and marks those
already imported or similar to an earlier import; POST /api/imports stores
the selected playlists with every entry in one transaction and starts the
worker. Requests are JSON-only and limited to 32 MiB (413). Re-import is
detected per source playlist: a repeat is refused with 409, and a changed
playlist with the same title needs confirm_similar.

The Spotify Web API is optional and enabled by an administrator's client ID
(and redirect URI behind a proxy) in the settings. Sign-in uses PKCE with the
state, verifier and waiting import kept in the session; access tokens stay
only in an in-memory vault for at most 30 minutes. The worker fetches the
selected playlists one by one, honors Retry-After and backs off on server
errors. A missing or expired token parks the import as needs_reauth; signing
in again with the same account continues the same import and skips the
playlists already fetched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:30:07 +02:00
sanapachandClaude Opus 5.5 097812a845 Store library imports and run them as a resumable background job
Add the library_import subsystem core: migration m_0065 with the import,
playlist, item, publication-receipt and attempt tables, the provider-neutral
import model, the adapter trait and the storage layer.

The library_import job claims imports under a two-minute lease that a
heartbeat renews, checks cancellation between phases and resumes an
interrupted import from its stored phase. Matching and publication phases
are placeholders for the following changes. At boot, imports of the previous
process are requeued; a sweeper starts a worker whenever an import waits
without one, so a worker that stops without a server restart is replaced
once its lease expires.

The /api/imports endpoints list the user's imports, show one import with
its playlists and paged entries, cancel it and delete its history while
keeping the created playlists. Every request is scoped to the owner.
GET /imports redirects to the player view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:05:42 +02:00
ab 2b8dad2139 Add offline listening and a device-local music catalog 2026-11-24 02:45:38 +02:00
ab 12f21583f8 feat: unify local and federated search results 2026-11-23 05:41:25 +02:00
ab aad76c782a feat: add local hybrid lyrics search with bundled E5 model 2026-11-23 03:41:42 +02:00
ab beea7c1c0a Added lirycs 2026-11-23 01:45:22 +02:00
ab be7ccd5b4f Added podcasts support 2026-11-22 16:05:37 +02:00
Aleksandr Bogomiakov 939fc00e4c Reworked new users login, improved share feature, enabled track downloads 2026-11-18 14:40:16 +00:00
Aleksandr Bogomiakov 4141562e33 Added stat page 2026-11-12 11:52:38 +00:00
ab a8bbb4b603 Fix connected devices 2026-09-10 18:15:55 +03:00
Ultradesu 1ab53e3898 Fixed ytdl retries 2026-08-14 12:56:03 +01:00
Ultradesu 5402d9595d Added socks proxy, reworked download manager configuration 2026-08-14 10:54:56 +01:00
Aleksandr Bogomiakov 943191a0ff Added youtube import. Reworked Download Manager 2026-08-14 01:21:51 +01:00
Aleksandr Bogomiakov 77cbb62d84 Added similarity search 2026-08-10 01:44:40 +01:00
Ultradesu 4381750c6e Extend DHT scheme 2026-07-20 16:29:21 +03:00
Ultradesu 0615356785 Added federation 2026-07-17 13:30:55 +03:00
Ultradesu 624cadab64 Fixed sone jobs 2026-06-08 11:22:52 +01:00
Ultradesu 952d11e6f5 added mobile auth support 2026-06-05 03:37:51 +03:00
Ultradesu 3a9240b82c Add music sharing and mobile player polish
Add track, release, and queue sharing with post-login redirects; support shared playlist links and highlighted shared tracks.

Add local synchronized playback for jams, constrain HTTP metrics to known routes, and refine mobile player controls/layout.
2026-06-03 17:48:30 +03:00
ab 27ee56c5b7 CORE: added prom metrics on /metrics 2026-06-01 16:08:49 +03:00
Ultradesu c43ee02b00 CORE: Improve media paths and player reliability 2026-05-27 18:52:17 +03:00
Ultradesu 476b300a6c CORE: reworked artwork_backfill.rs task 2026-05-27 18:07:02 +03:00
Ultradesu 015d75c701 CORE: Added Last.FM scrobbling 2026-05-27 16:40:06 +03:00
ab 04c30bc4b8 added image resizer 2026-05-27 00:28:39 +03:00
Ultradesu 4b8797bb2e Added lastfm statistics 2026-05-26 18:16:34 +03:00
Ultradesu cae77e9401 Added OIDC users group filter 2026-05-25 16:26:45 +03:00
Ultradesu bf0a2a553c Added torrent client and upload feature. reworked mobile UI. 2026-05-25 15:40:07 +03:00
ab dcc665563a Reworked Reviews page 2026-05-25 13:50:24 +03:00
ab 8912c51165 Furumi init 2026-05-23 13:08:09 +03:00
ab b8afaa1864 Init 2026-05-21 16:21:42 +03:00
abandClaude 16abe754af Initial commit: web-app boilerplate with auth, OIDC/SSO, admin panel, i18n
Rust (cot framework) + PostgreSQL boilerplate providing:

- Session-based auth with Admin/User roles
- OIDC/SSO login with PKCE, group-to-role mapping, auto-provisioning
- Admin panel: user management, settings, debug/config inspector
- 3-tier config system (compiled default → DB → FURU_* env vars)
- i18n (English + Russian) with compile-time translations macro
- JSON API skeleton (GET /api/me)
- DB-backed sessions (survive server restarts)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-21 14:22:33 +03:00