mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-16 23:12:12 +00:00
nullable receiver in TraktEpisodeMappingService
This commit is contained in:
parent
7a0cc2c03b
commit
263dd8db70
1 changed files with 3 additions and 4 deletions
|
|
@ -198,10 +198,9 @@ object TraktEpisodeMappingService {
|
|||
// Find the addon episode entry
|
||||
val addonEntry = addonEpisodes.firstOrNull {
|
||||
it.season == requestedSeason && it.episode == requestedEpisode
|
||||
} ?: if (!requestedVideoId.isNullOrBlank()) {
|
||||
addonEpisodes.firstOrNull { it.videoId == requestedVideoId }
|
||||
} else null
|
||||
?: return null
|
||||
} ?: addonEpisodes.firstOrNull {
|
||||
!requestedVideoId.isNullOrBlank() && it.videoId == requestedVideoId
|
||||
} ?: return null
|
||||
|
||||
// Try title match first
|
||||
val titleToMatch = addonEntry.title?.takeIf { it.isNotBlank() } ?: requestedTitle
|
||||
|
|
|
|||
Loading…
Reference in a new issue