2026-05-16 12:19:08 +00:00
# PlaylistSaver
2026-08-25 18:17:12 +08:00
A tool to save your YouTube playlist.
2026-08-25 17:46:48 +08:00
2026-08-25 18:17:12 +08:00
## Run from source
2026-08-25 17:46:48 +08:00
2026-08-25 18:17:12 +08:00
Sync project and install dependencies.
```bash
uv sync
2026-08-25 17:46:48 +08:00
```
2026-08-25 11:15:14 +00:00
Activate the virtual environment and run tool with Python:
2026-08-25 18:17:12 +08:00
```bash
2026-08-25 11:15:14 +00:00
.venv/bin/activate # For Windows, use ".\.venv\Scripts\Activate.ps1" or ".\.venv\Scripts\activate.bat"
2026-08-25 18:17:12 +08:00
python main.py
2026-08-25 17:46:48 +08:00
```
2026-08-25 11:15:14 +00:00
# Run from build version
Download this tool from [main repo ](https://repo.weispace.net/wei/PlaylistSaver/releases ) or [GitHub mirror ](https://github.com/WeiDnite1222/PlaylistSaver ) (Ensure the build version you downloaded support you
operating system and architecture)
Use any decompress tool to unzip the build file, then open `PlaylistSaver.exe` (For Unix-like system is `PlaylistSaver` )
See `How to use` to get information about how to use this tool.
2026-08-25 17:46:48 +08:00
## Build
2026-08-25 18:17:12 +08:00
> [!IMPORTANT]
> This project does not support Nuitka for building. Some packages used in this project, such as mpv and yt-dlp,
> may not be able to function or may cause crashes in the building process.
Install build tools:
```bash
uv pip install -e ".[build]"
```
Build this project with PyInstaller:
2026-08-25 17:46:48 +08:00
2026-08-25 11:15:14 +00:00
On Windows, use `build.ps1` script:
2026-08-25 17:46:48 +08:00
```powershell
2026-08-25 11:15:14 +00:00
.\ build . ps1 -Clean # Or "powershell .\build.ps1 -Clean" if you use cmd
```
On other platform, run below command to build:
```bash
python -m PyInstaller PlaylistSaver.spec
2026-08-25 17:46:48 +08:00
```
2026-08-25 18:17:12 +08:00
The build is written to `dist\PlaylistSaver` . This includes only the
2026-08-25 17:46:48 +08:00
bundled mpv files matching the operating system and CPU architecture on which the
build is performed. Build each target platform on that platform.
2026-08-25 18:17:12 +08:00
## How to use