YouTube 播放列表下载器
YouTube Playlist Downloader

原始链接: https://github.com/Linuxmaster14/yt-playlist-downloader

这个Bash脚本可以简化下载整个YouTube播放列表的过程,并按频道整齐地组织文件。它使用`yt-dlp`,并需要FFmpeg来合并流。 脚本从`playlists.txt`文件(格式:`频道名称|播放列表URL`)中读取播放列表,并为每个频道创建一个专用目录,使用`--no-overwrites`标志防止重复下载。视频保存为`播放列表标题/视频标题.mp4`,以便清晰地组织。 要使用,请从GitHub克隆脚本([https://github.com/Linuxmaster14/yt-playlist-downloader.git](https://github.com/Linuxmaster14/yt-playlist-downloader.git)),使其可执行,然后运行它。请记住编辑`playlists.txt`文件,添加您想要的播放列表URL,并可以选择提供`cookies.txt`文件以访问仅限会员的内容。可以通过修改`download_playlists.sh`脚本中的变量来定制选项。该脚本采用MIT许可。

## YouTube 播放列表下载器 - 摘要 一个新的 GitHub 项目旨在简化使用 `yt-dlp` 下载 YouTube 播放列表。然而,Hacker News 上的讨论表明该工具在很大程度上复制了 `yt-dlp` 的现有功能。该脚本接收一个 `playlists.txt` 文件(包含频道名称和播放列表 URL),并将每个播放列表下载到单独的目录中。 批评者指出,`yt-dlp` 已经可以直接从 URL 下载播放列表,并且该脚本的功能——有组织的目录、跳过已下载的文件和自定义命名——都可以通过简单的 `yt-dlp` 命令或一个简短的 shell 脚本轻松实现。 一些评论员也警告不要大量下载 YouTube 视频,因为这可能导致 IP 限制或帐户封禁,建议在使用 cookie 时使用临时帐户。对话还涉及 YouTube 推荐和通过 Plex 进行离线播放的替代方案。最终,许多人认为该项目是不必要地包装了一个已经提供类似功能的强大工具。
相关文章

原文

A simple, powerful Bash script to batch download and organize YouTube playlists by channel name using yt-dlp.

  • Organized Structure: Creates separate directories for each channel.
  • Smart Sync: Skips files that have already been downloaded (--no-overwrites).
  • Clean Naming: Saves files as Playlist Title/Video Title.mp4 (no numeric prefixes).
  • Batch Processing: Reads multiple playlists from a playlists.txt file.
  • yt-dlp: Make sure you have yt-dlp installed.
  • FFmpeg: Required for merging video and audio streams.
git clone https://github.com/Linuxmaster14/yt-playlist-downloader.git
cd yt-playlist-downloader
chmod +x download_playlists.sh
./download_playlists.sh

1. Add your playlists: Edit playlists.txt and add your channels and playlist URLs in the format:

Example:

Linux Tips|https://www.youtube.com/playlist?list=PLT98CRl2KxKF26ekyZUT_XtQ9HPciZKHX

2. Cookies Place your cookies.txt file in the same directory. How do I pass cookies to yt-dlp?

You can customize the script by editing the variables at the top of download_playlists.sh.

MIT

联系我们 contact @ memedata.com