fix: cannot play from specific downloaded episode
This commit is contained in:
parent
3ad08899e0
commit
de34d6e6e5
1 changed files with 3 additions and 1 deletions
|
@ -165,7 +165,9 @@ class JellyfinRepositoryOfflineImpl(
|
||||||
offline: Boolean,
|
offline: Boolean,
|
||||||
): List<FindroidEpisode> =
|
): List<FindroidEpisode> =
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
database.getEpisodesBySeasonId(seasonId).map { it.toFindroidEpisode(database, jellyfinApi.userId!!) }
|
val items = database.getEpisodesBySeasonId(seasonId).map { it.toFindroidEpisode(database, jellyfinApi.userId!!) }
|
||||||
|
if (startItemId != null) return@withContext items.dropWhile { it.id != startItemId }
|
||||||
|
items
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun getMediaSources(itemId: UUID, includePath: Boolean): List<FindroidSource> =
|
override suspend fun getMediaSources(itemId: UUID, includePath: Boolean): List<FindroidSource> =
|
||||||
|
|
Loading…
Reference in a new issue