Skip to content

Conversation

@lumaa-dev
Copy link
Collaborator

No description provided.

@lumaa-dev lumaa-dev linked an issue Oct 12, 2025 that may be closed by this pull request
@lumaa-dev lumaa-dev linked an issue Oct 12, 2025 that may be closed by this pull request
@lumaa-dev lumaa-dev marked this pull request as draft October 12, 2025 21:30
@lumaa-dev lumaa-dev self-assigned this Oct 15, 2025
@lumaa-dev lumaa-dev added the enhancement New feature or request label Oct 15, 2025
@lumaa-dev lumaa-dev linked an issue Oct 18, 2025 that may be closed by this pull request
Comment on lines 345 to 360
func getCurrentTrack() async -> Track? {
print("Fetching current track")
do {
let data = try await device.sendRequest(endpoint: "playback/now-playing", method: "GET")

if let jsonDict = data as? [String: Any], let info = jsonDict["info"] as? [String: Any] {
return self.getTrack(using: info)
} else {
throw NetworkError.decodingError
}
} catch {
print(error)
}

return nil
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole function is basically redundant since we already have the currentTrack in LyricsView

@lumaa-dev lumaa-dev linked an issue Oct 21, 2025 that may be closed by this pull request
@lumaa-dev lumaa-dev marked this pull request as ready for review October 21, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

app crashing on IOS 26 App Intents don't work when first device is offline Add a shuffle & repeat button Playlists crash in Library Browser

2 participants