diff --git a/components/CurrentlyPlayingBar.tsx b/components/CurrentlyPlayingBar.tsx index 7c141a94..8412645c 100644 --- a/components/CurrentlyPlayingBar.tsx +++ b/components/CurrentlyPlayingBar.tsx @@ -221,12 +221,57 @@ export const CurrentlyPlayingBar: React.FC = () => { style={[animatedBackgroundStyle]} > - - {currentlyPlaying.item.Name} - {currentlyPlaying.item.Name} + + + { + if (currentlyPlaying.item?.Type === "Audio") { + router.push( + // @ts-ignore + `/(auth)/(tabs)/${from}/albums/${currentlyPlaying.item.AlbumId}` + ); + } else { + router.push( + // @ts-ignore + `/(auth)/(tabs)/${from}/items/page?id=${currentlyPlaying.item?.Id}` + ); + } + }} + > + {currentlyPlaying.item?.Name} + + {currentlyPlaying.item?.Type === "Episode" && ( + { + router.push( + // @ts-ignore + `/(auth)/(tabs)/${from}/series/${currentlyPlaying.item.SeriesId}` + ); + }} + className="text-xs opacity-50" + > + {currentlyPlaying.item.SeriesName} + + )} + {currentlyPlaying.item?.Type === "Movie" && ( + + + {currentlyPlaying.item?.ProductionYear} + + + )} + {currentlyPlaying.item?.Type === "Audio" && ( + { + router.push(`/albums/${currentlyPlaying.item?.AlbumId}`); + }} + > + + {currentlyPlaying.item?.Album} + + + )} +