actual fix for #437 and Do Not Replace Lyrics option

This commit is contained in:
eevee
2024-10-10 17:55:25 +03:00
parent a579a0709c
commit e0fe39d717
20 changed files with 248 additions and 188 deletions
@@ -1,7 +1,6 @@
import Foundation
extension UserDefaults {
private static let defaults = UserDefaults.standard
private static let lyricsSourceKey = "lyricsSource"
@@ -21,11 +20,7 @@ extension UserDefaults {
return LyricsSource(rawValue: rawValue)!
}
if Locale.isInRegion("JP", orHasLanguage: "ja") {
return .petit
}
return .lrclib
return LyricsSource.defaultSource
}
set (newSource) {
defaults.set(newSource.rawValue, forKey: lyricsSourceKey)