This commit is contained in:
Hariharan Mudaliar 2025-07-13 22:16:02 +05:30
commit 13a2ff0e20
67 changed files with 395 additions and 93 deletions

View file

@ -1,6 +1,6 @@
//
// AppleMusicController.swift
// boringNotch
// DynamicIsland
//
// Created by Alexander Greco on 2025-03-29.
//

View file

@ -1,6 +1,6 @@
//
// MediaControllerProtocol.swift
// boringNotch
// DynamicIsland
//
// Created by Alexander Greco on 2025-03-29.
//

View file

@ -1,6 +1,6 @@
//
// NowPlayingController.swift
// boringNotch
// DynamicIsland
//
// Created by Alexander on 2025-03-29.
//

View file

@ -1,6 +1,6 @@
//
// SpotifyController.swift
// boringNotch
// DynamicIsland
//
// Created by Alexander Greco on 2025-03-29.
//

View file

@ -1,6 +1,6 @@
//
// YouTubeMusicController.swift
// boringNotch
// DynamicIsland
//
// Created By Alexander Greco on 2025-03-30.
//
@ -23,7 +23,7 @@ class YouTubeMusicController: MediaControllerProtocol {
private var cancellables = Set<AnyCancellable>()
private var playbackInfoCancellable: AnyCancellable?
private var isAuthenticating = false
private let authQueue = DispatchQueue(label: "com.boringnotch.youtubemusicauth", qos: .background)
private let authQueue = DispatchQueue(label: "com.dynamicisland.youtubemusicauth", qos: .background)
init() {
setupAppStateObservers()
@ -64,7 +64,7 @@ class YouTubeMusicController: MediaControllerProtocol {
}
private func getAccessToken(completion: @escaping (Bool) -> Void) {
guard let url = URL(string: "\(baseURL)/auth/boringNotch") else {
guard let url = URL(string: "\(baseURL)/auth/dynamicIsland") else {
completion(false)
return
}