Repository navigation
feat: add SponsorBlock segments as chapters to downloaded YouTube videos - #129
Open
Anderinfera wants to merge 1 commit into
Open
Anderinfera wants to merge 1 commit into
Anderinfera wants to merge 1 commit into
Conversation
New switch in Settings > SponsorBlock, "Add chapters to downloads" (off by default). When it is on, a finished MP4 or WebM download from YouTube gets chapters for its SponsorBlock segments, without encoding the video again. Overlapping segments are split, the rest of the video becomes plain "Video" chapters. The download is only replaced once the new file's streams, duration and chapters check out. Any failure before that leaves the download as it was.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Downloaded YouTube videos lose the SponsorBlock information, so a sponsor or intro can't be found or skipped in another player.
New switch in Settings -> SponsorBlock, "Add chapters to downloads" (off by default, disabled when SponsorBlock is off).
When it is on, a finished MP4 or WebM download from YouTube gets a chapter for each SponsorBlock segment, e.g.
[SponsorBlock] sponsor, and the rest of the video becomes plain "Video" chapters. Overlapping segments are split into separate chapters.How it works:
Validation:
./gradlew assembleDebugbuilds against PipePipeExtractore9818f8e.