big ui update
A yt-dlp Webui using python and flask.
version 2.1
- better ui than previous versions.
You can run the it using:
- The portable Windows app
- Linux install
- Linux server install which is great to have in a homelab.
- python version 3.x
- the python package "flask"
- Head to the Releases Tab and look for the newest version of the Windows App.
- Download and extract the zip file
- Open the unzipped folder and run the app.py
- A terminal will open and tell to head you to localhost:5000 in your web browser, there you can download your videos!
- Navigate to your desired directory for the install
cd path\to\your\desired\directory
- Setup a screen session in terminal to keep the process running(optional)
screen -S yt-dlp-webui
- Clone the repo
git clone https://github.com/pl44t/yt-dlp-webui.git
cd yt-dlp-webui
- Setup a virtual environment named yt-dlp-webui
python -m venv yt-dlp-webui
or depending on how your python is setup you may neeed to use
python3 -m venv yt-dlp-webui
- Then activate the environment
source yt-dlp-webui/bin/activate
- Install flask and yt-dlp to the python environment
pip install flask yt-dlp
-
Edit the download paths
- Edit the app.py file to download to the correct directory (use nano or any other editor)
nano app.py
- Head to line 8, you should see
BASE_DOWNLOAD_FOLDER = '/BASE/DIRECTORY/FOR/DOWNLOADS/'
- Change '/BASE/DIRECTORY/FOR/DOWNLOADS/' to whatever path from root you want, for example:
'/media/Videos/YouTube/'
- Edit the index.html
nano templates/index.html
- On line 69 (nice)
<input type="text" class="form-control" id="subdir" name="subdir" placeholder="Enter subdirectory under /BASE/DIRECTORY/FOR/DOWNLOADS/">
Change the '/BASE/DIRECTORY/FOR/DOWNLOADS/' text to whatever directory you chose in the previous step
Start the webui
python app.py
or depending on how your python is setup you may neeed to use
python3 app.py
Then head to localhost:5000 to check if the webui is up and running.
To exit the screen session in the terminal but keep it running in the background press:
"Ctrl + a"
and then
"d"
And to resume:
screen -r yt-dlp-webui
-
Default Download Location: By default on Windows, downloads will go to C:\Users\Public\Downloads (where C is the drive letter where the application is running from). Videos will be downloaded to the specified subfolder within this location.
-
Changing the Base Download Location: Navigate to the _internal folder inside the yt-dlp webui folder. Open the config.json file. Edit the "base_download_folder" value to your desired location. Ensure you use double backslashes \ (e.g., \New\Download\Location\).
- Download subtitles.
- Download the video thumbnail.
- Skip sponsored segments (integration with the SponsorBlock browser extension).