Skip to content

Instantly share code, notes, and snippets.

@reneruiz
reneruiz / yt-dlp-examples.md
Last active January 14, 2024 02:38
Using youtube-dl or yt-dlp to download and name files in Plex-like format

⚠️ A lot of this depends on the the metadata that was used by the publisher/uploader. You might be able to modify the metadata to clean output, but I haven't experimented with this.


As Series Name - S00E00.mp4

$ yt-dlp -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" -o '%(series)s - S%(season_number)02dE%(episode_number)02d.%(ext)s' 'https://www.youtube.com/playlist?list={your_list_id_here}'
module.exports = {
config: {
visor: {
hotkey: 'Alt + Space',
position: 'top', // or left, right, bottom
},
// default font size in pixels for all tabs
fontSize: 16,
@reneruiz
reneruiz / Gemfile
Last active January 24, 2016 02:34
Middleman config: Gemfile, config.rb, compiled CSS
# If you do not have OpenSSL installed, change
# the following line to use "http://"
source "https://rubygems.org"
gem "bourbon", "~> 4.2"
gem "middleman", "~> 4.0"
gem "middleman-autoprefixer", "~> 2.6"
gem "middleman-blog"
gem "middleman-deploy", "= 2.0.0.pre.alpha"
gem "middleman-livereload", "~> 3.4"
-----BEGIN PGP MESSAGE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
hQEMAzkQwK2ufv2gAQf/TRlwwz1JPicAzI9VHmM4VBkwvU09O9gzDjwV0MnU6nYh
PgXyyVwYnPDnENKZe5WBwbG1RBWoWzT5RNg6O090V4TJGrV9Psiq54TxqNHe+v+E
hFULEqpVLVo/Ul3RRqawuPfOULsnsjhxtjq9ErwnJZV8G4Nkqd/JXzrIcn45B0Qk
/wb0GwpaxJfAI5E0WX1kFKvGE8Z+8WlUQfVAVkyH6iBe4TioSQv9I+Xk+Sl/NiPG
wXmlH41n9rs77ul/ybgWIA8anMifyd2XTGMEZkLaMTWtfZDC38eGYtc6CUAvaFoc
4VVsG8UEZbuEmVS0pHUC9tBXWVSCFFVGGLkwmouEb9I7AUf9Ih7mlDEExxF5VDCC

Keybase proof

I hereby claim:

  • I am reneruiz on github.
  • I am rene (https://keybase.io/rene) on keybase.
  • I have a public key whose fingerprint is 1F97 FBA8 A029 46BD EA20 B681 A64E D383 E072 BA28

To claim this, I am signing this object: