diff --git a/Sources/EeveeSpotify/Lyrics/Repositories/GeniusLyricsRepository.swift b/Sources/EeveeSpotify/Lyrics/Repositories/GeniusLyricsRepository.swift index deb66b9..22f04c9 100644 --- a/Sources/EeveeSpotify/Lyrics/Repositories/GeniusLyricsRepository.swift +++ b/Sources/EeveeSpotify/Lyrics/Repositories/GeniusLyricsRepository.swift @@ -27,7 +27,6 @@ struct GeniusLyricsRepository: LyricsRepository { if !query.isEmpty { let queryString = query.queryString - stringUrl += "?\(queryString)" } diff --git a/Sources/EeveeSpotify/Lyrics/Repositories/LrclibLyricsRepository.swift b/Sources/EeveeSpotify/Lyrics/Repositories/LrclibLyricsRepository.swift index c7736cf..f0c80b3 100644 --- a/Sources/EeveeSpotify/Lyrics/Repositories/LrclibLyricsRepository.swift +++ b/Sources/EeveeSpotify/Lyrics/Repositories/LrclibLyricsRepository.swift @@ -21,7 +21,6 @@ struct LrcLibLyricsRepository: LyricsRepository { if !query.isEmpty { let queryString = query.queryString - stringUrl += "?\(queryString)" } diff --git a/Sources/EeveeSpotify/Lyrics/Repositories/MusixmatchLyricsRepository.swift b/Sources/EeveeSpotify/Lyrics/Repositories/MusixmatchLyricsRepository.swift index d4582fb..aa0e66e 100644 --- a/Sources/EeveeSpotify/Lyrics/Repositories/MusixmatchLyricsRepository.swift +++ b/Sources/EeveeSpotify/Lyrics/Repositories/MusixmatchLyricsRepository.swift @@ -24,10 +24,7 @@ class MusixmatchLyricsRepository: LyricsRepository { finalQuery["usertoken"] = UserDefaults.musixmatchToken finalQuery["app_id"] = UIDevice.current.musixmatchAppId - let queryString = finalQuery.queryString.addingPercentEncoding( - withAllowedCharacters: .urlHostAllowed - )! - + let queryString = finalQuery.queryString stringUrl += "?\(queryString)" let request = URLRequest(url: URL(string: stringUrl)!) diff --git a/Sources/EeveeSpotify/Lyrics/Repositories/PetitLyricsRepository.swift b/Sources/EeveeSpotify/Lyrics/Repositories/PetitLyricsRepository.swift index f4415b7..d68efdb 100644 --- a/Sources/EeveeSpotify/Lyrics/Repositories/PetitLyricsRepository.swift +++ b/Sources/EeveeSpotify/Lyrics/Repositories/PetitLyricsRepository.swift @@ -22,9 +22,7 @@ struct PetitLyricsRepository: LyricsRepository { var request = URLRequest(url: URL(string: url)!) request.httpMethod = "POST" - request.httpBody = finalData.queryString.addingPercentEncoding( - withAllowedCharacters: .urlHostAllowed - )!.data(using: .utf8) + request.httpBody = finalData.queryString.data(using: .utf8) let semaphore = DispatchSemaphore(value: 0) var data: Data?