diff --git a/app/src/main/java/pl/lambada/songsync/data/remote/lyrics_providers/others/LRCLibAPI.kt b/app/src/main/java/pl/lambada/songsync/data/remote/lyrics_providers/others/LRCLibAPI.kt index f09c355..3ac831f 100644 --- a/app/src/main/java/pl/lambada/songsync/data/remote/lyrics_providers/others/LRCLibAPI.kt +++ b/app/src/main/java/pl/lambada/songsync/data/remote/lyrics_providers/others/LRCLibAPI.kt @@ -23,12 +23,12 @@ class LRCLibAPI { suspend fun getSongInfo(query: SongInfo, offset: Int = 0): SongInfo? { val search = withContext(Dispatchers.IO) { URLEncoder.encode( - "${query.songName}", // it doesn't work with artist name and song name together + "${query.songName} ${query.artistName}", StandardCharsets.UTF_8.toString() ) } - if (search == "") + if (search == "+") throw EmptyQueryException() val response = client.get(