Reset sponsorblock segments for local videos

This commit is contained in:
Arkadiusz Fal
2022-12-04 00:35:07 +01:00
parent 33abe4d487
commit 7a2dcc3cf1
2 changed files with 12 additions and 1 deletions

View File

@@ -80,6 +80,11 @@ final class SponsorBlockAPI: ObservableObject {
}
}
func reset() {
videoID = nil
segments = []
}
private func requestSegments(categories: Set<String>, completionHandler: @escaping () -> Void = {}) {
guard let url = skipSegmentsURL, !categories.isEmpty else {
return