File tree Expand file tree Collapse file tree
app/src/main/java/org/jellyfin/androidtv/data/repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,12 +10,17 @@ object RatingIconProvider {
1010 }
1111
1212 fun getIcon (baseUrl : String? , source : String , scorePercent : Int? = null): RatingIcon ? {
13+ // Prefer local drawable when available (always works, no plugin dependency)
14+ val localIcon = getLocalFallbackIcon(source, scorePercent)
15+ if (localIcon != null ) return localIcon
16+
17+ // Fall back to server-hosted icon (requires Moonfin plugin)
1318 if (baseUrl != null ) {
1419 getServerIconFile(source, scorePercent)?.let { file ->
1520 return RatingIcon .ServerUrl (" $baseUrl /Moonfin/Assets/$file " )
1621 }
1722 }
18- return getLocalFallbackIcon(source, scorePercent)
23+ return null
1924 }
2025
2126 private fun getServerIconFile (source : String , scorePercent : Int? ): String? = when (source) {
You can’t perform that action at this time.
0 commit comments