Skip to content

Commit

Permalink
fix: prevent recommendations as feed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Dec 4, 2024
1 parent 7f5892f commit 7fb8f0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const MediaEvent: ScreenComponent<PlaylistItem> = ({ data: media, isLoading }) =

// Media
const { isLoading: isTrailerLoading, data: trailerItem } = useMedia(media?.trailerId || '');
const { isLoading: isPlaylistLoading, data: playlist } = usePlaylist(playlistId || '');
const { isLoading: isPlaylistLoading, data: playlist } = usePlaylist(features?.recommendationsPlaylist || '', { related_media_id: id });

// Event
const liveEvent = useLiveEvent(media);
Expand All @@ -67,7 +67,7 @@ const MediaEvent: ScreenComponent<PlaylistItem> = ({ data: media, isLoading }) =

// Handlers
const goBack = () => media && navigate(mediaURL({ id: media.mediaid, title: media.title, playlistId, play: false }));
const getUrl = (item: PlaylistItem) => mediaURL({ id: item.mediaid, title: item.title, playlistId });
const getUrl = (item: PlaylistItem) => mediaURL({ id: item.mediaid, title: item.title, playlistId: features?.recommendationsPlaylist });

const handleComplete = useCallback(() => {
if (!id || !playlist) return;
Expand Down

0 comments on commit 7fb8f0d

Please sign in to comment.