Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Lyzo <[email protected]>
  • Loading branch information
thornbill and dmitrylyzo authored Oct 13, 2024
1 parent 7c4962d commit 9942fb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/apps/stable/features/playback/utils/mediaSegments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const isBeforeSegment = (segment: MediaSegmentDto, time: number, direction: numb
if (direction === -1) {
return (
typeof segment.EndTicks !== 'undefined'
&& segment.EndTicks < time
&& segment.EndTicks <= time
);
}
return (
Expand All @@ -15,7 +15,7 @@ const isBeforeSegment = (segment: MediaSegmentDto, time: number, direction: numb

const isInSegment = (segment: MediaSegmentDto, time: number) => (
typeof segment.StartTicks !== 'undefined'
&& segment.StartTicks < time
&& segment.StartTicks <= time
&& (typeof segment.EndTicks === 'undefined' || segment.EndTicks > time)
);

Expand Down
4 changes: 2 additions & 2 deletions src/strings/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -1070,10 +1070,10 @@
"MediaSegmentAction.None": "None",
"MediaSegmentAction.Skip": "Skip",
"MediaSegmentType.Commercial": "Commercial",
"MediaSegmentType.Intro": "Intro",
"MediaSegmentType.Outro": "Outro",
"MediaSegmentType.Preview": "Preview",
"MediaSegmentType.Recap": "Recap",
"MediaSegmentType.Outro": "Outro",
"MediaSegmentType.Intro": "Intro",
"Menu": "Menu",
"MenuOpen": "Open Menu",
"MenuClose": "Close Menu",
Expand Down

0 comments on commit 9942fb7

Please sign in to comment.