Ahmed-Zamouche / pytermv

A terminal iptv player written in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytermv

A terminal iptv player written in python

pytermv is a small python script that allows you to select an iptv stream using fzf and play it using mpv.

The list of channels is obtained from https://iptv-org.github.io/.

Dependencies

  • mpv
  • fzf
  • pyfzf
  • git (optional, for installation by cloning the repository)
  • python 3
  • xdo (optional, for -s flag)

Usage

usage: pytermv [-h] [-c CACHE_DIR] [-f] [-s] [-u]

What the program does

optional arguments:
  -h, --help            show this help message and exit
  -c CACHE_DIR, --cache-dir CACHE_DIR
                        path to cache directory
  -f, --full_screen     run in full-screen mode
  -s, --term_swallow    hide controlling terminal while playing
  -u, --update          update the channels database

Text at the bottom of help

Installation

Using installer

curl -sLf https://raw.githubusercontent.com/Ahmed-Zamouche/pytermv/main/install.sh | bash -s -- -install

Cloning the repository

git clone https://github.com/Ahmed-Zamouche/pytermv.git "$HOME"/.pytermv
echo "PATH=\"\$HOME/.pytermv:\$PATH\"" >> "$HOME"/.bashrc
source "$HOME"/.bashrc 

Uninstallation

Using installer

curl -sLf https://raw.githubusercontent.com/Ahmed-Zamouche/pytermv/main/install.sh | bash -s -- --uinstall

Manualy

rm -rf "$HOME"/.pytermv
sed -i '/pytermv/d' "$HOME"/.bashrc

Credits

A big thank you to all the contributors

Thanks to termv for player

About

A terminal iptv player written in python

License:GNU General Public License v3.0


Languages

Language:Python 77.4%Language:Shell 22.6%