mirror of
https://github.com/yattee/yattee.git
synced 2025-01-10 19:40:33 +05:30
Fix #162
This commit is contained in:
parent
a52da62a8b
commit
8b12f0e2aa
@ -133,7 +133,7 @@ final class MPVBackend: PlayerBackend {
|
|||||||
|
|
||||||
if !preservingTime,
|
if !preservingTime,
|
||||||
let segment = self.model.sponsorBlock.segments.first,
|
let segment = self.model.sponsorBlock.segments.first,
|
||||||
segment.end < 4,
|
segment.end > 4,
|
||||||
self.model.lastSkipped.isNil
|
self.model.lastSkipped.isNil
|
||||||
{
|
{
|
||||||
self.seek(to: segment.endTime) { finished in
|
self.seek(to: segment.endTime) { finished in
|
||||||
|
@ -51,7 +51,7 @@ extension PlayerModel {
|
|||||||
guard isPlaying,
|
guard isPlaying,
|
||||||
!restoredSegments.contains(segment),
|
!restoredSegments.contains(segment),
|
||||||
Defaults[.sponsorBlockCategories].contains(segment.category),
|
Defaults[.sponsorBlockCategories].contains(segment.category),
|
||||||
segment.end < 4
|
segment.end > 4
|
||||||
else {
|
else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user