
Youtube-dl WebUI ist ein schlichtes Webinterface für yt-dlp. Nicht so schön wie der YoutubeDL-Material, dafür aber schnellere downloads!
Schon etwas älter und wohl nicht mehr ganz so aktuell. Erfüllt aber immer noch seinen Zweck.
mein Setup / benötig werden:
- Debian 11 Bullseye
- Webserver (Apache oder nginx mit PHP >= 7)
- ffmpeg (um Audio zu extrahieren)
- yt-dlp
Installation
Apache mit PHP
# Apache 2.4 und PHP 7.4 apt install -y apache2 php # PHP Zeitzone setzen sed -i -e "s/^;date.timezone =/date.timezone = Europe\/Berlin/" /etc/php/7.4/apache2/php.ini sed -i -e "s/^;date.timezone =/date.timezone = Europe\/Berlin/" /etc/php/7.4/cli/php.ini # Apache neu starten systemctl restart apache2
yt-dlp
apt install -y --no-install-recommends ffmpeg curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp chmod a+rx /usr/local/bin/yt-dlp
Youtube-dl WebUI
cd /var/www/html git clone https://github.com/timendum/Youtube-dl-WebUI.git cd Youtube-dl-WebUI cp config/config.php.TEMPLATE config/config.php chown -R www-data: downloads/ logs/
In der config/config.php können noch diverse Einstellungen angepasst werden.
<?php
//Default password is "root" with md5 hash
//No "/" at the end of outputFolder or logfolder
return array(
"bin" => "/usr/local/bin/yt-dlp",
"security" => true,
"password" => "63a9f0ea7bb98050796b649e85481845",
"outputFolder" => "downloads",
"extracter" => "ffmpeg",
"log" => true,
"outfilename" => "%(title)s-%(id)s.%(ext)s",
"logFolder" => "logs",
"max_dl" => 3,
"session_lifetime" => 86400);
?>
Passwort ändern
echo -n YOUR-PASSWORD | md5sum | sed 's/ .*//' 4b4b0370d8612816ec4aac72cb394a55 # den hash in die config.php eintragen
Youtube-dl WebUI
Erreichbar über: http://<server-ip>/Youtube-dl-WebUI


