feat: enrich AniList episode metadata rows

This commit is contained in:
2026-10-25 17:01:14 +01:00
parent e328ff3883
commit a5aea5adcf
2 changed files with 21 additions and 1 deletions
+19 -1
View File
@@ -281,7 +281,25 @@ impl Screen {
details.push(format!("{}:{:02}", seconds / 60, seconds % 60));
}
if self.provider == Provider::AniList {
details.push("UNVERIFIED · sub".into());
if let Some(minutes) = media
.metadata
.get("episode_duration_minutes")
.and_then(Value::as_u64)
.filter(|minutes| *minutes > 0)
{
details.push(format!("{minutes} min avg"));
}
if let Some(format) =
media.metadata.get("format").and_then(Value::as_str)
{
details.push(safe(format));
}
if let Some(year) =
media.metadata.get("season_year").and_then(Value::as_u64)
{
details.push(format!("{year} series"));
}
details.push("sub · UNVERIFIED".into());
}
let details = details.join(" · ");
let mut metadata = title.clone();