The main start button already starts and ends the broadcast. With the
buttons go ScheduleController.EndCurrentNow, its tests and texts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With only the requested song before the next news, the ad and moderator
break went in front of it. The swap message then showed the empty break
title and its start time, and the song played later than chosen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Failed saves, searches, imports and invalid input in the edit windows
now open a modal popup instead of a bar at the top of the page or red
text in the dialog. Hints and warnings stay in the bar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Mixer in two areas: what the listeners hear (music, microphone) and
what you hear; the master volume is gone.
- One start button starts the created plan and goes live when laut.fm
is on; while on air it ends the broadcast.
- The start field takes Jetzt (default), a full hour or a typed time.
A Jetzt plan moves to the moment it starts.
- Timeline rows can be dragged to a new place; Hinzufügen inserts a
song, news, an ad or moderator talk as the item after next.
- All page texts are translated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A language card on the settings page switches all texts right after
saving, without a restart; German is the default and the choice is kept
in settings.json. The laut.fm station ID and token fields are gone with
the library provider, and the device labels now read Für die Hörer and
Für dich.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The import page searches Openverse and the Internet Archive at the same
time and lists each source's results as they arrive, with a Quelle column.
A multiselect dropdown picks the licenses: Openverse filters on its
server, the Internet Archive after the search. Provider texts are
translated, and the unused bearer token support is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Loc reads Strings.resx (German, default) and Strings.en.resx and raises
Changed after a switch so views can refresh texts set in code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Radioadmin reads its track search host from client/_/config.json,
which names search.api.radioadmin.laut.fm. The provider asked
api.radioadmin.laut.fm instead, so the laut.fm library stayed empty.
Refs #15
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Settings page gets a laut.fm card: a switch, the live access data
from Radioadmin (server, port, mountpoint, user, password) and the
station id and Radioadmin token for the library. Password and token
are written to settings.json encrypted with DPAPI for the Windows user.
While laut.fm is on, the Schedule page shows a Live button next to
"Jetzt starten". It logs in at the Icecast server with PUT and sends a
copy of the broadcast mix as MP3 at 128 kbit/s, encoded by Windows
Media Foundation. ProgramOutput hands that copy out through a live
feed. Each item that starts sets the stream title; ad items send
START_AD_BREAK at most once every 15 minutes.
LautFmProvider searches the station's tracks through the Radioadmin
API and the Import page lists it while laut.fm is on, so laut.fm tracks
are imported into the same library as local songs. Providers can now
hide themselves with IsAvailable.
Nothing was tested against a real laut.fm account; the tests use a
local fake server and fake HTTP answers.
Refs #15
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Songs and the microphone now go through one audio channel,
ProgramOutput, instead of each opening its own device. ProgramMixer
builds two mixes in one pass: the broadcast for the listeners and a
monitor mix for the person at the desk. With two playback devices each
mix gets its own device; with one device the desk hears the monitor
mix.
The Schedule page gets a microphone button that works with or without
a running broadcast, and sliders for the music and microphone levels
on the broadcast, the music level on the monitor, and an option to
hear the broadcast exactly. The Settings page lets the user choose
the playback devices for the broadcast and for themselves.
MusicPlayer plays its tracks into the mixer; pause takes the track
out of the mix and resume puts it back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The theme barely marks the selected tab. Its header is now bold with an
accent line below, and the other tab is dimmed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Searches Creative Commons licensed MP3 audio. A search result there is an
item with several files, so the file list of each item is fetched too and
every MP3 becomes one result. Query operators are removed from the search
words, so they cannot change the license filter.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A provider only has to search and return MusicTrack items. Downloading and
storing them is shared by all providers in TrackDownloader and
OnlineImportController. OpenverseProvider is the first implementation.
Song.OpenverseId becomes ExternalId and SongSource.Openverse becomes
Online; the database column and the stored values stay the same.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
App registers the services, controllers, the main window and the pages in a
container, and the navigation view asks it for each page. Pages get their
controllers through the constructor instead of reading statics from App.
SettingsStore takes over the current settings from App.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SongRepository uses Entity Framework Core instead of hand-written SQL. The
table and column names stay the same, so existing libraries open unchanged.
The duration rule moves into the repository, and a duplicate Openverse id
now surfaces as DbUpdateException. Libraries from before the Openverse
import, which lack the OpenverseId column, are no longer upgraded.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The generator sizes ad and moderator items itself and leaves their titles
empty, so PlaceholderContent and its two models had no caller left.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The main window shows a dialog, optionally with a bing sound, shortly before
a news or moderator item goes on air. The settings page sits in the footer
of the navigation; the empty home page is gone and the app starts on the
schedule. Pages switch off the navigation view's outer scrolling so their
lists stay virtualized.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Adds the start time, unlimited mode, start from now, end now and the
buttons to move, edit and remove timeline items. Rows update in place and
slow controller calls run off the UI thread, with the buttons switching at
once.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Several Openverse results can be selected and imported in one go. The
preview streams through NAudio, because the WPF MediaPlayer cannot open
https URLs. The list of imported songs appears only once there is one.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
GridColumns widens text columns to the longest entry over all rows, since
the lists are virtualized and the built-in auto width only sees visible
rows. The page loses its license and attribution columns, gets Enter and
Delete on the list, and is in German.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Openverse sends some texts HTML-encoded, so "Angus & Friends" showed up
as it came. Error messages are in German like the rest of the interface.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Settings live in settings.json next to the database. News, moderator talk
and ads together can take at most 60 minutes per hour. The app also follows
the Windows light, dark or high-contrast theme at startup.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The controller can plan from a chosen hour or from this moment, keep an
unlimited plan five hours ahead, move, remove and edit items, end the item
on air, and report the next news or moderator item that is due for a
reminder.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ReplaceCurrent hands the engine a plan in which the running item changed.
A news, ad or moderator item then runs for its new length, counted from its
start, and a song ends at once.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The generator takes targets for ads and moderator talk per hour. It tries
several hundred random song picks per half hour, keeps the one that leaves
closest to the target, and lets the second half hour make up for the first.
A start between two news times gets a lead-in of music. News, ad and
moderator items start without a title.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
Start played the first item right away, although the plan begins at
the next full hour. The news was at :00 and :30 in the plan but not on
the real clock.
PlaybackEngine now takes a clock and waits before each item until its
planned start. An item that runs late is never cut; the next one then
starts right after it. When the broadcast starts after the plan has
begun, items that should already have started are skipped and playback
joins at the next one.
While the engine waits for the first item, the now-playing card shows
"On air at" with the planned time. Starting a plan that is already
over is refused with a message.
Refs #12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README now explains how to use each page, how the schedule is
built, the MVC layers and main services, and the Openverse license
and attribution handling. A checklist maps every requirement of the
assignment to the code that covers it.
The review found one gap, now listed under known limitations: the
plan starts at the next full hour, but Start plays right away, so the
news only hits the real :00 and :30 when the broadcast starts at a
full hour.
The home page still said that features "will appear here"; it now
points to the pages that exist.
Refs #12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>