mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-14 18:00:32 +01:00
fix: added season and episode + updated icon
This commit is contained in:
@@ -109,16 +109,29 @@ const SessionCard = ({ session }: SessionCardProps) => {
|
|||||||
<View className="w-full flex-1">
|
<View className="w-full flex-1">
|
||||||
<View className="flex flex-row justify-between">
|
<View className="flex flex-row justify-between">
|
||||||
<View className="flex-1 pr-4">
|
<View className="flex-1 pr-4">
|
||||||
<Text className="font-bold">{session.NowPlayingItem?.Name}</Text>
|
{session.NowPlayingItem?.Type === "Episode" ? (
|
||||||
{!session.NowPlayingItem?.SeriesName && (
|
<>
|
||||||
<Text className="text-xs opacity-50">
|
<Text className="font-bold">
|
||||||
{session.NowPlayingItem?.ProductionYear}
|
{session.NowPlayingItem?.Name}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
<Text numberOfLines={1} className="text-xs opacity-50">
|
||||||
{session.NowPlayingItem?.SeriesName && (
|
{`S${session.NowPlayingItem.ParentIndexNumber?.toString()}:E${session.NowPlayingItem.IndexNumber?.toString()}`}
|
||||||
<Text className="text-xs opacity-50">
|
{" - "}
|
||||||
{session.NowPlayingItem?.SeriesName}
|
{session.NowPlayingItem.SeriesName}
|
||||||
</Text>
|
</Text>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<Text className="font-bold">
|
||||||
|
{session.NowPlayingItem?.Name}
|
||||||
|
</Text>
|
||||||
|
<Text className="text-xs opacity-50">
|
||||||
|
{session.NowPlayingItem?.ProductionYear}
|
||||||
|
</Text>
|
||||||
|
<Text className="text-xs opacity-50">
|
||||||
|
{session.NowPlayingItem?.SeriesName}
|
||||||
|
</Text>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
<Text className="text-xs opacity-50 align-right text-right">
|
<Text className="text-xs opacity-50 align-right text-right">
|
||||||
@@ -131,12 +144,12 @@ const SessionCard = ({ session }: SessionCardProps) => {
|
|||||||
</View>
|
</View>
|
||||||
<View className="flex-1" />
|
<View className="flex-1" />
|
||||||
<View className="flex flex-col align-bottom">
|
<View className="flex flex-col align-bottom">
|
||||||
<View className="flex flex-row justify-between align-bottom">
|
<View className="flex flex-row justify-between align-bottom mb-1">
|
||||||
<Text className="-ml-1 text-xs opacity-50 align-left text-left">
|
<Text className="-ml-0.5 text-xs opacity-50 align-left text-left">
|
||||||
{!session.PlayState?.IsPaused ? (
|
{!session.PlayState?.IsPaused ? (
|
||||||
<Entypo name="controller-play" size={14} color="white" />
|
<Ionicons name="play" size={14} color="white" />
|
||||||
) : (
|
) : (
|
||||||
<AntDesign name="pause" size={14} color="white" />
|
<Ionicons name="pause" size={14} color="white" />
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text className="text-xs opacity-50 align-right text-right">
|
<Text className="text-xs opacity-50 align-right text-right">
|
||||||
|
|||||||
Reference in New Issue
Block a user