ytr - YouTube Randomizer
ytr (YouTube Randomizer) is a simple terminal-based application for managing a collection of YouTube videos. It allows users to add videos, list them, delete entries, and open a random video in the web browser.
Features
- Add YouTube videos to the saved list
- Play a random video from the saved list
- Manage videos in a TUI (add, search, delete, play random, play selected)
Installation
go install github.com/DanilLut/ytr@latest
Usage
Run the program with different options:
Play a random video from the saved list (removes video from the list automatically)
ytr
Add a YouTube video
ytr <YouTube URL>
Launch TUI mode
ytr -t
Show help
ytr -h
Configuration & Storage
The application stores video entries in a JSON database located at:
- Linux/macOS:
~/.config/ytr/db.json
- Windows:
%APPDATA%\ytr\db.json
Dependencies
This project uses the following Go libraries:
License
This project is licensed under the MIT License. See LICENSE for details.
Contributions
Pull requests and feature suggestions are welcome! Feel free to open an issue or contribute to the project.