Skip to content

Commit

Permalink
Merge pull request #1274 from podverse/develop
Browse files Browse the repository at this point in the history
Release v4.16.2
  • Loading branch information
mitchdowney authored Apr 29, 2024
2 parents d13d845 + 9cb2725 commit 3aa9972
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 1 addition & 9 deletions pages/embed/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down
13 changes: 0 additions & 13 deletions src/services/episode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3aa9972

Please sign in to comment.