mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-18 04:30:48 +01:00
Merge pull request #707 from nitehu/fix/search2-result-artist
Fixed Search result to return Artist correctly when ID3 tags are turned off
This commit is contained in:
commit
34fb63c783
@ -13,7 +13,7 @@ fun APISearchResult.toDomainEntity(): SearchResult = SearchResult(
|
|||||||
)
|
)
|
||||||
|
|
||||||
fun SearchTwoResult.toDomainEntity(): SearchResult = SearchResult(
|
fun SearchTwoResult.toDomainEntity(): SearchResult = SearchResult(
|
||||||
this.artistList.map { it.toDomainEntity() },
|
this.artistList.map { it.toIndexEntity() },
|
||||||
this.albumList.map { it.toDomainEntity() },
|
this.albumList.map { it.toDomainEntity() },
|
||||||
this.songList.map { it.toTrackEntity() }
|
this.songList.map { it.toTrackEntity() }
|
||||||
)
|
)
|
||||||
|
@ -50,7 +50,7 @@ class APISearchConverterTest {
|
|||||||
|
|
||||||
with(convertedEntity) {
|
with(convertedEntity) {
|
||||||
artists.size `should be equal to` entity.artistList.size
|
artists.size `should be equal to` entity.artistList.size
|
||||||
artists[0] `should be equal to` entity.artistList[0].toDomainEntity()
|
artists[0] `should be equal to` entity.artistList[0].toIndexEntity()
|
||||||
albums.size `should be equal to` entity.albumList.size
|
albums.size `should be equal to` entity.albumList.size
|
||||||
albums[0] `should be equal to` entity.albumList[0].toDomainEntity()
|
albums[0] `should be equal to` entity.albumList[0].toDomainEntity()
|
||||||
songs.size `should be equal to` entity.songList.size
|
songs.size `should be equal to` entity.songList.size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user