Take videoid from meta for track services in progress items

This commit is contained in:
skoruppa 2026-07-31 23:20:45 +02:00
parent abbfb62b4e
commit ebbc9709fc

View file

@ -27,6 +27,11 @@ internal fun enrichWatchProgressEntry(
null
}
return current.copy(
videoId = if (current.source != WatchProgressSourceLocal && episodeVideo != null) {
episodeVideo.id.takeIf(String::isNotBlank) ?: current.videoId
} else {
current.videoId
},
title = meta.name.takeIf(String::isNotBlank) ?: current.title,
poster = meta.poster?.takeIf(String::isNotBlank) ?: current.poster,
background = meta.background?.takeIf(String::isNotBlank) ?: current.background,