Hacker News new | ask | show | jobs
by vundercind 812 days ago
Some yt-dlp script with tons of features that adds full metadata and is smart enough not to re-download things. Have its output in Jellyfin, displaying as year-season-names tv shows, a show per channel or playlist.

I would love an allowlist proxy-site (like invidious) that I could redirect most YouTube requests in my house to, but I’ve not seen any that support that.

2 comments

I do exactly this, here's my script. each text file is just a list of URLs.

  get () {
    FILENAME="%(uploader)s/%(title)s/%(title)s (%(upload_date)s).%(ext)s"

    yt-dlp \
    --restrict-filenames \
    --no-check-certificate \
    --verbose \
    --download-archive "/volume1/Media/youtube/archive.log" \
    -i \
    --write-thumbnail \
    --convert-thumbnails jpg \
    --force-ipv4 \
    --add-metadata \
    --write-auto-sub \
    --sub-lang en \
    --write-sub \
    -f "best[height<=1080]" \
    --merge-output-format mkv \
    -o "/volume1/Media/$1/$FILENAME" \
    -v \
    --batch-file "/volume1/Media/youtube/$2"
  
    }


  get "youtube/_Singles" "unique.txt"
  get "youtube/_politics" "politics.txt"
  get "youtube/_music_videos" "music.txt"
  get "youtube/channels" "channels.txt"
  get "youtube/channels" "playlists.txt"

  exit 0
I would check out https://tubearchivist.com/