7 comments

  • crazygringo17 hours ago
    I don&#x27;t understand. yt-dlp already downloads a whole playlist if you pass it a playlist URL. What does this tool add?<p>It says &quot;by channel name&quot; but then it seems like you still have to pass in each playlist URL separately.<p>This is just a &quot;wrapper&quot; for something yt-dlp already does?
    • chrismorgan17 hours ago
      It’s wrapping a somewhat opinionated and mildly bizarre yt-dlp invocation, for each line of a file doing a mkdir&#x2F;cd and then invoking yt-dlp.<p>—⁂—<p>From the “Features” section of the README:<p>&gt; <i>• Organized Structure: Creates separate directories for each channel.</i><p>… depending on you mentioning that name in your playlists.txt file, so that if you were writing a script you’d just be doing a mkdir&#x2F;cd yourself, trivial.<p>&gt; <i>• Smart Sync: Skips files that have already been downloaded (--no-overwrites).</i><p>That’s not really what --no-overwrites does. The default of --no-force-overwrites is probably actually what you want: “do not overwrite the video, but overwrite related files”. You probably <i>do</i> want metadata files to be updated on subsequent runs.<p>&gt; <i>• Clean Naming: Saves files as Playlist Title&#x2F;Video Title.mp4 (no numeric prefixes).</i><p>This is an Opinion.<p>&gt; <i>• Batch Processing: Reads multiple playlists from a playlists.txt file.</i><p>Meh, you’re invoking a script, putting the stuff in the script would be at least as easy.<p>—⁂—<p>From the script itself, going through the arguments passed to yt-dlp:<p><pre><code> --cookies &quot;$COOKIES_FILE&quot; </code></pre> My impression is that this is discouraged unless <i>necessary</i>. And if you need it, --cookies-from-browser will be more convenient.<p><pre><code> -f &quot;bv*+ba&#x2F;b&quot; </code></pre> That’s equivalent to the default.<p><pre><code> --merge-output-format mp4 </code></pre> This is an Opinion.<p><pre><code> --no-overwrites </code></pre> I’m not convinced this is desirable. Videos already won’t be overwritten by default, this just stops metadata from being updated on subsequent runs, though I’m not sure what things might be updated.<p><pre><code> -o &quot;%(playlist_title)s&#x2F;%(title)s.%(ext)s&quot; </code></pre> This is an Opinion.<p>—⁂—<p>Instead of having a playlists.txt file containing `Channel Name|<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=x" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=x</a>` and having a separate 73-line file download_playlists.sh, you might as well have just one download_playlists.sh file containing:<p><pre><code> dl() { mkdir -p &quot;$1&quot; pushd &quot;$1&quot; yt-dlp -o &quot;%(playlist_title)s&#x2F;%(title)s.%(ext)s&quot; &quot;$2&quot; popd } dl &#x27;Channel Name&#x27; &#x27;https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=x&#x27; </code></pre> By dint of its simplicity, easier to work with and tweak to your own requirements (such as dropping `--merge-output-format mp4` as I did here). Also more obvious how to invoke it just once. (Aside: use pushd&#x2F;popd instead of `cd &quot;$channel_name&quot;` and `cd ..`, because then $channel_name containing a slash won’t bork it.)
  • jasode18 hours ago
    The repo should mention a warning about usage. Be aware that downloading large playlists with lots of videos from Youtube can get your ip address throttled&#x2F;banned. The ban could last a week or a month.<p>It&#x27;s also not a good idea to use <i>&quot;--cookies&quot;</i> unless you absolutely have to. Just leave out the cookies option and try to dl anonymously. Only when Youtube forces your ip address to &quot;sign in&quot; is it necessary to pass in cookies.
    • dawnerd15 hours ago
      Exactly. There’s been account ban reports from it too. Id be very careful if it’s your normal google account that’s tied to YouTube. Always use a burner account when using the cookies param to be safe.
  • tegiddrone12 hours ago
    I&#x27;ve been glancing at ytdl-sub, which does the same thing but with interesting options to rate limit.<p><a href="https:&#x2F;&#x2F;ytdl-sub.readthedocs.io" rel="nofollow">https:&#x2F;&#x2F;ytdl-sub.readthedocs.io</a>
  • weli18 hours ago
    Unrelated, but I want to move from a Google account youtube feed to something a bit more client-side where I have the control but my main problem is the YouTube recommendation algorithm.<p>I feel like after a decade and a half google knows pretty well what I like and what I&#x27;m interested in. I built that homepage brick by brick.<p>Whenever I tried other youtube clients or ungoogled alternatives the recommendations were all really generic and not that good. Of course I won&#x27;t find something that matches the real deal, but at least I want to:<p>1. Steer away from viral content, aka Mr Beast videos or whatever. 2. Have discoverability of youtube videos I would be interested in but that I&#x27;m not subscribed to yet.<p>To this day I still find new channels or videos I&#x27;m really interested in on my recommended feed.
    • listic18 hours ago
      I, on the other hand, turned off YouTube recomendations with UnDistracted. Maybe I&#x27;m missing out; who knows.
    • cr125rider18 hours ago
      You can get RSS feeds of channels still. I use that in my feed reader
    • kelvinjps1017 hours ago
      Revanced you can still have the same algo. Also smarttubr
  • xnx18 hours ago
    yt-dlp is second only to ffmpeg in being a pillar of functionality that gets frequently wrapped in convenience scripts
    • graynk18 hours ago
      In this case I&#x27;m not sure why a convenience wrapper is even needed, yt-dlp already works with playlists just fine
      • xnx17 hours ago
        Agree. Now it&#x27;s easier to ask you favorite command line AI (e.g. Gemini CLI) something like &quot;download this list of playlists with yt-dlp&quot; rather than learn someone else&#x27;s code or even check the manual.
        • dawnerd15 hours ago
          The script linked was just vibe coded. Ai isn’t that great with the ytdl params, yet. It’s obvious because if an LLM really knew how to use ytdl it would have used the input file option instead of looping through a file and invoking for each one.
          • xnx15 hours ago
            &gt; Ai isn’t that great with the ytdl params<p>Gemini nails it:<p>When downloading multiple playlists, it is usually better to organize them into separate folders so the files don&#x27;t all end up in one giant mess. You can use an output template to automatically create folders based on the playlist title:<p>yt-dlp -a playlists.txt -o &quot;%(playlist_title)s&#x2F;%(playlist_index)s - %(title)s.%(ext)s&quot;
            • dawnerd11 hours ago
              Interesting, must be a new fix. A couple months ago I tried to have it create a command and it hallucinated params.
      • jasode18 hours ago
        <i>&gt;I&#x27;m not sure why a convenience wrapper is even needed,</i><p>Author wanted yt-dlp to be fed with a custom text file: &quot;playlists.txt&quot;<p>The script loops through that text file, parses it, and then launches yt-dlp for each valid line with a channel name.
        • bramhaag18 hours ago
          Which is essentially just this:<p><pre><code> yt-dlp -o &quot;%(channel)s&#x2F;%(playlist_title)s&#x2F;%(title)s.%(ext)s&quot; -a playlists.txt </code></pre> I&#x27;m not sure if that warrants a HN post
          • taylorfinley14 hours ago
            Right? Just add this to .bashrc:<p>alias yt-pl=&#x27;yt-dlp -o &quot;%(channel)s&#x2F;%(playlist_title)s&#x2F;%(title)s.%(ext)s&quot; -a playlists.txt&#x27;
        • graynk17 hours ago
          So -o &quot;%(channel)s - %(title)s.%(ext)s&quot;, --batch-file and optionally --download-archive?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;yt-dlp&#x2F;yt-dlp#:~:text=channel%20%28string%29%3A" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yt-dlp&#x2F;yt-dlp#:~:text=channel%20%28string...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;yt-dlp&#x2F;yt-dlp#:~:text=%2Da%2C%20%2D%2Dbatch%2Dfile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yt-dlp&#x2F;yt-dlp#:~:text=%2Da%2C%20%2D%2Dbat...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;yt-dlp&#x2F;yt-dlp#:~:text=%2D%2Ddownload%2Darchive" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yt-dlp&#x2F;yt-dlp#:~:text=%2D%2Ddownload%2Dar...</a><p>Not to mention that the script is clearly LLM-generated
  • axm9979 hours ago
    <p><pre><code> To get YouTube videos offline on your phone&#x2F;tablet for flights: 1. Create a playlist called “download” and add the videos you want. 2. Use yt-dlp (playlist URL) or this tool to pull that playlist to a folder. 3. Run the downloader on your Plex box on a schedule (cron&#x2F;launchd). 4. Add that folder to Plex as a library. 5. Enable downloads for that library in Plex, then sync to your device.</code></pre>
    • fragmede9 hours ago
      Or... just pay them that thing called money, and use the buttons in the YouTube app.