←back to thread

319 points modmodmod | 1 comments | | HN request time: 0.239s | source
Show context
maxglute ◴[] No.43374425[source]
How does yt-dlp work with sponsorblock? Does it download the video can snip out segments?

I wish PLEX still had youtube plugin. Right now I have a googlesheet script that adds latest videos of channels into various playlists on my premium account. Keeps things simple bouncing between devices / chromecast.

replies(1): >>43374451 #
1. modmodmod ◴[] No.43374451[source]
Just recently I stumbled upon these options of yt-dlp, but haven't had the chance to dig deeper (sorry in advance for the formatting):

  SponsorBlock Options:
    Make chapter entries for, or remove various segments (sponsor, introductions, etc.) from downloaded YouTube videos using the SponsorBlock API (https://sponsor.ajay.app)

    --sponsorblock-mark CATS                                         SponsorBlock categories to create chapters for, separated by commas. Available categories are sponsor, intro, outro,
                                                                     selfpromo, preview, filler, interaction, music_offtopic, poi_highlight, chapter, all and default (=all). You can prefix the
                                                                     category with a "-" to exclude it. See [1] for descriptions of the categories. E.g. --sponsorblock-mark all,-preview [1]
                                                                     https://wiki.sponsor.ajay.app/w/Segment_Categories
    --sponsorblock-remove CATS                                       SponsorBlock categories to be removed from the video file, separated by commas. If a category is present in both mark and
                                                                     remove, remove takes precedence. The syntax and available categories are the same as for --sponsorblock-mark except that
                                                                     "default" refers to "all,-filler" and poi_highlight, chapter are not available
    --sponsorblock-chapter-title TEMPLATE                            An output template for the title of the SponsorBlock chapters created by --sponsorblock-mark. The only available fields are
                                                                     start_time, end_time, category, categories, name, category_names. Defaults to "[SponsorBlock]: %(category_names)l"
    --no-sponsorblock                                                Disable both --sponsorblock-mark and --sponsorblock-remove
    --sponsorblock-api URL                                           SponsorBlock API location, defaults to https://sponsor.ajay.app