this post was submitted on 30 Dec 2023
84 points (95.7% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

55128 readers
637 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 2 years ago
MODERATORS
 

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

all 12 comments
sorted by: hot top controversial new old
[–] [email protected] 34 points 1 year ago (1 children)

Just alias it in your .bashrc

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

[–] [email protected] 11 points 1 year ago (1 children)

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] 5 points 1 year ago

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

[–] [email protected] 34 points 1 year ago (1 children)

Check out this part of the docs

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

I use the section 4 approach with great success.

[–] [email protected] 14 points 1 year ago

Today I learned yt-dlp has sponsorblock built in

[–] [email protected] 4 points 1 year 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.

[–] [email protected] 4 points 1 year ago

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

[–] [email protected] 2 points 1 year ago

Why would you want to remove cats, they're adorable 🥺