mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-03 16:41:26 +01:00
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.
This commit is contained in:
1 parent
c026f81283
commit
cd9e8eea81
11 files changed
+452
-59
No files matched your search
@@ -620,6 +620,10 @@ pub struct TitleRecord {
|
||||
/// `Dual audio` — in that order. Never a release group's name.
|
||||
#[uniffi(default = [])]
|
||||
pub quality: Vec<String>,
|
||||
/// `Airing`, `Finished`, `Upcoming`, `On hiatus` or `Cancelled`: the
|
||||
/// shared `TitleDetails::status_label`.
|
||||
#[uniffi(default = None)]
|
||||
pub status: Option<String>,
|
||||
}
|
||||
|
||||
/// Playback preferences that outlive one file, one title and one launch.
|
||||
@@ -3684,6 +3688,9 @@ fn title_record(
|
||||
directors: details.map_or_else(Vec::new, |details| details.directors.clone()),
|
||||
tags: details.map_or_else(Vec::new, |details| details.tags.clone()),
|
||||
airing: details.is_some_and(|details| details.is_airing()),
|
||||
status: details
|
||||
.and_then(|details| details.status_label())
|
||||
.map(str::to_owned),
|
||||
next_episode: None,
|
||||
next_airing_at: None,
|
||||
franchise: Vec::new(),
|
||||
|
||||
Reference in new issue
Block a user