A minimal Twitch CLI client using fzf and mpv
Project description
Twitch Play
A minimal Twitch CLI app built on top of mpv, streamlink, and fzf.
Requirements
- Python 3.10+
- mpv
- streamlink
- fzf
Setup
There's a clientId in the config.py file, which you can use for experiments. Ideally, you want to create your own app and use it, following the steps below:
- Register an app at dev.twitch.tv/console, set OAuth redirect to
http://localhost:8765/callback, type Website Integration, and copy your Client ID. - Set your Client ID in
twitch_play/config.py.
$ git clone https://github.com/kasramp/twitch-play
$ cd twitch-play
$ python -m venv venv && source venv/bin/activate
$ pip install -r requirements.txt
$ ./play-twitch
Usage
| Key | Action |
|---|---|
| Enter | Play stream at best quality |
| Ctrl-L | Play at 480p |
| Ctrl-H | Play at 720p |
| Ctrl-B | Play at best quality |
| Ctrl-O | Pick quality from list |
| Ctrl-F | Search categories (category screen) |
| Esc | Go back |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twitch_play-0.1.0.tar.gz
(18.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twitch_play-0.1.0.tar.gz.
File metadata
- Download URL: twitch_play-0.1.0.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
845bd6a919cb60cbf56d78f581d55980ec375b32f37cde51507c8b9fa689c5d0
|
|
| MD5 |
84ce4ecafc4d47662208cc33d9a0f49d
|
|
| BLAKE2b-256 |
8f220b4cb5f205f61412b4a0509d511934c24c845a3228c6df0a941bbb517061
|
File details
Details for the file twitch_play-0.1.0-py3-none-any.whl.
File metadata
- Download URL: twitch_play-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
925aee86c9d46bed1f8fcd893d0a749ba6b0f49f63941c5eae958020c51ede92
|
|
| MD5 |
ae5478ba8cb2f6b47eab70eb41a90822
|
|
| BLAKE2b-256 |
bc463a264a4c1692e879bbb59d85d2f4145a723c31f31cc40a47bcb397bc11d7
|