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.
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.
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.
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
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.
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
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.