mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-03 16:41:26 +01:00
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.
This commit is contained in:
1 parent
a7b87cdc79
commit
f4c08d03c7
7 files changed
+183
-2
No files matched your search
@@ -689,6 +689,8 @@ fn meta_line(title: &Title, found: Option<&TitleMetadata>) -> String {
|
||||
parts.push(format!("{total} on {}", found.provider.label()));
|
||||
}
|
||||
}
|
||||
// Last: what the files are, rather than what the title is.
|
||||
parts.extend(title.quality().badges().into_iter().map(str::to_owned));
|
||||
parts.join(" · ")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user