feat: added new music player and fix some UI issues

This commit is contained in:
--remove-section committed 2026-10-20 18:31:09 +05:30
1 parent 2d5f49c32e
commit c232c1bf12
26 files changed
+1862 -1491

No files matched your search

+4 -2
View File
@@ -47,6 +47,8 @@ const ItemHeader = ({
backdropSrc,
}: ItemHeaderProps) => {
const isEpisode = item.Type === "Episode";
// A runtime / "ends at" is meaningless for people and artists (it sums their whole catalogue)
const showRuntime = item.Type !== "MusicArtist" && item.Type !== "Person";
const backdropTag =
isEpisode && item.ParentBackdropImageTags?.length
? item.ParentBackdropImageTags[0]
@@ -294,12 +296,12 @@ const ItemHeader = ({
</div>
)}
{item.RunTimeTicks && (
{showRuntime && item.RunTimeTicks && (
<Typography style={{ opacity: "0.8" }} variant="subtitle2">
{getRuntime(item.RunTimeTicks)}
</Typography>
)}
{item.RunTimeTicks && (
{showRuntime && item.RunTimeTicks && (
<Typography style={{ opacity: "0.8" }} variant="subtitle2">
{endsAt(
item.RunTimeTicks - (item.UserData?.PlaybackPositionTicks ?? 0),