86
submitted 6 months ago by nix@merv.news to c/piracy@lemmy.dbzer0.com

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

top 13 comments
sorted by: hot top controversial new old
[-] zoostation@lemmy.world 33 points 6 months ago

Check out this part of the docs

[-] wesker@lemmy.sdf.org 3 points 6 months ago* (last edited 6 months ago)

I use the section 4 approach with great success.

[-] db2@lemmy.world 33 points 6 months ago

Just alias it in your .bashrc

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

[-] 7Sea_Sailor@lemmy.dbzer0.com 11 points 6 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.

[-] db2@lemmy.world 5 points 6 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.

[-] Mechanite@lemmy.world 14 points 6 months ago

Today I learned yt-dlp has sponsorblock built in

[-] fortniteplaya@lemmy.zip 5 points 6 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.

[-] SeedyOne@lemm.ee 4 points 6 months ago

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

[-] BlackSkinnedJew@lemmynsfw.com 3 points 6 months ago

If someone didn't know there is a yt-dlp android front end called YTDLnis, use at your own risk but use it it's fucking great.

[-] mbeezy@sh.itjust.works 1 points 6 months ago

Also there's Seal which is a bit better imo

[-] BlackSkinnedJew@lemmynsfw.com 2 points 6 months ago

I will check it thx for the info 👍👍

[-] CaptainBlagbird@lemmy.world 2 points 6 months ago

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

[-] Bldck@beehaw.org 1 points 6 months ago

Create a configuration file. https://github.com/yt-dlp/yt-dlp has the documentation

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

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

52604 readers
123 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


💰 Please help cover server costs.

Ko-FiLiberapay


founded 1 year ago
MODERATORS