Commit Graph
4 Commits
Author SHA1 Message Date
fraujulian e81257eca6 refactor(cleanup): comments, files and outdated code 2026-11-26 08:24:19 +01:00
fraujulianandClaude Fable 5.2 b8f5a3e469 feat(i18n): translate import and player messages to German
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 14:22:49 +01:00
fraujulianandClaude Opus 5.5 0a0d8e1d4c feat: combine upload and Openverse into one import page
Adding music took two navigation items that each did half the job.
The new Import page has both sources as tabs and one shared list of
what was added in this session, with the reason for every failure and
a link to the library.

From computer: drop several MP3 or WAV files or pick them with a
multi-select dialog. Files are imported one by one on a background
thread with a progress bar, and a failing file does not stop the rest.

Openverse: search and download show a progress ring with a status
text. Results that are already in the library or have no duration are
marked in their row and cannot be imported; a double-click imports.

To detect duplicates, songs now store the Openverse result id. The
repository adds the column to existing databases and a unique index
keeps one song per Openverse result.

Refs #13

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 11:34:35 +01:00
fraujulianandClaude Opus 5.5 7c95aba30a feat: add song upload for MP3 and WAV files
Add an Upload page where the user picks an MP3 or WAV file. The new
SongImportService copies it into %LOCALAPPDATA%\Radiosender\Music under
a unique name, reads the duration with NAudio and title/artist from tags
with TagLibSharp (falling back to the file name), and saves the song
with Source = Upload. Wrong extensions, unreadable files, garbage data
and files without audio are rejected; the copied file is deleted again
so nothing is left behind. The page shows the result in a Snackbar.

The music folder is injected so the service is testable without UI.
Tests cover a generated WAV, duplicate names, wrong extension, garbage
files, empty audio and missing files.

Refs #4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:24:15 +01:00