Use Romaji Lyrics when avaible with Genius toggle. (#227)

* Update GeniusLyricsRepository.swift

* Update GeniusLyricsRepository.swift

* Update EeveeSettingsViewController+LyricsSections.swift

* Update UserDefaults+Extension.swift

* Update GeniusLyricsRepository.swift

* Update GeniusLyricsRepository.swift

* Update GeniusLyricsRepository.swift

* Update UserDefaults+Extension.swift

* Update EeveeSettingsViewController+LyricsSections.swift

* Update EeveeSettingsViewController+LyricsSections.swift
This commit is contained in:
Luca LeBlanc
2024-07-05 07:19:55 +03:00
committed by GitHub
parent 06766d5b47
commit f79ee3d51d
3 changed files with 49 additions and 7 deletions
@@ -7,6 +7,7 @@ extension UserDefaults {
private static let lyricsSourceKey = "lyricsSource"
private static let musixmatchTokenKey = "musixmatchToken"
private static let geniusFallbackKey = "geniusFallback"
private static let romanizedLyricsKey = "romanizedLyrics"
private static let fallbackReasonsKey = "fallbackReasons"
private static let darkPopUpsKey = "darkPopUps"
private static let patchTypeKey = "patchType"
@@ -43,6 +44,15 @@ extension UserDefaults {
defaults.set(fallback, forKey: geniusFallbackKey)
}
}
static var romanizedLyrics: Bool {
get {
defaults.object(forKey: romanizedLyricsKey) as? Bool ?? false
}
set (romanized) {
defaults.set(romanized, forKey: romanizedLyricsKey)
}
}
static var fallbackReasons: Bool {
get {