mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
don't translate to original language
This commit is contained in:
@@ -182,7 +182,8 @@ class MusixmatchLyricsRepository: LyricsRepository {
|
||||
)
|
||||
)
|
||||
|
||||
if let subtitleTranslated = subtitle["subtitle_translated"] as? [String: Any],
|
||||
if selectedLanguage != subtitleLanguage,
|
||||
let subtitleTranslated = subtitle["subtitle_translated"] as? [String: Any],
|
||||
let subtitleTranslatedBody = subtitleTranslated["subtitle_body"] as? String,
|
||||
let subtitlesTranslated = try? JSONDecoder().decode(
|
||||
[MusixmatchSubtitle].self, from: subtitleTranslatedBody.data(using: .utf8)!
|
||||
|
||||
Reference in New Issue
Block a user