mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +03:00
Don't require preview for segments ending at end of the video
Fixes #1959
This commit is contained in:
@@ -2274,7 +2274,8 @@ async function sendSubmitMessage() {
|
|||||||
|
|
||||||
if (!previewedSegment
|
if (!previewedSegment
|
||||||
&& !sponsorTimesSubmitting.every((segment) =>
|
&& !sponsorTimesSubmitting.every((segment) =>
|
||||||
[ActionType.Full, ActionType.Chapter, ActionType.Poi].includes(segment.actionType))) {
|
[ActionType.Full, ActionType.Chapter, ActionType.Poi].includes(segment.actionType)
|
||||||
|
|| segment.segment[1] >= getVideo()?.duration)) {
|
||||||
alert(`${chrome.i18n.getMessage("previewSegmentRequired")} ${keybindToString(Config.config.previewKeybind)}`);
|
alert(`${chrome.i18n.getMessage("previewSegmentRequired")} ${keybindToString(Config.config.previewKeybind)}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user