Skip to content

Commit

Permalink
don't translate to original language
Browse files Browse the repository at this point in the history
  • Loading branch information
whoeevee committed Jul 14, 2024
1 parent c407874 commit 828f8d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)!
Expand Down

0 comments on commit 828f8d3

Please sign in to comment.