ivanboring/drupal_youtube_dl 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ivanboring/drupal_youtube_dl

Composer 安装命令:

composer require ivanboring/drupal_youtube_dl

包简介

Youtube downloader for Drupal

README 文档

README

What is this

This is a wrapper module for the Youtube DL library that can download video and audio from over 1000 different video providers like Youtube, Vimeo, Facebook etc.

Because youtube-dl gets constant take downs, I did not want to host this on drupal.org and get them into troubles, so here it is on Github :)

Drupal Video DL is a module that currently have two things available for it. The one thing is a service where you can download video or audio files from provider links via a service for any third party module that would want to use it.

The other core feature is that it has two AI Automator types for the AI Automator module that can be found in the AI module. These makes it possible to take a link and generate video or audio files for further use for AI context or for just showcasing (if you have copyright or it doesn't have copyright).

For more information on how to use the AI Automator (previously AI Interpolator), check https://workflows-of-ai.com.

Requirements

  • You need youtube-dl and ffmpeg installed on your server.
  • To use it, you need to use a third party module using the service. Currently its only usable with the AI Automator submodule of the AI module

Install

Add the following into your composer.json on the repositories key:

"repositories": {
  "drupal_video_dl": {
    "type": "vcs",
    "url": "https://github.com/ivanboring/drupal_video_dl.git"
  }
},

then run:

composer require "ivanboring/drupal_video_dl:^1.0@rc"

How to use as AI Automator type

  1. Install the AI module.
  2. Install this module.
  3. Create some entity or node type with a linl field.
  4. Create a file field that either takes audio files or video files.
  5. Enable AI Automator checkbox and configure it.
  6. Create an entity of the type you generated, fill in a link to one of the providers and save.
  7. The file should be save.

How to use the Drupal Video DL service.

This is a code example on how you can download a video from Youtube.

$downloader = \Drupal::service('drupal_video_dl.downloader');
// Get back a file entity.
$file = $downloader->download('https://www.youtube.com/watch?v=NQuNEEiyxsk', 'public://myvideo.mp4', 'video');

ivanboring/drupal_youtube_dl 适用场景与选型建议

ivanboring/drupal_youtube_dl 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ivanboring/drupal_youtube_dl 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ivanboring/drupal_youtube_dl 我们能提供哪些服务?
定制开发 / 二次开发

基于 ivanboring/drupal_youtube_dl 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-03-14