mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-10-22 07:41:58 +02:00
Use media item name as title when available (#461)
Fallback to filename if missing
This commit is contained in:
@@ -18,7 +18,7 @@ class JellyfinMediaSource(
|
||||
subtitleStreamIndex: Int? = null,
|
||||
) {
|
||||
val id: String = requireNotNull(sourceInfo.id) { "Media source has no id" }
|
||||
val name: String = sourceInfo.name.orEmpty()
|
||||
val name: String = item?.name ?: sourceInfo.name.orEmpty()
|
||||
|
||||
val playMethod: PlayMethod = when {
|
||||
sourceInfo.supportsDirectPlay -> PlayMethod.DIRECT_PLAY
|
||||
|
||||
Reference in New Issue
Block a user