Allow infinite sponsorblock skips when looping is selected.

This commit is contained in:
FireMasterK 2021-07-08 03:51:44 +05:30
parent d77ab806e5
commit 83573d8ee7
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -105,7 +105,7 @@ export default {
if (this.sponsors && this.sponsors.segments) { if (this.sponsors && this.sponsors.segments) {
const time = videoEl.currentTime; const time = videoEl.currentTime;
this.sponsors.segments.map(segment => { this.sponsors.segments.map(segment => {
if (!segment.skipped) { if (!segment.skipped || this.selectedAutoLoop) {
const end = segment.segment[1]; const end = segment.segment[1];
if (time >= segment.segment[0] && time < end) { if (time >= segment.segment[0] && time < end) {
console.log("Skipped segment at " + time); console.log("Skipped segment at " + time);