mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
refactor: remove mediaId parameter from getNextUpEpisodes function
This commit is contained in:
@@ -154,7 +154,7 @@ class JellyfinApiClient @Inject constructor(
|
|||||||
response.content.items
|
response.content.items
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun getNextUpEpisodes(mediaId: UUID): List<BaseItemDto> = withContext(Dispatchers.IO) {
|
suspend fun getNextUpEpisodes(): List<BaseItemDto> = withContext(Dispatchers.IO) {
|
||||||
if (!ensureConfigured()) {
|
if (!ensureConfigured()) {
|
||||||
throw IllegalStateException("Not configured")
|
throw IllegalStateException("Not configured")
|
||||||
}
|
}
|
||||||
@@ -162,7 +162,6 @@ class JellyfinApiClient @Inject constructor(
|
|||||||
userId = getUserId(),
|
userId = getUserId(),
|
||||||
fields = itemFields,
|
fields = itemFields,
|
||||||
enableResumable = true,
|
enableResumable = true,
|
||||||
seriesId = mediaId,
|
|
||||||
)
|
)
|
||||||
val result = api.tvShowsApi.getNextUp(getNextUpRequest)
|
val result = api.tvShowsApi.getNextUp(getNextUpRequest)
|
||||||
Log.d("getNextUpEpisodes", result.content.toString())
|
Log.d("getNextUpEpisodes", result.content.toString())
|
||||||
|
|||||||
Reference in New Issue
Block a user