youtube-dl 的 HTML GUI

您可以在這裡下載最新的發布包。
您只需將其解壓縮到伺服器上即可使用。
為了讓 AllTube 運作,你需要使用 Composer:
composer install這將下載所有必需的依賴項。
您還應該確保templates_c資料夾具有正確的權限:
chmod 770 templates_c/(您需要使其適應您的權限模型。您可以在 Smarty 文件中找到有關此內容的更多資訊。)
如果您的 Web 伺服器是 Apache,則需要將AllowOverride設定設為All或FileInfo 。
從 Git 更新時,需要再次執行 Composer:
git pull
composer installCloudron 是一個完整的解決方案,用於在伺服器上運行應用程式並保持最新和安全。
可以在此處找到該包的源代碼。
如果您想使用自訂配置,則需要建立一個設定檔:
cp config/config.example.yml config/config.yml您將需要 PHP 7.2(或更高版本)和以下 PHP 模組:
如果您想在基本路徑下和/或使用與外部連接埠不同的內部連接埠(場景:nginx->docker 設定)為應用程式提供服務,Alltube 支援以下 X-Forwarded 標頭:
another.domain.com )/alltube )5555 )https )推薦使用以下模組:
以下是 Nginx 設定範例:
server {
server_name localhost;
listen 443 ssl;
root /var/www/path/to/alltube;
index index.php;
access_log /var/log/nginx/alltube.access.log;
error_log /var/log/nginx/alltube.error.log;
types {
text/html html htm shtml;
text/css css;
text/xml xml;
application/x-web-app-manifest+json webapp;
}
# Deny access to dotfiles
location ~ /. {
deny all ;
}
location / {
try_files $uri /index.php? $args ;
}
location ~ .php$ {
try_files $uri /index.php? $args ;
fastcgi_param PATH_INFO $fastcgi_path_info ;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info ;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+.php)(/.+)$ ;
fastcgi_intercept_errors off ;
fastcgi_buffer_size 16k ;
fastcgi_buffers 4 16k ;
include fastcgi_params;
}
}您需要 ffmpeg 才能啟用轉換。 (預設為停用轉換。)
在基於 Debian 的系統上:
sudo apt-get install ffmpeg如果您的 ffmpeg 二進位檔案未安裝在/usr/bin/ffmpeg ,您也需要編輯config.yml中的ffmpeg變數。
Video類別現在作為單獨的包提供,以便您可以在專案中重複使用它。
我們還提供了一個 JSON API,您可以像這樣使用: /json?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ
它會傳回由 youtube-dl 產生的 JSON 物件。您可以在 youtube-dl 文件中找到所有屬性的清單。
請在報告任何問題之前閱讀常見問題。
該軟體可根據 GNU 通用公共授權使用。