Skip to content

Releases: rryam/MusanovaKit

Version 1.0.1

20 Jun 21:29
820387f
Compare
Choose a tag to compare

Release Notes: MusanovaKit 1.0.0

Update tests.

Version 1.0.0

20 Jun 21:17
f776064
Compare
Choose a tag to compare

Release Notes: MusanovaKit 1.0.0

New Features

  • Lyrics Fetching: Added support for retrieving song lyrics using Apple Music's API.

How to Use

  1. Obtain a privileged developer token from the Apple Music website.
  2. 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

⚠️ This feature is intended for experimental use only.

  • 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

06 Apr 19:34
Compare
Choose a tag to compare

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

06 Apr 14:32
1b85cba
Compare
Choose a tag to compare

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)
}