16 comments

  • jerjerjer1 hour ago
    &gt; ytdl-sub<p>&gt; This is the only yt-dlp wrapper that allowed me to properly maintain the Playlist structure to any extent<p>I have the same requirement and it&#x27;s possible to do it with the default yt-dlp:<p>yt-dlp --embed-metadata --parse-metadata &quot;playlist_index:%(track_number)s&quot; &quot;PLAYLIST_URL&quot;
  • chmod7752 hours ago
    Most of my YouTube playlists say something like &quot;15 unavailable videos are hidden&quot;, or about ~10% for a 5 years old playlist. The same ratio holds true for most bookmarks of YouTube videos I have.<p>There&#x27;s videos from ~15 years ago that I consider gone for good - lost to the great copyright apocalypse - having been unable to find them anywhere on the today&#x27;s internet.
    • glouwbug1 hour ago
      I&#x27;ve had luck going to my liked videos, hitting the 3 dots under &quot;Liked videos&quot;, selecting &quot;Show unavailable videos&quot;, and copying the video watch?= ID into google. If the video is popular enough its text should pop up in a forum somewhere with some discussion at least where you&#x27;ll find the right clues. Example: 9_1Qn370IIY
      • joshuat56 minutes ago
        internet archive also has a decent portion of old popular videos
    • JKCalhoun27 minutes ago
      Scrape, my friend.<p>I saw a similar thing some years back: playlists I had created began to be missing videos.<p>Been scraping ever since…
    • nomilk1 hour ago
      Same experience. I have years of notes and many link to specific youtube video sources (with time stamp). Unfortunately those URLs don&#x27;t even give a title of a video, so tracking down removed videos can be hard. However, I&#x27;ve had some luck using LLMs! (obviously only when I can remember the context of a quote or some details about the video, even if vague). Once you know the video title it can often be found on unofficial youtube mirror sites.
    • DarkNova641 minutes ago
      Any luck with the wayback machine?
    • MINECRAFT_BIOLO1 hour ago
      [dead]
  • weinzierl1 hour ago
    Downloading your favourite stuff is absolutely what you should do, but it doesn&#x27;t solve the bigger problem.<p>Many from my generation, who grew up during an era of information scarcity, have huge stashes of hoarded data. But what can we do with it? There is no way to legally share it, so we take it with us in our graves.<p>EDIT: Many good comments, but they all suffer from one blind spot, so I answer here instead of individually.<p>A lot of content is only legal because it is on YouTube (or any other platform that has deals with the content industry). Sure, we can share illegally in a way that is obscure enough that no one gets sued. But what help is that, eventually it will get either popular and sued out of existence or forgotten and fade.<p>Then there is old content that is not legally shareable at all, like old game ROMs. Plenty of millennial stuff there but the Gen-X world is already half forgotten.<p>Cooyright is just too long and too unreliable. What we need at least is exemptions from Copyright for archivists, otherwise a lot of stuff will simply be lost in the coming decades.
    • asdff55 minutes ago
      Seed it. That is how you share it.
    • zetanor1 hour ago
      I suppose you can distribute YouTube videos the same you distribute Linux ISOs. Something like IPFS (RIP(?)) would work even better for random videos than it ever did for Linux ISOs.
    • Apocryphon1 hour ago
      Put it on the Internet Archive and let the future discover it.
      • cowlevel11 minutes ago
        IA accepts and follows takedown requests from almost anybody about almost anything.
      • jasonjayr1 hour ago
        I went down an IA hole a month or so ago, and discovered someone uploading random Jaz + Zip drives images, that appeared to be backups from random businesses and people in the late 1990s There were diary entries, letters to a lawyer about divorce, business accounting data, invoices, and period-era porn, that if i were to guess, was organized to be offered on BBSes. tl;dr: encrypt that data at rest, you never know where it will end up.
        • EvanAnderson25 minutes ago
          I have mixed feelings about that stuff (which I&#x27;ve seen there too). There&#x27;s historic value in it and I think it should be preserved. It also feels a bit icky and wrong for it to be publicly available so soon after its creation.
        • keeganpoppen39 minutes ago
          honestly, for stuff that old i kinda like the idea of seeding it anyway... i know that is a naïve PoV in the modern era, but i kinda miss the days of the internet being innocent enough that you got a real slice of someone&#x27;s life sometimes.
  • EvanAnderson1 hour ago
    I agree with the sentiment (and have several TB of archived Youtube videos) but I can&#x27;t help but think &quot;Keep this on the down-low!&quot;. I feel the same way every time someone mentions Youtube RSS feeds (which drive my archiving rig). Keep quiet or they&#x27;ll take them away!
    • djeastm39 minutes ago
      &gt;Keep quiet or they&#x27;ll take them away!<p>But you just mentioned the RSS thing ... Doctor, heal thyself!
  • vagab0nd1 hour ago
    I have a nightly job that looks at all my youtube playlists, and downloads them to disk. It also sends me an email whenever a video that I haven&#x27;t watched becomes unavailable so I can watch the local version. It took about 2 days to setup, but probably 30 minutes with AI today.
    • cowlevel10 minutes ago
      How often do you get those emails?
    • joshuat53 minutes ago
      Are you running this locally? This is something I&#x27;ve considered but never felt like putting the effort to complete
    • botanrice1 hour ago
      would be interested to have a look if you happened to have a repo setup or a blog post explaining! prob won&#x27;t necessarily setup something myself but always been curious about this kind of thing
      • Gareth32117 minutes ago
        It&#x27;s really as easy as asking Opus 5.5 and&#x2F;or DeepSeek 4.1 (if Opus has moral issues) to set this up. I have the same. I&#x27;ve got a Download playlist which synchronises everything automatically. It had some issues where YouTube detected ytdl and throttled the download or limited video quality, so I set up a container with a full browser and fake browser fingerprint attributes, then downloaded at 1.5x (that was the limit before it throttled again). Just spar with Opus a bit if you encounter these issues.
  • Teslazar23 minutes ago
    I&#x27;m using the External Application Button browser extension along with yt-dlp so that I can download YT videos with a single click. <a href="https:&#x2F;&#x2F;webextension.org&#x2F;listing&#x2F;external-application-button.html" rel="nofollow">https:&#x2F;&#x2F;webextension.org&#x2F;listing&#x2F;external-application-button...</a><p>My arguments line for the extension looks something like this:<p><pre><code> &#x2F;C C:\Users\[user]\youtube-dl\yt-dlp.exe -v -P &quot;D:\Media\Videos&quot; -f &quot;bv*[vcodec!*=av01]+ba&#x2F;b&quot; --write-subs --embed-subs --sub-langs &quot;en.\*&quot; --compat-options no-keep-subs --merge-output-format mkv [HREF]</code></pre>
  • prologic3 hours ago
    One of the things I wish I could solve better, was a way to search for and show decent search results that you could then pipe into `yt-dlp`. Every method of doing this I&#x27;ve seen is basically a &quot;hack&quot; and often breaks or doesn&#x27;t work at all. Anyone have a better solution to this that lets you basically build a frontend&#x2F;proxy to Youtube or lets you Search, Show results and Download what you want to see lateR?
    • jasode2 hours ago
      <i>&gt;, was a way to search for and show decent search results</i><p>Not sure what you&#x27;re exactly asking for. Google&#x2F;Youtube does provide an &quot;official&quot; API for youtube searches:<p><a href="https:&#x2F;&#x2F;developers.google.com&#x2F;youtube&#x2F;data&#x2F;reference&#x2F;rest&#x2F;v3&#x2F;search&#x2F;list" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;youtube&#x2F;data&#x2F;reference&#x2F;rest&#x2F;v3...</a><p>It&#x27;s rate-limited but other hacks to scrape Youtube without the API will also be rate-limited as well unless you try to trick Google via unapproved hostile methods such as commanding an army of residential ip zombies and aggregate it.<p>Fundamentally, the index of Youtube videos lives in Google&#x27;s servers so you&#x27;re beholden to Google to get results from it. If the issue is that the Google&#x27;s official results from search queries are not surfacing the videos you think are actually there, it means you&#x27;d have to build a duplicate (massive) &quot;shadow&quot; index to return those missing videos. To build such a beast, you&#x27;re back to hitting the brick wall of rate-limits again.
      • prologic2 hours ago
        Do you know if this requires a GCP&#x2F;Google account or can be it be used freely, but rate-limited to a reasonable rate for personal use?
        • prologic2 hours ago
          Answering my own question. No.<p>&gt; API key not valid. Please pass a valid API key.
    • athrowaway3z1 hour ago
      <a href="https:&#x2F;&#x2F;github.com&#x2F;offline-ant&#x2F;await-clipboard&#x2F;blob&#x2F;main&#x2F;await-clipboard.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;offline-ant&#x2F;await-clipboard&#x2F;blob&#x2F;main&#x2F;awa...</a><p>A script that streams clipboard changes.<p>Next i run a bunch of user services that do:<p>`await-clipboard.sh | grep --line-buffered -z -e &quot;youtu&quot; | ...`<p>I just use youtube like normal, but instead of clicking a video i right-click copy to clipboard and a mpv+sponsorblock window pops up
    • al_borland1 hour ago
      I was messing around with the new coding agent in Xcode and built an app that would let me put in a bunch of channels I subscribe to, then basically made a YouTube RSS app around that. It would fetch new videos and show the thumbnails, times, descriptions, etc. If I wanted to watch something it will download it with yt-dlp on the backend. Watched videos would get cleaned up periodically, but videos marked as favorites would stick around.<p>It worked decently well. However, I started running into API limits when it would refresh to fetch updates. Things could likely be tweaked to avoid this, but I haven’t revisited it yet.<p>I didn’t make a generic search, but did allow pulling up one-off videos to download and favorite them.
    • nonethewiser2 hours ago
      What hacks have you found? I guess my first thought is some sort of snippet to run in the browser console, or an extension, that you can just run when using youtube itself that copies the yt-dlp command to downloads all the page&#x27;s search results to your clipboard. Definitely a hack I&#x27;m just curious what else you&#x27;ve seen.<p><pre><code> copy( &#x27;yt-dlp &#x27; + [...document.querySelectorAll(&#x27;ytd-video-renderer a#video-title&#x27;)] .map(a =&gt; { const u = new URL(a.href); return `&quot;https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=${u.searchParams.get(&#x27;v&#x27;)}&quot;`; }) .join(&#x27; &#x27;) )</code></pre>
    • Stagnant2 hours ago
      Due to the nature of youtube updating so often all methods utilizing youtube&#x27;s search would break often, but in the age of coding agents I don&#x27;t think it matters as much anymore. Tell that to claude code and it will do it in 15 minutes. Being annoyed with youtube&#x27;s search interface regressions I&#x27;ve basically built something similar by having an alternative frontend to better sort by date ranges, view count etc. It has already broken twice in last 6 months but fixing it is trivial by pointing a coding agent at it. The way it works is by piping the search query to automated playwright browser which returns the parsed search results and thumbnails. Also dabbled with Youtube&#x27;s API in the past which sometimes shows results that don&#x27;t show up on its regular search.
    • rsinerate1 hour ago
      I used a self-hosted Invidious instance in the past. Im not sure of the current state, but it’s a privacy front end similar to redlib.
    • ivanjermakov2 hours ago
      &gt; Anyone have a better solution<p>Since youtube api won&#x27;t help with this someone needs to build a video index and a good search algorithm on top. Would be nice to be able to search through indexed subtitles too.
      • prologic2 hours ago
        I don&#x27;t even want an &quot;algorihtm&quot; per se. Just search, show results and a download or paly. That&#x27;s it.
        • ivanjermakov2 hours ago
          By algorithm I mean a scoring function to tell which video is relevant to the search.
        • Forgeties792 hours ago
          Freetube but if you want HD you have to separate out the video and audio downloads then combine them after. A little annoying but it does have download right there in the client
          • em-bee2 hours ago
            freetube removed the download feature a while ago. see my other comment above on how i use freetube to download videos.
            • Forgeties792 hours ago
              Dang really? Guess I just haven’t needed it in a while
    • em-bee2 hours ago
      i use freetube to search. i can select videos that i want to watch with a single click into a playlist and then export that playlist and feed it to yt-dlp. since my internet is often slow, that is the main way i watch videos. i don&#x27;t even open them directly in freetube, but wait until yt-dlp is done downloading.
    • asdff54 minutes ago
      You can use google site search operator to get a better youtube search
    • sjs3822 hours ago
      Podsync will download videos from a playlist and then publish an XML feed of videos it&#x27;s downloaded. You can set it up so that you interact with it by just adding videos to a (public or unlisted) playlist.<p>It&#x27;s intended to be used as a youtube-to-podcast-player tool, but seems like it fits your use, too.
    • hbn2 hours ago
      &gt; and often breaks<p>That&#x27;s kinda the nature of YouTube downloaders&#x2F;scrapers including yt-dlp. It&#x27;s not exactly a public API that YouTube&#x27;s offering to support.
  • allexsendev1 hour ago
    Read the comments and combined with my personal experience, made me wanna have a full on offline library, and in a better case, &quot;decentralized&quot; libraries of such things, although at the very least videos prolly won&#x27;t work all that well.
  • tombert2 hours ago
    I regret not archiving all the videos from the youtuber Myles Power (pseudoscience-debunker). He was one of my more favorite YouTubers but a few years ago he nuked his entire channel and all the videos on it (I suspect because his employer didn&#x27;t like him arguing with people on the internet).<p>I wanted to rewatch some of his videos recently and as far as I can tell most of his videos are now lost media. I should have downloaded them when I had the chance.
  • mococa1 hour ago
    I&#x27;ve been (manually) download my favourite youtube videos to my cloud since I&#x27;ve noticed some videos gone forever for any reasons.
  • dSebastien2 hours ago
    I&#x27;ve always downloaded entire YT channels I enjoyed. I now have free&#x2F;forever access to tons of content that now sits behind paywalls on topics I care about.<p>All automated for years
    • Forgeties791 hour ago
      What are you using?
      • EvanAnderson1 hour ago
        Not the poster you&#x27;re replying to, but my archiving rig uses my personal fork of &quot;tt-rss&quot; to pull in the RSS feeds for the channels I care about and a script to query the database. That script uses yt-dlp to download the videos and subs, then marks them downloaded in the database. It&#x27;s a bunch of glue-and-tape scripting code but was easy to hack together in an afternoon. Tweaking yt-dlp to run at a velocity that didn&#x27;t get my IP address put into &quot;you must login&quot; hell was the most difficult part. The only long-term care-and-feeding has been keeping yt-dlp updated in the face of the arms race.
  • ryankrage773 hours ago
    Rather than using Tdarr, wouldn&#x27;t it be simpler to use yt-dlp&#x27;s `--recode-video` option?
    • tosti2 hours ago
      If the jellyfin receives content from anywhere else, a separate job for transcoding would cover those too.
  • shevy-java1 hour ago
    I did so with regards from Tales from the crypt; the early seasons were great, so I have them locally. Or, at the least the better ones; some are not so good.<p>For this purpose I also kept list, in .yml files, for the most recent URL. Not just on youtube but also dailymotion etc...<p>Interestingly there are some surges of URLs suddenly being eliminated. Naturally we know the copyright mafia is trying to hinder us, the people here, but it is interesting how that works. Because ... it sometimes works. And then it does not work. Which is quite strange to me.<p>For instance, you can often still find new videos on youtube here, even full movies. Sometimes you can download them; then suddenly they are gone, but they were up before that for months or even years. So it is really really strange to see some videos suddenly vanishing, others being around for decades literally. Even when you&#x27;d assume these have ... &quot;copyright issues&quot;.
  • hsuduebc256 minutes ago
    &gt;The corporate internet is hostile to art and the things you love<p>Agreed. I mourn the deletion of legendary Hair cake video from FilthyFrank every now and then. But at least we have AI slop videos or in better case videos with &quot;The inevitable rise and fall of XXX&quot; title&quot; with human narrator reading AI written script. But hey at least everyone censor word f<i>ck and sh</i>t.
  • yh112 hours ago
    Is this another yt-dlp wrapper?
    • yreg1 hour ago
      No, it&#x27;s a blog post. Next time you can click the link instead of being dismissive.
    • foobarbaggins1 hour ago
      No, not really. It&#x27;s a dude showing how he used Jellyfin to organize his youtube archive.
    • 13172 hours ago
      yes
  • superkuh3 hours ago
    Every time you watch a youtube video you are downloading the youtube video to disk. It is just to prevent the lawyers from exploding that we all pretend that deleting it afterword means it never was downloaded.<p>But yes, everyone should be not deleting the videos they&#x27;ve downloaded.
    • ivanjermakov2 hours ago
      Technically watching a video only streams video chunks into memory. But of course there are tools pretending to be a youtube client to stream it to a file.
    • em-bee2 hours ago
      to the layman download means the whole video is stored in its entirety on my disk. and possibly to lawyers too. that is not happening with streaming videos. youtube videos in particular most likely never hit the disk. not even the cache. when i am watching youtube then i am not deleting the video after it is done. the &quot;downloaded&quot; segments disappear automatically as i watch. so there is no delete step that i could skip in order to keep the file. rather, actually downloading a video requires an entirely different operation.
      • asdff50 minutes ago
        No its the same operation just you save instead of not save.
        • amiga38638 minutes ago
          It used to be but not now. Your browser is served little slices of the video and audio, and the player adapts in realtime, giving you lower or higher bitrate, depending on your network congestion.<p>yt-dlp, as far as I know, always asks for the same consistent quality&#x2F;bitrate of your choosing (and saves them to disk and joins the segments and muxes the video and audio into one stream)
      • SirFatty2 hours ago
        &quot;to the layman download means the whole video is stored in its entirety on my disk.&quot;<p>Yes, that&#x27;s exactly what it means.