Skip to content

Commit

Permalink
Remove catalog stations
Browse files Browse the repository at this point in the history
  • Loading branch information
rudrankriyam committed Jun 19, 2024
1 parent ae45843 commit 230e557
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions Sources/MusadoraKit/Catalog/CatalogStation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,36 +219,6 @@ public extension MCatalog {
return personalStation
}

static func discoveryStation() async throws -> Station {
let stations = try await MRecommendation.defaultStations()

guard let discoveryStation = stations.first(where: { $0.name == "Discovery Station" }) else {
throw MusadoraKitError.notFound(for: "discovery station")
}

return discoveryStation
}

static func heartbreakStation() async throws -> Station {
let stations = try await MRecommendation.defaultStations()

guard let heartbreakStation = stations.first(where: { $0.id.rawValue == "ra.q-MNDEBw" }) else {
throw MusadoraKitError.notFound(for: "heartbreak station")
}

return heartbreakStation
}

static func loveStation() async throws -> Station {
let stations = try await MRecommendation.defaultStations()

guard let loveStation = stations.first(where: { $0.id.rawValue == "ra.q-MO3UCQ" }) else {
throw MusadoraKitError.notFound(for: "love station")
}

return loveStation
}

internal static func personalStationURL(for storefront: String) throws -> URL {
var components = AppleMusicURLComponents()
components.path = "catalog/\(storefront)/stations"
Expand Down

0 comments on commit 230e557

Please sign in to comment.