Generate YouTube Download commands for yt-dlp terminal

Enhance downloading capabilities on YouTube with playlist and channel support.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
S M
日安装量
0
总安装量
248
评分
1 0 0
版本
0.2
创建于
2024-07-12
更新于
2024-07-24
大小
4.4 KB
许可证
MIT
适用于

Basic script written with GPT.

Adds a mini menu in tampermonkey that when clicked copies a yt-dlp terminal command to your clipboard for the current video.

Video Download Options: Allows downloading videos at the best available resolution or at specific resolutions (480p, 720p, 1080p, 4K). The command merges video and audio into an MKV format and modifies the output filename to include the actual video resolution determined during download.

Format: %(uploader)s - %(title)s %(height)sp (via yt-dlp).mkv Audio Only: Extracts audio in M4A format. This option is ideal for music or content where only audio is required.

Format: %(uploader)s - %(title)s (via yt-dlp).m4a Chat: Downloads the live chat (if available) as subtitles.

Format: %(uploader)s - %(title)s (via yt-dlp).%(ext)s Comments: Downloads the video comments, description, and metadata as a JSON file, preserving a comprehensive snapshot of the video's accompanying information.

Format: %(uploader)s - %(title)s comments and description (via yt-dlp).json

For playlists or channels it also works - but beware download times. It stores those in a new folder in the given directory.

Updated to add following customized logic

3 variables exist at the top of the script. Modify to change behavior

let folderLocation = '.'; // Default folder location, current directory yt-dlp terminal is running in. Change it if needed.
let disableViaYtDlp = false; // Set to true to remove " (via yt-dlp)" from filenames.
let setToTrueToMoveChannelNameToEnd = false; // Set to true to move channel name to the end of the filename. 
    So title - channelname instead  of channelname - video title