mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
actual fix for #437 and Do Not Replace Lyrics option
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user