mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2024-11-23 05:59:51 +00:00
Media Item HD Attribute Source (#1165)
* Clear todo by using the stream to indicate having HD * Use only media stream
This commit is contained in:
parent
64b22d4e36
commit
c0f8897a5f
@ -22,14 +22,13 @@ extension ItemView {
|
||||
.asAttributeStyle(.outline)
|
||||
}
|
||||
|
||||
// TODO: Have stream indicate this instead?
|
||||
if viewModel.item.isHD ?? false {
|
||||
Text("HD")
|
||||
.asAttributeStyle(.fill)
|
||||
}
|
||||
|
||||
if let mediaStreams = viewModel.selectedMediaSource?.mediaStreams {
|
||||
|
||||
if mediaStreams.hasHDVideo {
|
||||
Text("HD")
|
||||
.asAttributeStyle(.fill)
|
||||
}
|
||||
|
||||
if mediaStreams.has4KVideo {
|
||||
Text("4K")
|
||||
.asAttributeStyle(.fill)
|
||||
|
Loading…
Reference in New Issue
Block a user