don't translate to original language

This commit is contained in:
eevee committed 2024-07-14 13:24:46 +03:00
1 parent c407874e93
commit 828f8d36bc
1 file changed
+2 -1
@@ -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)!