From 35a43b5bd6784d2b262b5dee2d37ff63c4cd96bf Mon Sep 17 00:00:00 2001 From: alxnull Date: Sun, 8 Jun 2025 13:51:05 +0200 Subject: [PATCH] Fix category & excludeCategory parameter names --- PodcastIndexSharp/Clients/EpisodesClient.cs | 4 ++-- PodcastIndexSharp/Clients/PodcastsClient.cs | 4 ++-- PodcastIndexSharp/Clients/RecentClient.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PodcastIndexSharp/Clients/EpisodesClient.cs b/PodcastIndexSharp/Clients/EpisodesClient.cs index f536f02..588cd9c 100644 --- a/PodcastIndexSharp/Clients/EpisodesClient.cs +++ b/PodcastIndexSharp/Clients/EpisodesClient.cs @@ -79,8 +79,8 @@ public async Task> Random( { new ApiParameter("lang", lang), new ApiParameter("max", max), - new ApiParameter("category", category), - new ApiParameter("excludeCategory", excludeCategory), + new ApiParameter("cat", category), + new ApiParameter("notcat", excludeCategory), new ApiParameter("fulltext", fulltext) }; diff --git a/PodcastIndexSharp/Clients/PodcastsClient.cs b/PodcastIndexSharp/Clients/PodcastsClient.cs index 0e56aec..06aa7e6 100644 --- a/PodcastIndexSharp/Clients/PodcastsClient.cs +++ b/PodcastIndexSharp/Clients/PodcastsClient.cs @@ -56,8 +56,8 @@ public async Task> Trending( new ApiParameter("max", max), new ApiParameter("since", since), new ApiParameter("lang", lang), - new ApiParameter("category", category), - new ApiParameter("excludeCategory", excludeCategory) + new ApiParameter("cat", category), + new ApiParameter("notcat", excludeCategory) }; var trendingResponse = await SendRequest("podcasts/trending", parameters); diff --git a/PodcastIndexSharp/Clients/RecentClient.cs b/PodcastIndexSharp/Clients/RecentClient.cs index 59f0ca8..e1b146e 100644 --- a/PodcastIndexSharp/Clients/RecentClient.cs +++ b/PodcastIndexSharp/Clients/RecentClient.cs @@ -41,8 +41,8 @@ public async Task> Podcasts( { new ApiParameter("max", max), new ApiParameter("lang", lang), - new ApiParameter("category", category), - new ApiParameter("excludeCategory", excludeCategory), + new ApiParameter("cat", category), + new ApiParameter("notcat", excludeCategory), new ApiParameter("since", since), };