das-l/contao-youtube-dl-bundle
Composer 安装命令:
composer require das-l/contao-youtube-dl-bundle
包简介
Contao extension: Download YouTube videos directly to the file system, using youtube-dl.
README 文档
README
Download YouTube videos directly to the file system, using youtube-dl.
Requirements
A youtube-dl or yt-dlp executable needs to be available. If the binary is located somewhere unusual, you can configure the location via the respective config parameter used by the youtube-dl-bundle:
das_l_youtube_dl:
binPath: '/your/bin/directory/youtube-dl'
ffmpeg is also recommended so that youtube-dl can merge downloaded audio and video into one file, because YouTube usually provides audio and video separately for most high-quality formats. If an ffmpeg or avconv command is not available in your environment and an executable can also not be found in any common location, you can provide the location of the binary with the following config:
das_l_contao_youtube_dl:
ffmpegPath: '/your/bin/directory/ffmpeg'
Configuration
You can customize the available maximum video height options:
das_l_contao_youtube_dl:
videoMaxHeights:
- '1080'
- '720'
- '480'
Usage
The extension adds a new icon button (a red play button with a downward-pointing green arrow) to every folder in the file system.
- Click the button at the folder to which you want to download the video.
- Provide the video ID.
- Optionally choose a maximum video height to download.
- Click "Import" and wait for the video to download.
That's all!
Permissions
The extension adds a file operation permission "Import YouTube videos" in the "Filemounts" area of the user and user group settings.
Please note
The downloader is limited to whatever the video creator uploaded and by what YouTube provides. The options you selected may possibly be discarded if no matching file could be found.
Also, this extension aims to have youtube-dl create an mp4 rather than an mkv container because mp4 has broader support. If this is causing you any problems, feel free to create an issue on GitHub so that we can find a solution that works well for everyone.
das-l/contao-youtube-dl-bundle 适用场景与选型建议
das-l/contao-youtube-dl-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 05 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 das-l/contao-youtube-dl-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 das-l/contao-youtube-dl-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2023-05-22