phpYoutubeDLWebUI
Description
phpYoutubeDLWebUI is a small web interface for youtube-dl. Designed to be used on a QNAP NAS, but should work anywhere youtube-dl, FFmpeg, and PHP can run.
Features
- Options can be set in the web ui:
- download folder location
- progress log folder location
- require authenication / set password
- youtube-dl options:
--format
--output
--proxy
--merge-output-format
--ffmpeg-location
--add-metadata
--write-info-json
--write-thumbnail
- Download runs in background
- Videos can be deleted
- Videos can be downloaded from the server
- Dark mode based on
prefers-color-scheme
media query
Requirements
- HTTP server that supports PHP
- such as a QNAP NAS with web server enabled and Python and PHP
- youtube-dl
- FFmpeg
How to install?
1. Install youtube-dl
- Download youtube-dl file the from the last release here
- Copy it in /usr/bin folder, give permissions with chmod 777 youtube-dl
2. Install ffmpeg
- Download latest ffmpeg release here according your QNAP model
- Install the .qpkg file manually with the App Center
- You will find the new version of ffmpeg here: /opt/ffmpeg
3. Install webpages
- Clone this repo in your web folder (ex: /share/Web/youtube-dl).
- Create the video folder and check the permissions.
- Access your page (ie: http://(my_nas_IP)/youtube-dl/index.php)
4. Configuration
- The included
.htaccess
file should block direct browser access to theconfig.json
file. - To update your settings open http://(my_nas_IP)/youtube-dl/index.php in your browser
- Navigate to the Settings tab
- Edit and Save settings
5. Environment Variables
ALLOWED_DIRECTORIES
ALLOWED_DIRECTORIES
is an optional env var that limits the locations that this web app is allowed to write and delete. It must be a comma separated list of aboslute paths.
Examples:
/Share/Multimedia,/Share/Web/Logs
/Share/Multimedia/Web
CSS Theme
License
GPL v3 see LICENSE