I want to be able to type yt-dlp [url] and have it automatically use --sponsorblock-remove CATS to remove sponsored section from the download file without having to type --sponsorblock-remove CATS everytime. Is this possible within yt-dlp?

enabling --write-subs, --write-thumbnail, by default for subtitles and thumbnails would also be convenient

    • Dr. Wesker
      link
      fedilink
      English
      3
      edit-2
      6 months ago

      I use the section 4 approach with great success.

  • @[email protected]
    link
    fedilink
    English
    346 months ago

    Just alias it in your .bashrc

    alias yt-dlps='yt-dlp --sponsorblock-remove CATS --write-subs --write-thumbnail'

    • @[email protected]
      link
      fedilink
      English
      116 months ago

      This will work, but is not as nice as the official way to do it via a config file, as described by another comment here.

      • @[email protected]
        link
        fedilink
        English
        56 months ago

        It’s better actually, because you don’t need to mess with the config if you want to run it without the switch.

  • SeedyOne
    link
    fedilink
    English
    46 months ago

    I didn’t even realize it was POSSIBLE to differentiate those sections let alone remove them. Thanks for inadvertently informing me.

  • @[email protected]
    link
    fedilink
    English
    46 months ago

    I’m sure there would be a way to create a script that puts the commands that you’d like in for a given url. Also haven’t used yt-dlp, it’s nice that they have sponsorblock built in.