From 230e557dafc59610e2107b8d47dda6a77c8d7fb9 Mon Sep 17 00:00:00 2001 From: Rudrank Riyam Date: Wed, 19 Jun 2024 21:29:54 +0530 Subject: [PATCH] Remove catalog stations --- .../MusadoraKit/Catalog/CatalogStation.swift | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/Sources/MusadoraKit/Catalog/CatalogStation.swift b/Sources/MusadoraKit/Catalog/CatalogStation.swift index bc3d12f0..865900ab 100644 --- a/Sources/MusadoraKit/Catalog/CatalogStation.swift +++ b/Sources/MusadoraKit/Catalog/CatalogStation.swift @@ -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"