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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user