diff --git a/app/src/main/java/pl/lambada/songsync/data/remote/lyrics_providers/others/NeteaseAPI.kt b/app/src/main/java/pl/lambada/songsync/data/remote/lyrics_providers/others/NeteaseAPI.kt index 47c8127..c46e22c 100644 --- a/app/src/main/java/pl/lambada/songsync/data/remote/lyrics_providers/others/NeteaseAPI.kt +++ b/app/src/main/java/pl/lambada/songsync/data/remote/lyrics_providers/others/NeteaseAPI.kt @@ -10,7 +10,6 @@ import kotlinx.coroutines.withContext import kotlinx.serialization.ExperimentalSerializationApi import pl.lambada.songsync.data.EmptyQueryException import pl.lambada.songsync.data.InternalErrorException -import pl.lambada.songsync.data.NoTrackFoundException import pl.lambada.songsync.domain.model.SongInfo import pl.lambada.songsync.domain.model.lyrics_providers.others.NeteaseLyricsResponse import pl.lambada.songsync.domain.model.lyrics_providers.others.NeteaseResponse @@ -68,7 +67,7 @@ class NeteaseAPI { } val responseBody = response.bodyAsText(Charsets.UTF_8) - if (responseBody == "[]" || response.status.value !in 200..299) + if (responseBody == "[]" || response.status.value !in 200..299 || responseBody.contains("\"songCount\":0")) return null val neteaseResponse: NeteaseResponse