Skip to content

Commit

Permalink
Remove check for outro
Browse files Browse the repository at this point in the history
  • Loading branch information
viown committed Oct 25, 2024
1 parent 11e4549 commit d8db0ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/playback/skipsegment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ class SkipSegment extends PlaybackSubscriber {

onPromptSkip(e: Event, segment: MediaSegmentDto) {
if (this.player && segment.EndTicks != null
&& segment.Type === MediaSegmentType.Outro
&& segment.EndTicks >= this.playbackManager.currentItem(this.player).RunTimeTicks
&& this.playbackManager.getNextItem()
) {
Expand Down
1 change: 0 additions & 1 deletion src/controllers/playback/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,6 @@ export default function (view) {
function onPromptSkip(e, mediaSegment) {
const player = this;
if (mediaSegment && player && mediaSegment.EndTicks != null
&& mediaSegment.Type === MediaSegmentType.Outro
&& mediaSegment.EndTicks >= playbackManager.duration(player)
&& playbackManager.getNextItem()
) {
Expand Down

0 comments on commit d8db0ba

Please sign in to comment.