• Stars
    star
    232
  • Rank 172,847 (Top 4 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created over 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A terminal iptv player written in bash

termv

A terminal iptv player written in bash


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

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

For an example for a custom channels list and how to make one yourself, visit this gist.

For windows support, consider using termv-rs, a rewrite of termv in rust.

Dependencies

  • curl
  • mpv
  • gawk
  • jq
  • fzf
  • xdo (optional, for -s flag)

Usage

Usage:   termv [OPTIONS] query

Options:
  General Options:
    -h, --help                Print this help text and exit.
    -v, --version             Print program version and exit.
    -u, --update              Update channel list to latest version.

  Player Options:
    -f, --full-screen         Open mpv in fullscreen.
    -s, --swallow             Swallow terminal during playback (X11 only) based on devour; https://github.com/salman-abedin/devour.sh

  Environment variables:  
    TERMV_AUTO_UPDATE         Auto update channel list to latest version. (default: true)
    TERMV_SWALLOW             Always swallow terminal during playback. (default: false)
    TERMV_FULL_SCREEN         Always open mpv in fullscreen. (default: false)
    TERMV_DEFAULT_MPV_FLAGS   Default arguments which are passed to mpv. (default: --no-resume-playback)
    TERMV_CHANNELS_URL        URL to the channel list. (default: https://iptv-org.github.io/api/channels.json)
                                Any other URL must be in the same format as the default one.
    TERMV_STREAMS_URL         URL to the streams list. (default: https://iptv-org.github.io/api/streams.json)
                                Any other URL must be in the same format as the default one.

  Improve me on GitHub:
    https://github.com/Roshan-R/termv

Installation

Direct download

sudo wget -O /usr/local/bin/termv -q --show-progress https://raw.githubusercontent.com/Roshan-R/termv/main/termv && sudo chmod +x /usr/local/bin/termv

Arch Linux

Install from the AUR (with your preferred AUR helper)

yay -S termv

Nix

Users of the Nix package manager with flakes support can execute termv using

nix run github:Roshan-R/termv

MacOS

For MacOs users with the homebrew package manager

brew tap Roshan-R/termv https://github.com/Roshan-R/homebrew-termv
brew install termv

Installation by cloning the repository

git clone https://github.com/Roshan-R/termv
cd termv
  • Install with the Makefile
sudo make install
  • Uninstall with the Makefile
sudo make uninstall

Credits

A big thank you to all the contributors

Thanks to ytfzf for the Makefile and tmpmail as a reference on how to structure bash scripts.

More Repositories

1

PyDrop

A free and opensource alternative to Dropover
Python
30
star
2

Cherava

Cherava, a web based scraper environment that focuses on simplicity.
JavaScript
13
star
3

termv-rs

Termv. Now blazingly fast
Rust
10
star
4

ieee-xplore-unlocker

A browser extension to get locked content from ieee xplore using sci-hub
JavaScript
8
star
5

Wazam

an (un)Official Shazam web client built using Django
Python
7
star
6

Lofi-Player

An Audio player which plays internet radio streams featuring lofi music made using qt5.
Shell
6
star
7

kickass

Assignment helper
Shell
6
star
8

applock

An applocker for linux
C
4
star
9

image-view.nvim

A neovim plugin to preview images from the terminal using ueberzug
Python
3
star
10

asyncmongo

Python
3
star
11

yt-music-dwn

JavaScript
2
star
12

telegram-bot

A fun telegram bot
Python
2
star
13

Govtimageresizer

A GUI + CLI tool which help users to apply government applications according to the specifications provided
Python
2
star
14

ctoalgo

A simple bash script to convert C code to an Algorithm-ish format
Shell
2
star
15

imcat

A bash script to view images right from the terminal
Shell
2
star
16

Roshan-R

2
star
17

portfolio

Rust
1
star
18

tempos

A hobby 32 bit OS
C++
1
star
19

hacktober-101

Get comfortable with hacking!
C++
1
star
20

dwnpy

A Gtk GUI app to download media from various sites using youtube-dl
Python
1
star
21

iot

Python
1
star
22

recomendation-system

Python
1
star
23

blog

Personal Blog made using jekyll
HTML
1
star
24

yew-vision

1
star
25

applockgui

A WIP GUI for applock
Python
1
star
26

show-local-ip

A simple cinnamon desktop desklet to show the local ip of the computer
JavaScript
1
star
27

threejs-demo

JavaScript
1
star
28

piMediaBox

A raspberry pi media streaming setup for popular streaming sites
HTML
1
star
29

homebrew-termv

A homebrew tap for termv.
Ruby
1
star
30

amazon-pay-chrome-extension

A Chrome Extension to add basic functionalities to amazon pay's UI
JavaScript
1
star
31

mokri

Mock APIs servers done right.
Go
1
star
32

pyKickass

Python
1
star
33

react-threejs-example

JavaScript
1
star
34

old.blog

HTML
1
star
35

dmenu

Personal build of dmenu
C
1
star
36

fwebcm

A fake webcam for linux
Shell
1
star
37

dwm

Personal build of dwm
C
1
star