100 Commits
Author SHA1 Message Date
nvrl 3552b978b6 Merge pull request #38 from narrrl/release/2.4.0
chore(release): 2.4.0
2026-11-24 10:24:05 +01:00
nvrl 8fccabba87 Merge pull request #37 from narrrl/fix/design-regressions
fix: the Stream icon in Qt shells, the band round the nav bar, the iOS icon's plate
2026-11-24 10:23:49 +01:00
nvrlandClaude Opus 5.5 c14906d4b2 chore(release): bump version to 2.4.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:21:34 +01:00
nvrl 9ba44520a4 Merge pull request #36 from narrrl/perf/ios-smoother
perf(ios): a smoother player, scrolling and poster grid
2026-11-24 10:17:31 +01:00
nvrlandClaude Opus 5.5 bed7ce525b test(android): re-record the screens that draw the mark
The currents are now pre-cut paths instead of a clip, which moves the
anti-aliasing of a few edge pixels in the top bar's mark. Nothing else
in these eight captures changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:11:37 +01:00
nvrl 408f15d713 perf(ios): keep a few screens of posters decoded
Posters were decoded at 1024 px and the cache held 32 MB, about eleven
of them, less than one screen of the grid, so scrolling back showed
skeletons while every tile was read from disk and decoded again. Portrait
art now decodes at 768 px, enough for a tile on a phone at 3x and an
iPad at 2x, and the cache holds 80 MB. NSCache still lets go under
memory pressure.
2026-11-24 01:10:11 +01:00
nvrl da89e895f8 perf(ios): fill the bars without re-running the page per scroll frame
The library's bar over the banner and the title page's bar took how
solid they were from @State written on every scroll frame, and read in
the page's body, so each frame re-ran the whole page: on the library the
catalog lookups, the featured titles and every shelf; on a title page
the playlist and every episode row. The value now lives in an
@Observable BarReveal that only the bar reads, rounded to fiftieths and
written only when it changes.
2026-11-24 01:10:11 +01:00
nvrl 9994d8e5a2 perf(ios): the player's clock at 4 Hz, and mpv off the main thread
mpv publishes time-pos and demuxer-cache-time once per video frame, and
each reading went to the main thread and rebuilt the whole player: the
up-next card and the time left were read in PlayerView's body. The event
thread now coalesces those two readings to 4 Hz, as Android polls,
holding the latest and sending it when its turn comes even if mpv goes
quiet. Any other event sends what is held first, so a reading of the
outgoing file still lands before the next one's START_FILE, and resets
the pace, so the reading after a seek or a pause is not a beat late.
The skip button, the up-next card and the time left are views of their
own, so a reading redraws only them.

Property reads and writes took the core's lock on the main thread, which
the demuxer holds through a block fetch: a track list read on load was
seven reads per track. Reads, writes and commands now run in order on a
queue of their own (Android's NativeMpvHost keeps them off its UI thread
for the same reason). The track and chapter lists land on the main
thread unless another file was loaded since, and onLoaded waits for the
tracks it reads. load waits for the queue, so a seek queued for the
outgoing file cannot land on the new one.
2026-11-24 01:10:11 +01:00
nvrl d6c7cf4cbb fix(app): paint the page round the floating nav bar
The bar's outer margin is left unpainted so the bar floats, and what
showed there was eframe's near-black clear colour, a dark band round the
bar that light palettes made obvious. The clear colour is now the
palette's background.
2026-11-24 01:02:19 +01:00
nvrl 97b8511954 fix(branding): cut the currents to the prism, and put iOS on Android's plate
Qt shells and launchers drew the Stream icon as a folder: the currents
were oversized shapes clipped to the prism with a clip-path, and QtSvg
ignores clip-path, so they spilled out as a pale slab. They are now cut
in their own paths; rsvg renders the same pixels. The generator refuses
a clip-path in a Drive or Stream mark, since that SVG ships as the
desktop icon.

The iOS icon stood on a pale lavender square. It now takes Android's
deep violet plate and the crop a launcher shows, so both phones show
one icon.
2026-11-24 01:02:19 +01:00
nvrl 0304911d57 Merge pull request #35 from narrrl/feat/tv-watch-next
feat(android): Watch Next and voice search on a TV
2026-11-23 23:44:45 +01:00
nvrl c3d778fd78 Merge pull request #34 from narrrl/fix/ci-robolectric-offline
fix(android): run Robolectric offline against a Gradle download
2026-11-23 23:44:28 +01:00
nvrl 79e43ed842 feat(android): Watch Next and voice search on a TV
Roadmap C4. On a television:

- Continue watching also appears on the launcher's home screen, in its
  Play Next row (TvContract.WatchNextPrograms, WRITE_EPG_DATA), with the
  place and length, the provider's art and synopsis, and the episode's own
  name and numbers, never a file name. A card plays its episode through
  ACTION_PLAY_EPISODE. A card the viewer removed stays off until that
  episode is watched again. Settings → Playback has a switch, on by
  default and shown only on a TV.
- The Search page has a mic beside the field, and the remote's Search key
  opens Search listening from any page (RecognizerIntent).
- The assistant's "search for … on Proton Stream" (SEARCH, SEARCH_ACTION)
  opens Search with what was said; "play … on Proton Stream"
  (MEDIA_PLAY_FROM_SEARCH) plays the one title of that name from where
  the viewer is, else shows the search. A search from outside the field
  moves the focus to its results without leaving a keyboard over them.

Fast-forward and rewind through the media session were already in place
from C1.
2026-11-23 23:28:39 +01:00
nvrl 022c0acd7e fix(android): run Robolectric offline against a Gradle download
Android CI on main failed after v2.3.0 merged: DownloadStateStoreTest,
ScreenshotTest and TvTest all died in MavenArtifactFetcher with an
IOException. Robolectric downloads its Android runtime from Maven Central
by itself while the tests run, outside Gradle, so one dropped connection
fails every Robolectric test. The actions/cache meant to keep that jar never
held anything: a run that fails on the download saves no cache.

Gradle now downloads android-all-instrumented for API 34 like any other
dependency, with its retries and the Gradle cache CI already restores, and
the tests run with robolectric.offline against that copy. The cache step
goes.
2026-11-23 22:59:12 +01:00
nvrl 4409210853 Merge pull request #33 from narrrl/release/2.3.0
chore(release): 2.3.0
2026-11-23 22:14:14 +01:00
nvrl 51c74f1425 Merge pull request #31 from narrrl/feat/suite-look
feat: the suite's look, and a Stream mark with currents
2026-11-23 21:42:12 +01:00
nvrl 715a2eb0ea chore(release): bump version to 2.3.0
Also regenerates the Flatpak's cargo sources, which had fallen behind
Cargo.lock: qrcode, proton-drive-tree-rs and proton-media-rs 0.2.0 were
missing, so an offline build could not resolve them.
2026-11-23 20:46:54 +01:00
nvrl 585439fbfd feat(core,android): add a share to a TV from a phone
Typing a share link on a remote is the worst part of setting up a TV.
Add share on a TV now shows a QR code instead. The phone's camera opens
a page the TV serves on the home network, the link is pasted there, and
the TV opens it through the same path as the typed form. A refusal (a
wrong password, an incomplete link) goes back to the page with the link
kept, so it is fixed where the keyboard is. The phone needs nothing
installed.

pstr-core::handoff listens on the TV's private IPv4 address only, under
a random 60-bit path, for ten minutes or until a share is added. The page
runs no script and its CSP allows none; requests are size- and
time-bounded. It is plain HTTP, which PRIVACY.md states, and "Type it
instead" keeps the ordinary form.
2026-11-23 20:27:28 +01:00
nvrl 71dcbf74b2 fix(android): show a refusal's reason, not "reason=…"
uniffi's generated BridgeException.Failure spells its message out as
`reason=…`, so every refusal the app showed (a link that will not open,
a failed sign-in, a download, a snackbar) began with the field's name.
`Throwable.reason` reads the field itself, and every place a failure is
shown uses it.
2026-11-23 20:27:21 +01:00
nvrl 6ae611a5a4 feat(app): a floating bar, the mark and a visible focus ring
The desktop takes the suite's look: the nav floats as a rounded bar with
the Stream mark, buttons and tabs are pills, cards round to 12, and
new-episodes badges and the rating star wear the palette's copper.
About shows the mark, the version and the suite.

Keyboard focus was nearly invisible on the dark pages. Every focusable
widget now draws a 2px accent ring with a copper inner edge, and a
focused segmented chip no longer shifts its row. Palette cards ellipsise
long names instead of overlapping.

DESIGN-TOKENS gains the suite's shared tokens, shapes and focus, and the
desktop screenshots are retaken.
2026-11-23 19:15:47 +01:00
nvrl b9e48177a0 feat(core,android,ios): the suite's palette, Proton Light and Copper
Proton now wears the plum neutrals and violet of Proton Drive and Proton
Gallery, and its Mauve gradient runs into the icon's orchid. Proton Light
is the suite's light page, and Copper joins the accents. Every palette
carries a highlight, copper on the Proton flavours, which new-episodes
badges, the rating star and the TV focus ring wear.

Android takes the suite's radii (12 cards, 16 sheets, 24 floating, pill
buttons), shows the mark in the Library bar, About and empty states,
and the TV type ramp moves to Inter at tv-material's sizes. Title actions
shrink to fit rather than ellipsise at large font sizes, now pinned by a
360dp, 2x font capture. iOS mirrors the palette, radii and choices.
2026-11-23 19:14:22 +01:00
nvrl 3ca6d58fb8 Merge pull request #30 from narrrl/feat/android-tv-ui
Feat/android tv UI
2026-11-23 17:18:16 +01:00
nvrl 78238f4bad feat(branding): give the Stream mark its currents
The play prism was the one bare glyph in the suite: Drive's folder carries
documents and Gallery's plate carries hills and a sun. Lilac and pink
currents now flow through the prism toward its point. The outline is
unchanged, so the themed launcher icon and the status-bar mark keep the
plain play shape.

The TV banner sets its name in the bundled Inter through a fontconfig that
sees only those files, so no installed font can change its pixels, and
download notifications use the monochrome mark instead of the coloured
launcher foreground. The plain prism is kept in images/branding-archive.
2026-11-23 16:50:34 +01:00
nvrl 316e7b7c4a docs: Android TV screenshots 2026-11-23 16:32:32 +01:00
nvrl 12187ba1d5 fix(android): make the TV pages work with a remote
Ran the TV UI on an Android TV emulator with a real library and fixed
what came up:

- The app started with the focus in the menu, not on the page.
- Left from a card landed on the menu entry level with it, not on the
  page that is open.
- Down on the search field stayed in the field, so the results could
  not be reached.
- Compose's TV scrolling stops a third of the way in, which cut the row
  above in half on Home and scrolled a title's name away under Play.
  Rows on Home now line up under the top, and a title page, search and
  a genre page scroll only as far as needed.
- Home showed My List twice: as its own row and as the core's shelf.
- A focused episode's text was dark on a dark surface.
2026-11-23 16:32:32 +01:00
nvrl f2261acd0e feat(android): give the TV a UI of its own
On a television MainActivity now composes ui/tv/TvApp instead of the
phone's ProtonStreamApp: the same AppViewModel, library, account and
player, laid out for a screen across a room on androidx.tv:tv-material.

- A navigation drawer down the left edge: Home, Search, History,
  Downloads, Shares, Settings.
- Home: the focused title's backdrop, name and synopsis at the top,
  following the focus after a short pause, and rows of Continue
  watching, My List, the shelves and every title under it.
- A title's page opens with Play focused, then Start over, My List and
  Mark watched, season chips, episodes with stills and synopses, the
  franchise and More like this.
- Search and Browse pages; OK on the field opens the TV's keyboard or
  voice input.
- Menu, or holding OK, opens a focusable menu where a phone has a long
  press. Rows remember the card they were left on.
- The player covers everything and nothing is composed under it.
  Leaving the video stops it: a TV has no mini player.
- History, Downloads, Shares and Settings are the phone's pages inside
  the overscan margins for now.
2026-11-23 14:14:39 +01:00
nvrl 31c63d2eb0 Merge pull request #28 from narrrl/feat/android-tv-foundation
feat(android): drive the app with a TV remote
2026-11-23 13:51:53 +01:00
nvrl 42aca0e3b2 Merge pull request #27 from narrrl/fix/app-mpv-teardown
fix(app,player): destroy the mpv core off the ui thread
2026-11-23 13:39:08 +01:00
nvrl 06874c51f4 Merge branch 'main' into fix/app-mpv-teardown 2026-11-23 13:38:58 +01:00
nvrl b40b0c522d Merge pull request #26 from narrrl/fix/player-no-lua-osc
fix(player): start on a libmpv built without Lua
2026-11-23 13:38:22 +01:00
nvrl 6383f26693 feat(android): drive the app with a TV remote
Issue #5: on an Android TV the app installed but needed a touch screen.
This is the groundwork both the phone UI and a later dedicated TV UI
need.

- The focused control is outlined in the accent, and artwork grows a
  little, instead of Material's ten percent tint.
- The Menu key opens what a long press opens: the Continue watching
  and tile menus, and "Mark watched up to here" on an episode.
- Closing a title gives the focus back to the tile it was opened from.
  The featured banner stops turning while one of its buttons is
  focused.
- Player: a key press keeps the controls up, and Play takes the focus
  when they appear. Skip, Up next, the end card and Retry take the
  focus when they show, and Back hides the controls first. Rewind and
  fast-forward seek 10 s, also from the media session. Next, previous
  and stop work too. A TV has no rotation lock or touch lock.
- On a TV: navigation rail, single pane, overscan margins, a shorter
  banner, and a CAPTCHA window that fits a 540 dp screen.
2026-11-23 13:37:54 +01:00
nvrl e1cd344f79 Merge pull request #25 from narrrl/docs/install-32bit
docs: the Android APK also runs on 32-bit ARM
2026-11-23 13:37:53 +01:00
nvrl b8f8ebd5c2 fix(app,player): destroy the mpv core off the ui thread
The window froze for up to a second when an episode ended or the next
one started ("ui thread blocked for 1092 ms drawing the player page").
The UI thread's VideoSurface held the last handle to mpv, so dropping a
stopped Playback freed the render context and then ran mpv_destroy in
the frame, waiting for the demuxer and audio output to wind down. After
an end of file the player thread had not even sent `quit` (B69).

- The player thread sends `quit` on every way out.
- VideoRenderer frees the render context on the GL thread as before,
  then hands the core to an `mpv-teardown` thread. on_exit holds a
  handle across the drop so the core still dies before the process.
- app::timed names the remaining blocking parts at 100 ms: dropping
  the stopped player, rendering the video and mini picture, and
  rebuilding the library view.
2026-11-23 13:28:08 +01:00
nvrl d7b7efc8f0 fix(player): start on a libmpv built without Lua
The Flatpak builds libmpv with -Dlua=disabled, and mpv only declares its
`osc` option when Lua is built in. Player::new set it for the embedded
player and the window fallback alike, so both failed with
MPV_ERROR_PROPERTY_NOT_FOUND and every episode ended in the toast
"start mpv: mpv: Raw(-8)" (B68).

A missing `osc` now counts as already off; every other option still
fails as before. mpv errors are shown by mpv's own name instead of
libmpv2's Debug output.
2026-11-23 13:28:08 +01:00
nvrl a102ccd880 docs: the Android APK also runs on 32-bit ARM 2026-11-23 02:23:57 +01:00
nvrl 0a996c65f5 Merge pull request #24 from narrrl/fix/rpm-metainfo-dir
fix(packaging): spell out the metainfo path in the RPM spec
2026-11-23 01:45:02 +01:00
nvrl 082d388491 fix(packaging): spell out the metainfo path in the RPM spec 2026-11-23 01:35:43 +01:00
nvrl 89a8d48a11 Merge pull request #21 from narrrl/release/2.2.0
Release 2.2.0
2026-11-23 00:37:42 +01:00
nvrl e5195893ad Merge pull request #23 from narrrl/feat/aur
AUR packages: proton-stream, -bin and -git
2026-11-23 00:37:23 +01:00
nvrl a29c5328fd Merge pull request #22 from narrrl/fix/ci-robolectric-cache
ci(android): cache Robolectric's android-all jars
2026-11-22 23:32:38 +01:00
nvrl 7e958ae7d8 feat(packaging): AUR packages proton-stream, -bin and -git, published on release 2026-11-22 23:28:02 +01:00
nvrl 17e74b2a14 ci(android): cache Robolectric's android-all jars 2026-11-22 23:10:05 +01:00
nvrl 64aa2e6c68 chore(release): bump version to 2.2.0 2026-11-22 23:09:42 +01:00
nvrl a84f988b3e Merge pull request #20 from narrrl/feat/drive-tree-changes
Crawl own-Drive folders when Drive reports a change
2026-11-22 21:01:05 +01:00
nvrl c896693ff8 feat(core,app,android,ios): crawl own-Drive folders when Drive reports a change
The crawl and ShareClient now come from proton-drive-tree-rs: DriveTree is
the old ShareClient, and walk is the old parallel, retrying crawl plus a
cycle check. A crawl of an account folder also records where Drive's change
feed stood and which nodes it found.

The desktop app polls the feed every 2 minutes and crawls the account
folders that changed. Android and iOS do the same in their 5-minute loop
through the bridge's new changed_shares. Public links have no feed and keep
the 6-hour recrawl.
2026-11-22 19:19:08 +01:00
nvrl 12aa7f18de Merge pull request #19 from narrrl/feat/flatpak
feat(packaging): Flatpak manifest and build script
2026-11-22 17:47:24 +01:00
nvrl 67d152980f Merge pull request #18 from narrrl/fix/sign-out-refresh-race
fix(core): don't store a refreshed session after sign-out
2026-11-22 17:47:14 +01:00
nvrl b00478c378 Merge pull request #17 from narrrl/refactor/media-stream
refactor(stream): use the stream engine from proton-media-rs 0.2.0
2026-11-22 17:46:58 +01:00
nvrl 14e64dbf9d Merge pull request #16 from narrrl/fix/android-armv7
fix(android): ship armeabi-v7a for 32-bit Android TVs
2026-11-22 17:46:50 +01:00
nvrl 0d31654bf0 fix(core): keep a refresh after sign-out from storing the session again
Refresh tokens are single-use, so every refresh is written back. The callback
outlived a sign-out: the crawl and sync tasks keep the session alive, and
offline it cannot be ended, so a later refresh stored it again and the next
launch came back signed in. A second sign-in raced the same way.

Each sign-in and sign-out now starts a generation, and a refresh writes only
while its generation is current, checked under the lock the delete holds.
Sign-out deletes before ending the session. B67.
2026-11-22 17:15:11 +01:00
nvrl 8ab7d429af refactor(stream): build on proton-media-rs 0.2.0's stream engine
The ring, StreamSource, VideoStream, disk cache glue and RevisionBlocks
moved to proton_media_rs::stream. pstr-stream keeps LibraryOpener and
re-exports the rest under the old names, keyed by NodeUid, so the app,
the Android bridge and the player tests are unchanged. The disk cache
key is the same string, so existing caches still hit.
2026-11-22 17:09:32 +01:00
nvrl 39f59e7e0c Merge pull request #15 from narrrl/fix/windows-4k
fix(app): run on the discrete GPU and buffer 4K on Windows
2026-11-22 16:51:58 +01:00
nvrl 76ff90506c fix(android): ship armeabi-v7a for 32-bit Android TVs
Many Android TVs run a 32-bit userspace on a 64-bit SoC. The APK had only
arm64-v8a and x86_64 native libraries, so the package installer rejected
it there as "not compatible with your TV" before it ever ran.

libmpv (mpv-android's armv7l target), the Rust core (cargo-ndk) and the
JNI shim now build for armeabi-v7a too, and CI installs the
armv7-linux-androideabi Rust target. Adds about 43 MB to the APK.

Refs #5
2026-11-22 16:49:58 +01:00
nvrl 6ccc0c5e69 fix(app): run on the discrete GPU and buffer 4K on Windows
4K HEVC 10-bit stuttered on a Windows laptop with an RTX 3050 (B66).

- proton-stream.exe exports NvOptimusEnablement and
  AmdPowerXpressRequestHighPerformance, through a .def file build.rs
  hands the linker, so hybrid-graphics drivers start it on the discrete
  GPU instead of the iGPU that owned the GL context mpv renders into.
- The desktop mpv buffer ceiling is 256 MiB instead of 48 MiB, about
  five seconds of a 4K remux. Safe above the block ring because the app
  runs block read-ahead at 0 (B8). Android keeps 48 MiB.
2026-11-22 16:36:49 +01:00
nvrl 3daddceabe Merge pull request #13 from narrrl/feat/store-metadata
feat(packaging): AppStream metainfo and fastlane store metadata
2026-11-22 14:42:40 +01:00
nvrl 1934f0e087 feat(packaging): Flatpak manifest and build script
The manifest builds the checkout offline on the GNOME 51 runtime, with
libass, libplacebo and libmpv as modules and every crate vendored through
cargo-sources.json. scripts/build-flatpak.sh regenerates the sources,
builds, optionally installs, and bundles into dist/.

Sandbox: network, Wayland with X11 fallback, DRI, PulseAudio, the Secret
Service, notifications and the MPRIS name. The screensaver inhibit goes
through the portal, which needs no extra permission.

Refs #3
2026-11-22 14:04:52 +01:00
nvrl fd641042ab feat(packaging): AppStream metainfo and fastlane store metadata
Groundwork for Flathub (#3) and F-Droid/IzzyOnDroid (#4).

- packaging/io.narl.proton-stream.metainfo.xml, installed by every Linux
  package and validated in CI next to the desktop entry
- fastlane/metadata/android/en-US with listing text, screenshots, the
  icon (rendered by render-branding.py) and per-version changelogs
- release.yml refuses a tag without a matching metainfo <release> and
  fastlane changelog
2026-11-22 13:10:26 +01:00
nvrl f55de02df6 Merge pull request #12 from narrrl/fix/launcher-icon-background
fix(android): put the launcher icon on a deep violet plate
2026-11-21 01:25:44 +01:00
nvrl e5eb4afb5b fix(android): put the launcher icon on a deep violet plate
Launchers mask the adaptive icon background into a circle. The light
background showed as a pale disc around the mark on dark home screens.
The plate is now a deep violet radial gradient that frames the copper
rim.
2026-11-21 01:22:29 +01:00
nvrl 5d6cbad3c9 Merge pull request #11 from narrrl/refactor/sdk-login
refactor(core): sign in through proton_sdk::login
2026-11-20 17:29:44 +01:00
nvrl 646db3a61b refactor(core): sign in through proton_sdk::login
proton-sdk 0.12.2 carries the sign-in steps, so account.rs uses
proton_sdk::login and stores from ResumeParameters; the stored layout is
unchanged. Share tokens come from the SDK's parse_public_link_url with
Stream's own messages; a link with an empty #fragment is now refused at
add time too.
2026-11-20 17:26:20 +01:00
nvrl 1aa2c88c12 Merge pull request #10 from narrrl/refactor/shared-sign-in
refactor(core): sign in through proton_auth_rs::session
2026-11-20 15:53:19 +01:00
nvrl fe93942420 refactor(core): sign in through proton_auth_rs::session
The sign-in steps (CAPTCHA retry, second factor, mailbox password, key
unlock) are now the sequence Proton Gallery and proton-drive-linux share.
The stored proton-account blob and its refresh write-back are unchanged.
2026-11-20 15:37:59 +01:00
nvrl 169f3f9c37 Merge pull request #9 from narrrl/feat/persistent-pictures
feat: keep thumbnails and artwork in the shared picture cache
2026-11-20 14:19:33 +01:00
nvrl c4b0165f7d feat: keep thumbnails and artwork in the shared picture cache
Proton thumbnails (desktop and Android) and provider artwork go through
pstr_core::pictures, a thin layer over proton-media-rs ImageCache: a
256 MiB budget each with least recently used eviction, entries a crash
cannot leave half-written, and hashed paths so no share id, link id or
URL reaches the filesystem. Before, both directories grew without limit
and the desktop wrote entries in place.

The stores live in cache/thumbnails and cache/artwork; the flat thumbs
and posters directories of earlier versions are deleted on first use,
so each picture is downloaded once more.
2026-11-20 14:18:57 +01:00
nvrl f7f86fef53 Merge pull request #8 from narrrl/refactor/proton-media-rs
refactor(stream): block maps, single flight and disk cache from proton-media-rs
2026-11-20 13:18:52 +01:00
nvrl f786bf489f Merge pull request #7 from narrrl/refactor/proton-base-rs
refactor(core): migrations and atomic config writes from proton-base-rs
2026-11-20 13:00:17 +01:00
nvrl b23614f2ff refactor(stream): block maps, single flight and disk cache from proton-media-rs
pstr-stream keeps its BlockKey-keyed DiskCache as a thin wrapper over
proton_media_rs::DiskCache, with the node UID as the file identity, so
caches written by earlier versions are adopted unchanged.
2026-11-20 12:59:36 +01:00
nvrl c97072e633 Merge pull request #6 from narrrl/refactor/proton-rs
refactor(core): keep secrets through proton-auth-rs; rusqlite 0.41
2026-11-20 12:27:26 +01:00
nvrl 7354a59636 refactor(core): migrations and atomic config writes from proton-base-rs
The catalog migrates through proton_base_rs::Schema with the same 14 steps
and refuses a newer database before any pragma touches the file.
write_json now uses proton_base_rs::atomic::write: a unique temporary file
per write, and config files readable by the owner only.
2026-11-20 12:10:17 +01:00
nvrl 9cebd1fe0f refactor(core): keep secrets through proton-auth-rs; rusqlite 0.41
The desktop credential store is now proton-auth-rs, shared with
proton-drive-linux and Proton Gallery, instead of keyring 3 and a local
chunking module. It reads the entries keyring 3 wrote and the chunk
header this app wrote, so saved shares and the account session survive
the move. It also reconnects once when the Secret Service restarts.

KeyringSecretStore becomes pstr_core::keyring_secrets(), one store per
process. Android and iOS keep their own SecretStore through the bridge.

rusqlite goes from 0.32 to 0.41: the suite links one bundled SQLite.
2026-11-20 12:01:55 +01:00
nvrl 3f028fa4cc fix(android): drop the activity label that only repeats the app's
Lint's RedundantLabel failed the Android checks of the v2.1.0 release.
2026-11-18 03:02:34 +01:00
nvrl c0298dab38 chore(version + deps) 2026-11-18 02:01:30 +01:00
nvrl 3d6aa3c64c feat(branding) logo + app icon 2026-11-18 01:44:14 +01:00
nvrl a475ad3575 docs: 2.0 screenshots of the library, the whole library and a title page 2026-10-31 14:38:47 +01:00
nvrl da13f0547e chore(release): bump version to 2.0.1 2026-10-31 14:14:45 +01:00
nvrl 4ca57d9449 fix(android): a chooser in the player no longer closes on its own
The episode, track, speed, chapter and sleep choosers and the More menu
live inside the player's controls, and the controls hide four seconds
after they come up while the video plays. Hiding them took the open
chooser with them, so a sheet being picked from closed at what looked
like random. The controls now hold still while a chooser is open.
2026-10-31 14:12:28 +01:00
nvrl c9925b4b09 chore(release): bump version to 2.0.0 2026-10-31 03:42:32 +01:00
nvrl fe69d2fae4 fix(android): clear the two lint errors that failed the Android build
The banner height came from Configuration.screenHeightDp, which lint now
rejects in favour of LocalWindowInfo's container size; the four phone
library screenshots move by a pixel with it. The mood colour scaled its
picture with Bitmap.createScaledBitmap where lint asks for the KTX
Bitmap.scale.
2026-10-31 03:42:32 +01:00
nvrl 3fe4900337 fix(android,ios): the track tick moves when a track is chosen, and no file inherits another's languages
Choosing an audio or subtitle track read the track list back before mpv
had made the switch, so the tick stayed on the old track until the next
poll. The tick now moves on the choice, and the list is read again
300 ms later to confirm it.

On Android, `load` set `alang` and `slang` only when they were not
empty. mpv keeps both across `loadfile`, so a file with no language
preference took the previous file's. Both are now set on every load.
This closes the last open item of B41.
2026-10-31 03:26:39 +01:00
nvrl 973a8f2749 feat(app,android,ios): swipe gestures, touch lock and sleep timer
On Android and iOS a swipe up or down on the left half of the picture
sets the brightness and on the right half the volume; a sideways swipe
seeks, showing where it will land and seeking only when the finger
lifts. Swipes that start at the top or bottom edge are left to the
system. Android turns the device's media volume; iOS lets no app do
that, so there the swipe turns the player's own, as its slider does.
Brightness set by a swipe is handed back when the player goes.

Lock touch, in the player's menu, makes the picture ignore touches and
the back gesture; a tap brings up Unlock for a few seconds.

The sleep timer pauses after 30 or 60 minutes, or stops at the end of
the episode playing instead of going on to the next, with no up-next
card. On the desktop it is a panel like the others, behind a moon
button that shows what is left; on Android and iOS it lives with the
player host, so it keeps running with the screen off.
2026-10-31 03:19:04 +01:00
nvrl cf8ee58f6b feat(meta,core,app,android,ios): AniSkip where files have no chapters
Most files that are not fansub releases carry no chapters, so they had no
skip button. AniSkip knows where an episode's opening and ending are, by
MyAnimeList id and episode number. ani.zip sends each entry's MyAnimeList
id and enrichment now keeps it on every episode row; schema v14 adds the
column and marks AniList titles un-enriched, deleting nothing, as v13 did.

When a file has loaded with no chapter naming an opening or ending, and
its length is known, each client asks once, with enrichment on only. The
answer lives as long as the file is open. with_skip_ranges cuts it into
the chapters as chapters named Opening and Ending, so the skip button,
auto-skip, the up-next countdown and the seek bar's marks all work
through the code a chaptered file uses. A file's own opening or ending
always wins over AniSkip's.

PRIVACY.md lists what is sent: the MyAnimeList id, the episode number and
the file's length.
2026-10-31 03:13:41 +01:00
nvrl 466630a9ba feat(app): player side panel, seek HUD and pause screen
The audio, subtitle, speed and chapter pickers were stock popup menus
hanging off the transport. They are now panels down the right of the
picture, in the place and style of the episode list: one at a time, a
whole row per choice, the chosen one filled and ticked, closed by its
button again or by Esc. The library's mini player keeps its menus.

What a key did is shown in the middle of the picture with an icon, and
the volume with a bar. Seeks the same way in quick succession add up, so
three presses of the right arrow read "+ 90 s".

After five seconds paused with the mouse still, the picture dims and the
controls give way to what is playing: the logo or the name, the episode,
and its synopsis, or the show's when the episode has none. Moving the
mouse brings the controls back.
2026-10-31 02:52:55 +01:00
nvrl a3bc9023c7 fix(android): the banner no longer stops half way through a turn
The turn was a LaunchedEffect keyed on the pager's current page, and the
current page flips half way through a scroll. The effect restarted there,
cancelling its own animation and leaving two titles side by side until
the next swipe. It is keyed on the settled page now.
2026-10-31 02:41:22 +01:00
nvrl 7bfebc5fd5 feat(meta,core,app,android,ios): cast and trailer
AniList's fragment now asks for the first ten characters, main roles
first, with their Japanese voice actor, and for the trailer's site and
id. Both are stored in the existing details JSON as TitleDetails.cast and
.trailer with serde defaults, so no migration is needed and details
stored before them still read. The details REVISION goes to 2, so a
stored match is refetched by its id on the next metadata run and the
cast fills in without anyone matching the title again.

The title page shows a Cast row of round portraits with the character's
name over the actor's. Clicking a tile opens the Person browse page for
that actor, which now also admits voice actors, and search counts them
under People and studios. A Trailer button opens the YouTube or
Dailymotion page in the browser; the app itself makes no request to
either, and an unknown site or an id with odd characters gives no link.
2026-10-31 01:56:41 +01:00
nvrl 87ccaf26e1 feat(app,android,ios): search across episodes and people
A search now also finds, with posters and descriptions on, the directors
and studios and the genres whose names hold it, as chips that open their
page, and the episodes whose provider names hold it, which play from the
result (pstr_core::discover::find). The titles it found follow under
their own heading.

The last eight searches are kept in recent-searches.json on this device
only (pstr_core::recent), written only when a search led somewhere, and
offered under the empty search box with a way to clear them. The bridge
exposes search_extras, recent_searches, remember_search and
forget_searches.

On Android and iOS the library's titles are now the whole library
whatever is searched for; the grid narrows through the arrangement, as
it already did. A title opened from an episode result can then always be
shown, and History and Downloads no longer shrink to the search.
2026-10-30 23:07:51 +01:00
nvrl fafe0c3087 feat(core,app,android,ios): more like this and browse by genre, studio, person
pstr_core::discover scores every title against another by shared
director, studio, genres, leading tags and format, leaves out its own
franchise and keeps one title per other franchise. It drives a "More
like this" row under a title's episodes and, seeded by the title most
recently watched to the end, a "Because you watched" row on the library
of titles not yet started.

Genre chips on the title page now open a page of every title with that
genre, and the studios and director move from the line of facts onto
chips of their own that do the same. The desktop has a Browse page whose
back link returns to the title; Android and iOS show it over the library
pane. The bridge exposes more_like, browse and facet_kind.

Also moves a doc comment the My List commit left on the wrong function.
2026-10-30 22:46:08 +01:00
nvrl f66faf6b75 feat(core,app,android,ios): My List, synced, and New badges with new-episode rows
My List is a list of titles to watch later, kept in my-list.json by
title key (pstr-core::mylist) and synced as one list/<key> register per
title, so an add or a removal on one device reaches every other. A list
file that will not parse is never written over: changing the list is
refused instead. It is a filter, a row on the library, a button on the
banner and the title page, and an entry in each tile's menu.

pstr-core::news reads node_first_seen against each share's first crawl,
so a newly added share does not badge its whole library. A title that
arrived in the last two weeks and was never played is New; a series
being watched counts the unwatched episodes that arrived after it was
last played ("3 new"). They fill the tile badge and the "New episodes"
and "Recently added" rows. shelves::home puts every row in one order
for all three apps, and a shelf tile of an airing show shows a
countdown ("Ep 8 · in 2 d").

The bridge gains TitleRecord.on_list and .badge, set_on_list, the
MyList filter, airing_countdown and SyncRecord.list_changed.
2026-10-30 22:15:51 +01:00
nvrl cd9e8eea81 feat(app,android,ios): status, season dropdown, watched ticks
A title page now says where the show stands as a chip beside the
quality marks: Airing with the day the next episode comes out, Finished,
Upcoming, On hiatus or Cancelled. The words come from
TitleDetails::status_label, which the bridge hands the phones as
TitleRecord.status; the airing note leaves the line of facts.

A show with more than five seasons picks its season from a drop-down
rather than a row of pills that ran off the page, and a watched
episode's still carries a tick in its corner as well as the mark at the
end of its row.
2026-10-30 21:34:47 +01:00
nvrl c026f81283 feat(android,ios): parallax title page with a sticky bar
On a phone the backdrop at the top of a title page now moves at half
the speed of the page scrolling over it, and the back button sits in a
bar that fills in with the title's name once the backdrop has gone, so
a long episode list still says whose it is. The fade into the page is
tinted with the backdrop's colour, as on the library's banner.

iOS keeps its slide in from the edge: the zoom transition needs a
NavigationStack, and the title page is shown over the library by hand.
2026-10-30 21:22:56 +01:00
nvrl c6d303f269 feat(app,android,ios): full-bleed hero carousel with ambient colour
The library's banner now runs edge to edge and turns through up to five
titles: the one watched last, then titles with a wide picture, starting
from a different one each day. It moves on every eight seconds, holds
still under the pointer, and has dots to pick a title. A part-watched
title shows how far in the viewer is under its buttons.

The veils over the banner and over a title page's band are tinted with
the picture's own colour. The weighting and the veil live in
pstr_core::appearance (mood, mood_veil), so the desktop and both phones,
which reach them through the bridge, land on the same colour.

On Android the banner is a HorizontalPager under a clear bar that fills
in as it scrolls away; iOS uses a paged TabView the same way.
2026-10-30 21:19:37 +01:00
nvrl 255e463fc8 feat(app,android,ios): display type, artwork fade-in, shimmer, lifting tiles and paged shelves
A first pass at making the three clients look like a streaming app rather
than a file browser, with no new data behind it.

- Type: a Hero rung (34) set in Inter Display Bold, the optical size Inter
  draws for large text, for the banner's name and a title page's name where
  no logo stands in. Desktop `Role::Hero` and `theme::display`; Android and
  iOS `displayLarge`, at a tighter 1.1 leading. The font has its private use
  mappings stripped like the other two cuts.
- Artwork fades in over its skeleton on Android and iOS, as it already did
  on desktop cards; art already decoded draws at once. Desktop episode
  stills and logos fade in too.
- Skeletons shimmer: a soft diagonal highlight instead of a pulse.
- Desktop tiles lift towards the viewer under the pointer, capped so a
  lifted tile never reaches its neighbour, and keyboard focus gets a ring
  of its own.
- Desktop shelves share one `ui::shelf`: edges fade into the page and, under
  the pointer, round buttons page the row along.
- Genres are chips on Android and iOS; quality (4K, HDR, 10-bit, Dual audio)
  moves out of the facts line into small outlined marks on all three.
- Desktop title page and hero buttons use a tonal style beside the accent
  one, and the player's top bar a dark glass style, instead of egui's stock
  buttons. Episode numbers leave monospace for the type ramp.
- The phone players' top and bottom bars are gradients rather than flat
  bands, and a double-tap seek is felt as well as seen.
2026-10-30 20:36:09 +01:00
nvrl 3ebfd1a57b feat(app,android,ios): a blurred poster where a title has no wide art
A title with no fanart, banner or backdrop drew its poster cropped to the
band's shape across the title page and the library's banner: a blown-up
slice of the middle of it, which read as broken. Now the poster is
squeezed to 64x36 and blurred once when it is fetched, the cache keeps
that wash, and it is stretched across the band. The library's banner
stands the sharp poster at its right over it. Android blurs the poster
it already had (Android 12 and later; older versions decode it tiny),
and iOS likewise.

METADATA.md also records the quality badges of the commit before.
2026-10-29 16:59:46 +01:00
nvrl f4c08d03c7 feat(core,app,android,ios): quality badges from file names
Release names say what their files are — 2160p, HDR, 10-bit, Dual-Audio —
and nothing showed it. naming::quality reads those words, whatever they
are separated by, and Title::quality keeps what more than half a title's
files state, so one odd special does not mark a show down. The facts line
of a title's page ends with them: 4K, 1080p, HDR, 10-bit, Dual audio.
Release groups' names are never read.
2026-10-29 16:56:19 +01:00
nvrl a7b87cdc79 feat(meta,app,android,ios,cli): film backdrops and logos from TMDB by id
TVDB has no films, so ani.zip has no fanart or logo for one, and most of
the titles in a real library with nothing wide to draw were films. ani.zip
does name the TMDB entry of every AniList match. With a TMDB key stored
and AniList chosen, an entry left without a backdrop or a logo is asked
for /{movie,tv}/{id}/images: one request, by id, so no title name goes to
TMDB. A bare backdrop and a PNG logo in the viewer's language are
preferred, and a failure there only costs the art.

The TMDB key field is now offered with either provider, labelled optional
with AniList. TMDB as the provider fetches its logo the same way, and
backdrops at w1280 rather than w780. A forced run re-enriches hand-picked
titles too, so saving a key and matching everything again reaches them.
2026-10-29 16:50:01 +01:00
nvrl 70952fa7ca feat(core): episode titles from dotted release names
Scene releases name the episode in dotted words before their tags:
Game.of.Thrones.S01E01.Winter.Is.Coming.2160p... Read the words up to the
first quality, source or codec tag; a dotted run that no tag ends is not taken.
2026-10-29 16:33:16 +01:00
nvrl 3ca431feca feat(core,meta,app,android,ios,cli): TVmaze for the shows AniList does not have
With AniList chosen, a title AniList has no match for is now searched on
TVmaze, keyless, before it is given up on. One provider for the whole library
left live-action shows in a share of anime unmatched, and switching to TMDB
would have dropped every AniList match, chain and shelf.

The service holds a chain of providers. A match is stored under the provider
that gave it, and enrichment and refreshes go to that provider; a miss is
stored under the last provider asked, and is_fresh only trusts a miss from the
end of the chain, so AniList misses stored before this are asked again at once.
A provider failure still ends the lookup instead of falling through.

The hand matcher searches every provider in the chain and labels each result
with its source. TVmaze is never offered in the settings and is not asked
about titles known to be films.
2026-10-29 16:33:16 +01:00
nvrl bb5a6638c4 feat(core,meta,app,android,ios): title logos and runtimes
ani.zip sent each series' TVDB clear logo and every episode's running
time from the start, and neither was kept. Enrichment now stores the logo
in title_metadata.logo_url (kept across a refresh of the same entry, like
the fanart) and episode runtimes in episode_metadata.runtime, TVDB's
first and AniDB's length after it. AniList's duration lands in
TitleDetails::runtime; TMDB episode runtimes are kept too.

Schema v13 adds the two columns and marks AniList titles un-enriched
without deleting anything. TitleDetails::revision lets details written
before runtime existed refetch by id while the old ones stay on screen,
instead of blanking them in the migration as v10 did.

Clear logos are padded to a square, so each client crops them to their
visible pixels before drawing. The logo replaces the name on the
library's banner and the title page (not on a light theme's title page,
where lettering made for dark art can vanish). Episode rows show how long
they run, in place of the file size on Android and iOS; a film's runtime
joins its line of facts.
2026-10-29 16:11:24 +01:00
nvrl b5ba59b41d fix(android,ios): the player names the episode, not its file
The header under the episode's numbering showed `Episode::detail`, which
falls back to the file name — `[Judas] Chainsaw Man - S01E01.mkv` on a
phone, where the desktop shows `Dog & Chainsaw`. It now shows the
provider's name for the episode, else the one the file name gave it, and
nothing rather than the file name: the release group's tag is no caption,
and it is what a screenshot of the player would carry away.
2026-10-29 15:44:55 +01:00
nvrl 79f0d74e1a chore(release): bump version to 1.7.0 2026-10-28 02:43:25 +01:00