fix(plex): the show and season restart names its object and starts at 0 (E28 S3f2)

The header button said only "Play from start" and resumed the first
episode at its saved point. It now reads "Season from the start · S6 · E1"
or "Show from the start · S1 · E1" and asks the player for 0.
This commit is contained in:
2026-09-27 03:30:04 +02:00
parent dc5206f9d3
commit d510c8a534
5 changed files with 145 additions and 8 deletions
+7 -5
View File
@@ -328,7 +328,7 @@ export function PlexShowView({
}: {
showId: string;
onBack: () => void;
onPlay: (epRk: string, queue: string[]) => void;
onPlay: (epRk: string, queue: string[], fromStart?: boolean) => void;
onOpenSeason: (seasonId: string) => void;
onOpenShow: (id: string) => void;
onFilter?: (patch: Partial<PlexFilters>) => void;
@@ -559,9 +559,10 @@ export function PlexShowView({
)}
{show.first && show.status !== "new" && (
<ActionBtn
onClick={() => onPlay(show.first!.id, allKeys)}
onClick={() => onPlay(show.first!.id, allKeys, true)}
icon={RotateCcw}
label={t("plex.series.playFromStart")}
label={t("plex.series.showFromStart")}
sub={epLabel(show.first)}
/>
)}
<WatchedToggle
@@ -765,9 +766,10 @@ export function PlexSeasonView({
)}
{se.first && se.status !== "new" && (
<ActionBtn
onClick={() => onPlay(se.first!.id, allKeys)}
onClick={() => onPlay(se.first!.id, allKeys, true)}
icon={RotateCcw}
label={t("plex.series.playFromStart")}
label={t("plex.series.seasonFromStart")}
sub={epLabel(se.first)}
/>
)}
<WatchedToggle