Releases: rryam/MusanovaKit
Releases · rryam/MusanovaKit
Version 1.0.1
Release Notes: MusanovaKit 1.0.0
Update tests.
Version 1.0.0
Release Notes: MusanovaKit 1.0.0
New Features
- Lyrics Fetching: Added support for retrieving song lyrics using Apple Music's API.
How to Use
- Obtain a privileged developer token from the Apple Music website.
- Set the token as an environment variable named "DEVELOPER_TOKEN".
Example Usage
let id = MusicItemID("1156786545")
let song = try await MCatalog.song(id: id)
let lyrics = try await MCatalog.lyrics(for: song, developerToken: MusanovaKit.priviledgedDeveloperToken!)
print(lyrics)
Important Notice
- Do not use in production environments.
- I assume no liability for any issues arising from the use of this feature.
Feedback
I welcome your feedback on this new feature. Please report any issues or suggestions by creating a new issue.
Version 0.2.0
New in this release
Added MSummaries.milestones(forYear:musicItemTypes:developerToken:)
Here's an example of how to use it:
do {
let milestones = try await MSummaries.milestones(forYear: 2023, developerToken: "your_developer_token")
for milestone in milestones {
print("ID: \(milestone.id), Listen Time: \(milestone.listenTimeInMinutes)")
print("Date Reached: \(milestone.dateReached), Value: \(milestone.value)")
print("Kind: \(milestone.kind)")
}
} catch {
print(error)
}
Version 0.1.0
New in this release
Added MReplay.searchSummaries(developerToken: "developer_token")
.
Here's an example of how to use it:
do {
let summaries = try await MReplay.searchSummaries(developerToken: "developer_token")
for summary in summaries {
print("Year: \(summary.year), playlist: \(summary.playlist)")
}
} catch {
print(error)
}