From 36763c35bb9499c42dc0ef0cb27c9d922a0d36ba Mon Sep 17 00:00:00 2001 From: Mitch Downey Date: Sun, 28 Apr 2024 22:39:04 -0500 Subject: [PATCH 1/2] Remove getEpisodeByPodcastIdAndMediaUrl request --- pages/embed/player.tsx | 10 +--------- src/services/episode.tsx | 13 ------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/pages/embed/player.tsx b/pages/embed/player.tsx index da094cfb3..b28fefd39 100644 --- a/pages/embed/player.tsx +++ b/pages/embed/player.tsx @@ -13,7 +13,7 @@ import { getPodcastById } from '~/services/podcast' import { getEpisodesAndLiveItems } from '~/services/liveItem' import { playerLoadNowPlayingItem } from '~/services/player/player' import { OmniAuralState } from '~/state/omniauralState' -import { getEpisodeById, getEpisodeByPodcastIdAndGuid, getEpisodeByPodcastIdAndMediaUrl } from '~/services/episode' +import { getEpisodeById, getEpisodeByPodcastIdAndGuid } from '~/services/episode' import { useTranslation } from 'next-i18next' interface ServerProps extends I18nPage { @@ -124,14 +124,6 @@ export default function EmbedPlayerPage({ } } - if (!episode && episodeMediaUrl && podcastId) { - try { - episode = (await getEpisodeByPodcastIdAndMediaUrl(podcastId, episodeMediaUrl)).data - } catch (error) { - console.log('Episode not found by media url.') - } - } - if (!episode && (episodeGuid || episodeMediaUrl)) { episode = { guid: episodeGuid, diff --git a/src/services/episode.tsx b/src/services/episode.tsx index 66128ef9f..157c92ec0 100644 --- a/src/services/episode.tsx +++ b/src/services/episode.tsx @@ -21,19 +21,6 @@ export const getEpisodeByPodcastIdAndGuid = async (podcastId: string, episodeGui }) } -export const getEpisodeByPodcastIdAndMediaUrl = async (podcastId: string, episodeMediaUrl: string) => { - const body = { - episodeMediaUrl, - podcastId - } - - return request({ - endpoint: `${PV.RoutePaths.api.episode_get_by_media_url}`, - method: 'POST', - body - }) -} - export type EpisodeQueryParams = { categories?: string[] hasVideo?: boolean From 9cb27253d4924208db4130f528724aaac52a6f9b Mon Sep 17 00:00:00 2001 From: Mitch Downey Date: Sun, 28 Apr 2024 22:39:20 -0500 Subject: [PATCH 2/2] Bump to version 4.16.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 56c5af7b2..f0963fcce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "podverse-web", - "version": "4.16.1", + "version": "4.16.2", "description": "Web app for the Podverse podcast clip sharing ecosystem", "repository": { "type": "git",