mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user