Commit Graph
649 Commits
Author SHA1 Message Date
zarzet e624e062a7 refactor: drop parameters every caller leaves at the default
_stopConnectivityMonitoring always cleared the Wi-Fi pause, LibraryDatabase.getAll
was never paged and MethodChannelBackend never received other event channels.
2026-10-23 23:08:48 +07:00
zarzet 5d8c22a452 chore(services): drop write-only result and config fields
Duplicate entries, donation config, spectrogram, audio route, cover save,
share and redownload results carried fields that nothing reads; the
duplicate query no longer selects the unused album name.
2026-10-23 23:08:48 +07:00
zarzet a6db7fe878 chore(services): remove unused service members and write-only fields
UpdateInfo.publishedAt/isPrerelease, UpdateChecker.currentVersion,
BackupBundle.isEmpty, LocalLibraryItem.matchKey and two unused desktop
debug setters are never read.
2026-10-23 23:08:48 +07:00
zarzet 987040e556 chore(ffmpeg): remove unused FFmpegProbe.isLosslessAudioCodec
Its only caller was the removed FFmpegService facade; callers use the
audio_format_utils function directly.
2026-10-23 22:44:37 +07:00
zarzet a397cf0d74 refactor(ffmpeg): call the FFmpeg modules directly
FFmpegService only forwarded each call to FFmpegProbe, FFmpegMetadata,
FFmpegConversion, FFmpegDecryption or FFmpegReplayGain with identical
defaults, so callers now use those modules and the test-only markers move
to the owning statics.
2026-10-23 22:44:37 +07:00
zarzet 759d7ca488 docs(library): fold the collections JSON export comment
The comment left from the removed map export ran into the JSON export
description; merge them into one paragraph.
2026-10-23 22:43:23 +07:00
zarzet d407d8b374 chore(library): remove the test-only collections map export
Backups embed the worker JSON fragment from exportLibraryCollectionsJson, so
the map export mode and its benchmark only served tests.
2026-10-23 22:43:23 +07:00
zarzet 17b210749f chore(backup): remove test-only legacy envelope helpers
New backups are written as archives; buildEnvelope and encode were only test
fixtures. The legacy restore test now spells out the old JSON envelope.
2026-10-23 22:43:23 +07:00
zarzet f19c3375a3 chore(motion): remove the test-only withMotionArtworkProxy wrapper
The artwork store starts and closes the proxy itself; the test now checks
that close releases the injected client and loopback server directly.
2026-10-23 22:43:23 +07:00
zarzet b696d38e75 chore(library): remove test-only single-item collection mutators
Production removes wishlist, loved, playlist and playlist-track entries through
the batch paths. Device benchmarks now use the production one-item calls as
their per-track baseline.
2026-10-23 22:43:23 +07:00
zarzet b882b01f32 chore(history): remove the unused streaming history restore
Backup restore goes through restoreFromBackupOperation with the native or
upsertBatch codec, so the streamed replaceAll path was only reached by tests.
The iOS restore test now drives the production operation with a seeded fake.
2026-10-23 22:43:22 +07:00
zarzet 86231be479 chore(library): remove unused collection JSON factories
Collections live in SQLite and backup restore feeds the raw maps to the
database, so nothing parses the old JSON shape; the picker summary dates
were also never read.
2026-10-23 22:43:22 +07:00
zarzet 9319d92198 chore(library): remove unused loadPlaylistTracks
Production reads playlist tracks through loadPlaylistTracksSnapshot and the
test fake keeps its own row helper, so the visibleForTesting wrapper had no caller.
2026-10-23 22:43:22 +07:00
zarzet 720f34f193 fix(android): coalesce background work progress notifications 2026-10-23 22:35:26 +07:00
zarzet 632f24ccdd refactor(library): share the staged ingestion steps
Incremental upserts and full source replacement created, filled and merged
their temp stage with the same code. One set of helpers now does it, with the
source replacement delete still first inside the merge transaction.
2026-10-23 22:28:48 +07:00
zarzet 0af9ac4bed chore: remove unused library database write wrappers
The single-row and batch upserts, replaceAll, the replaceSourceStream
wrapper, delete, getAllFilePaths and searchFtsTable have no callers in lib,
test or integration_test; scans use the staged ingestion paths instead.
2026-10-23 22:28:47 +07:00
zarzet f70c93ac3c refactor(library): share queue store sort terms, paging and counts
Track and album sort modes differ only in the name and key columns, and the
History shadowing anti-join, page query and count summing were written out
several times. The pinned SQL test shows the generated statements and
arguments are unchanged apart from whitespace.
2026-10-23 22:28:47 +07:00
zarzet fc7f80d0da refactor(bridge): share channel invoke helpers in PlatformBridge
Fire-and-forget calls, cast results, decoded results and event stream
accessors now go through small async helpers, so each wrapper is one
expression with the same channel names, payloads, casts and decoders.
2026-10-23 22:22:04 +07:00
zarzet 2899be8a53 fix(android): keep background playback resumable
Keep the media service foreground while paused, release CPU wake locks on pause, and demote the service on stop. Await native state publication before requesting audio focus, honor focus denial, and apply the initial MediaPlayer wake mode.

Validated with 141 playback tests and an Android 17 screen-off pause, resume, and stop integration test.
2026-10-23 20:52:10 +07:00
zarzet 2c910f4869 chore(mornye): remove the glass warmup re-export
The services file only re-exported the controller, so its two importers
now import the controller directly.
2026-10-23 19:17:37 +07:00
zarzet aad3496fb2 chore: remove unused history lookups and restore wrapper
findExisting, updateAudioMetadata, getAllFilePaths, the notifier's sync
getBySpotifyId/getByIsrc and restoreFromBackup had no callers; production
restore goes through restoreFromBackupOperation.
2026-10-23 19:16:30 +07:00
zarzet f5b603ed52 refactor(history): share schema column, backfill and single-row helpers
History and Library migrations repeated the same add-column, backfill and
first-row query boilerplate. The helpers issue the same statements in the
same order, and a new v1 upgrade test pins the resulting history schema.
2026-10-23 19:16:30 +07:00
zarzet 3821048d87 feat(settings): request local network access with the LAN toggle
Android 17 blocks LAN sockets without ACCESS_LOCAL_NETWORK, so enabling
Allow Local Network Access did not reach local servers used by
extensions. Turning the setting on now asks for the permission when it
is not granted yet.
2026-10-23 18:51:50 +07:00
zarzet 44c9ba9213 fix(automix): verify beat alignment and hold phase through the mix
Beat detection normalizes onsets against nearby energy, so a fade, a
loud fill or a quieter verse no longer dominates the pulse, and refines
the tempo in 0.01 BPM steps. The Dart and native analyzers stay in step.
An uncertain grid is retried on nearby windows and only accepted when
tempo and phase agree at both edges of the transition.

A beat-matched start now checks that the incoming deck actually landed
on the outgoing beat. When it cannot be verified, the mix falls back to
an unstretched crossfade instead of a misaligned stretch. During the
overlap, a phase lock makes small, bounded rate corrections from spaced
position samples and stops correcting when those samples are unreliable.

A measured but uncertain pulse gets a bass handoff without any tempo
change, and speed effects skip beat matching.
2026-10-23 15:39:44 +07:00
zarzet e31df404ea feat(library): sort songs and albums by file size 2026-10-23 03:59:29 +07:00
zarzet d396fb4c42 fix(conversion): preserve quoted paths in lossy exports 2026-10-23 03:56:27 +07:00
zarzet 9b74763262 fix(playback): allow MP3 playback with malformed ID3 tags
Apply the existing source-error classification during preparation so recoverable FFmpeg diagnostics do not reject playable audio. Fatal source errors still fail the load.

Validation: 15 player unit tests and two native libmpv tests on macOS passed, including repeated playback and seek with an invalid ID3 BOM.
2026-10-23 03:24:17 +07:00
zarzet 44a7fad0b9 feat(downloads): add custom folder path templates 2026-10-23 03:17:10 +07:00
zarzet fa2f73160b feat(network): add Subsonic and OpenSubsonic support 2026-10-23 03:15:19 +07:00
zarzet 9843149deb fix(automix): start the next song on the outgoing beat
A beat matched mix cued the next song on its first beat, but the start
timer, platform calls and decoder startup delayed it by an unknown
amount, so its beats rarely landed on the outgoing beats and the mix
sounded like a plain crossfade. At 150 BPM, 100 ms is a quarter beat.

Once the silent next song is playing, measure both decks and seek it to
where the outgoing beat grid puts it, retrying up to three times and
leading each retry by the lag the previous seek left behind. A deck
that stops advancing keeps the current song, as before.

Refs mornyeapp/Mornye#696
2026-10-23 03:04:15 +07:00
zarzet a0acbc1fe2 refactor(onboarding): remove the rebrand introduction tour 2026-10-22 23:53:39 +07:00
zarzet 7a0d6afbe0 fix(notifications): handle Linux launch callbacks and contain queue alerts 2026-10-22 23:44:43 +07:00
zarzet 0409a35162 fix(network): flush and verify SMB uploads before publishing
Flush remote writes before checking upload size. When path metadata reports a different size, verify file length and streamed content before publishing, preserving cancellation and corruption checks. Include expected and reported sizes in failures.
2026-10-22 19:13:04 +07:00
zarzet 82bda28901 fix(metadata): write M4A tags into FLAC-in-MP4 files
The default .m4a (ipod) muxer rejects FLAC, so tag and cover writes on
FLAC-in-MP4 files failed, and the MOV retry could not carry FLAC either.
Always mux with mp4 (experimental compliance for older FFmpeg builds),
and retry with mov only when MP4 rejects the codec, keeping the original
error otherwise.
2026-10-22 15:31:36 +07:00
zarzet eef2a18f16 fix(library): serialize native folder watcher lifecycle 2026-10-22 02:43:04 +07:00
zarzet 11a9b9a4ec chore: remove redundant comments across the codebase 2026-10-22 01:41:09 +07:00
zarzet cba77c1fc0 fix(history): use single-quoted empty strings in path queries
SQLite reads "" as an identifier. The sqlite3 build Windows and Linux
bundle disables the legacy fallback that treats it as a string, so
startup history maintenance and orphan cleanup failed there with
'no such column'. macOS uses the system SQLite and hid the bug.
2026-10-21 18:28:59 +07:00
zarzet 54404cdf41 fix(desktop): open the Downloads page from the downloads popover
Show all only asked for the Library tab, which in Mornye reopens the
page it showed last, such as Songs. Mornye now opens its Downloads
sidebar page through a new library link request; Material keeps the
Library tab.
2026-10-21 18:19:43 +07:00
zarzet 08f5fa64be fix(desktop): bind Discord presence to the player
The runtime only bound DiscordPresenceService on Android and iOS, so the
desktop IPC client never received a track and Rich Presence never showed
on Windows, macOS or Linux.
2026-10-21 14:59:26 +07:00
zarzet 876d4a4766 fix(library): keep scanning when a row has no scan time or is invalid
The Android DSD/WavPack reader built its library row without scannedAt.
Since the native staging validates required fields (d1de8331), one such
file failed the whole import with "Library scan row requires string
scannedAt", so a library containing a .dsf, .dff or .wv file could not
be scanned at all.

Stamp that row in Kotlin and fill a missing scannedAt during native
staging. A row that still cannot be encoded is counted, reported through
invalid_rows, invalid_row_error and invalid_row_paths, and skipped; the
owner logs it and protects the file's previous entry during publication,
as it does for a platform read error, instead of discarding the scan.
2026-10-21 14:22:46 +07:00
zarzet af500a737d feat(lyrics): choose lyrics from each provider in the metadata editor
"Find lyrics online" in the editor's lyrics section opens a sheet that
asks every enabled provider, extensions included, and lists each
answer in priority order with its timing and a preview. The chosen
lyrics fill the field and are saved with the other edits.

The backend gains getLyricsFromProvider, which asks one enabled
provider directly without the cache or the priority race, and
getEnabledLyricsProviders, wired for desktop, Android and iOS.
Provider display names move to a shared helper.
2026-10-21 11:35:19 +07:00
zarzet f6df8502fc feat(release): publish desktop builds in mornyeapp/Mornye-Desktop
The release workflow now ships phone builds in Mornye and desktop
packages in Mornye-Desktop, each with its own notes and SHA256SUMS.txt.
Desktop releases stay drafts until the DESKTOP_RELEASES_PUBLIC
repository variable is 'true'.

Desktop update checks read the new repository, and a release list
cached from the main repository is not reused. The Windows installer
links its updates page there too.
2026-10-21 11:34:43 +07:00
zarzet c9732fe440 fix(downloads): keep finalized FLAC paths and container names consistent 2026-10-21 01:48:14 +07:00
zarzet faa08f5b56 fix(library): prune stale NAS rows outside failed scan paths 2026-10-21 01:47:56 +07:00
zarzet 6bbc0823d4 fix(library): recognize NAS connection aliases in duplicate review 2026-10-21 01:47:48 +07:00
zarzet 9f5b2ff30c Merge branch 'desktop/d15-enable-backend' 2026-10-20 17:44:49 +07:00
zarzet 654dc01c97 fix(desktop): keep the profile photo in the app support folder
On desktop the Documents folder is the user's own, so the avatar no longer
goes to Documents/profile there.
2026-10-20 17:44:49 +07:00
zarzet 95a11dbda9 fix(desktop): report crashes only with evidence and keep one macOS instance
A leftover session marker alone means a force quit, kill or power loss, so it
is now logged instead of shown as a crash; SIGTERM quits cleanly. Release
builds on macOS hand over to an already running copy of the app.
2026-10-20 17:11:41 +07:00
zarzet bcb1ee8b90 feat(desktop): play through media_kit with MPRIS and SMTC sessions
Windows and Linux now create a libmpv deck through media_kit; macOS,
Android and iOS keep audioplayers. Without libmpv the runtime falls back
to audioplayers.

- The equalizer becomes one libavfilter graph behind mpv's lavfi filter
  (input gain, peaking bands, balance, compressor, -0.5 dBFS limiter)
  after a planar float conversion. Changes set the af property again.
  Filters a libmpv build lacks are probed once and left out; the input
  gain then moves to mpv's volume. Filter failures are reported per player.
- Deck volume is scaled by the in-app output volume on mpv's cubic curve,
  position updates run on a timer, DSD sources throw when libmpv cannot
  open them, and exclusive output has a hook for a later setting.
- The in-app output volume persists across launches on every desktop OS.
- Previews go through the runtime's preview deck, so desktop previews
  follow the in-app volume.
- Linux publishes MPRIS over D-Bus and Windows uses SMTC through
  smtc_windows, both driven by the audio handler.
- The Linux CI job installs libmpv-dev.
2026-10-20 16:55:01 +07:00
zarzet 6b4f81d87b feat(desktop): turn on the core backend and extension system
supportsCoreBackend and supportsExtensionSystem now include desktop, so
extensions, native data jobs, cache maintenance, backups and library
ingestion use the Rust library there. Download and library scan progress
use the native event streams, cover downloads let the backend create the
file in its own folder, and extension initialization drains a callback
URL queued at launch, as on Android.
2026-10-20 16:52:45 +07:00