diff --git a/Model/Applications/InvidiousAPI.swift b/Model/Applications/InvidiousAPI.swift index 0693386d..2a3c191b 100644 --- a/Model/Applications/InvidiousAPI.swift +++ b/Model/Applications/InvidiousAPI.swift @@ -123,7 +123,7 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI { content.json.dictionaryValue["videos"]?.arrayValue.map(self.extractVideo) ?? [] } - ["latest", "playlists", "streams", "shorts", "channels", "videos"].forEach { type in + ["latest", "playlists", "streams", "shorts", "channels", "videos", "releases", "podcasts"].forEach { type in configureTransformer(pathPattern("channels/*/\(type)"), requestMethods: [.get]) { (content: Entity) -> ChannelPage in self.extractChannelPage(from: content.json) } diff --git a/Model/Channel.swift b/Model/Channel.swift index 3944a3d8..3f2b4f61 100644 --- a/Model/Channel.swift +++ b/Model/Channel.swift @@ -10,6 +10,8 @@ struct Channel: Identifiable, Hashable { case livestreams case shorts case channels + case releases + case podcasts static func from(_ name: String) -> Self? { let rawValueMatch = allCases.first { $0.rawValue == name } @@ -45,6 +47,10 @@ struct Channel: Identifiable, Hashable { return "1.square" case .channels: return "person.3" + case .releases: + return "square.stack" + case .podcasts: + return "radio" } }