diff --git a/Projects/Modules/Utility/Sources/Manager/PreferenceManager.swift b/Projects/Modules/Utility/Sources/Manager/PreferenceManager.swift index 47ce70289..c3f1df5e6 100644 --- a/Projects/Modules/Utility/Sources/Manager/PreferenceManager.swift +++ b/Projects/Modules/Utility/Sources/Manager/PreferenceManager.swift @@ -22,7 +22,7 @@ public final class PreferenceManager { case ignoredPopupIDs // 다시보지 않는 팝업 IDs case readNoticeIDs // 이미 읽은 공지 IDs case pushNotificationAuthorizationStatus // 기기알림 on/off 상태 - case playWithYoutubeMusic // 유튜브뮤직으로 재생할지 여부 + case songPlayPlatformType // 유튜브뮤직으로 재생할지 여부 } @UserDefaultWrapper(key: Constants.recentRecords.rawValue, defaultValue: nil) @@ -46,7 +46,7 @@ public final class PreferenceManager { @UserDefaultWrapper(key: Constants.pushNotificationAuthorizationStatus.rawValue, defaultValue: nil) public static var pushNotificationAuthorizationStatus: Bool? - @UserDefaultWrapper(key: Constants.playWithYoutubeMusic.rawValue, defaultValue: YoutubePlayType.youtube) + @UserDefaultWrapper(key: Constants.songPlayPlatformType.rawValue, defaultValue: YoutubePlayType.youtube) public static var songPlayPlatformType: YoutubePlayType? } diff --git a/Projects/Modules/Utility/Sources/Player/WakmusicYoutubePlayer.swift b/Projects/Modules/Utility/Sources/Player/WakmusicYoutubePlayer.swift index 07d1eb7a0..8ec13ed3d 100644 --- a/Projects/Modules/Utility/Sources/Player/WakmusicYoutubePlayer.swift +++ b/Projects/Modules/Utility/Sources/Player/WakmusicYoutubePlayer.swift @@ -11,7 +11,7 @@ public struct WakmusicYoutubePlayer: WakmusicPlayer { private let youtubeURLGenerator: any YoutubeURLGeneratable private let ids: [String] private var openerPlatform: OpenerPlatform { - let platform = PreferenceManager.playWithYoutubeMusic ?? .youtube + let platform = PreferenceManager.songPlayPlatformType ?? .youtube switch platform { case .youtube: return .youtube case .youtubeMusic: return .youtubeMusic