Skip to content

Commit

Permalink
fix: catalog tags
Browse files Browse the repository at this point in the history
  • Loading branch information
muedsa committed Dec 26, 2024
1 parent 0271031 commit a4126ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class MediaCatalogService(
if (genre != null) {
setQueryParameter("genre", genre)
}
tags.forEach { addQueryParameter("tag", it) }
tags.forEach { addQueryParameter("tags[]", it) }
}
.build()
).feignChrome()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.muedsa.tvbox.ha.service

import com.muedsa.tvbox.api.data.MediaCatalogOption
import com.muedsa.tvbox.ha.TestOkHttpClient
import com.muedsa.tvbox.ha.checkMediaCard
import kotlinx.coroutines.test.runTest
Expand All @@ -27,8 +26,12 @@ class MediaCatalogServiceTest {
@Test
fun catalog_test() = runTest {
val config = service.getConfig()
val selectedOptions = listOf(
config.catalogOptions[0].copy(items = listOf(config.catalogOptions[0].items[0])),
config.catalogOptions[1].copy(items = listOf(config.catalogOptions[1].items[5]))
)
val pagingResult = service.catalog(
options = MediaCatalogOption.getDefault(config.catalogOptions),
options = selectedOptions,
loadKey = config.initKey,
loadSize = config.pageSize
)
Expand Down

0 comments on commit a4126ea

Please sign in to comment.