Fixed unnecessary bug.

This commit is contained in:
2024-03-03 17:28:10 +02:00
parent e8218f1f75
commit 09b3c8c9eb
2 changed files with 142 additions and 33 deletions

View File

@@ -1,50 +1,44 @@
# tv.sh
A small script to offer a selection menu of channels in ustvgo.tv using rofi (or dmenu if you change the code) and start playing in mpv.
A small script to offer a selection menu of channels in thetvapp.to using tofi (or dmenu etc if you change the code) and start playing in mpv.
Intended for those who like the selection but don't necessarily want to add the m3u file to a program like vlc.
You should first go get [ustvgo_to_m3u](https://github.com/benmoose39/ustvgo_to_m3u) which actually does everything for this to be useful and then change the path to the ustvgo.m3u file in the script
It clones the repo [thetvappstream](https://github.com/habitual69/thetvappstream) which actually does everything for this to be useful. Meaning this is the program that actually provides the channels and the script is just a menu to select them.
## Installation
```sh
git clone https://git.konsthol.eu/konsthol/UsTvGo_Menu
cd UsTvGo_Menu
git clone https://git.konsthol.eu/konsthol/TheTvApp_Menu
cd TheTvApp_Menu
sudo cp tv.sh /usr/bin/
(Or cp tv.sh anywhere in your $PATH)
```
## Usage
Simply run `tv.sh` or even better assign it to run with a keybinding
Also as benmoose39 says in his repo the playlist url changes every 4 hours so if you don't hate setting up cron jobs you should do the following
```sh
crontab -e (to open the cronjobs file)
0 */4 * * * ~/PATH_UP_TO/ustvgo_to_m3u/autorun.sh
```
If you want it to renew before 4 hours have passed or after, you can change the cron parameters according to [crontab.guru](https://crontab.guru/)
Simply run `tv.sh stream` or `tv.sh schedule` or even better assign those two functions to run with a keybinding.
## Dependencies
* grep
* awk
* git
* curl
* sed
* rofi (or dmenu)
* tofi (or dmenu if you change the code)
* mpv
* tail
* grep
* npm
* node
* pup
* jq
* notify-send (Optional)
## Credits go to
* [benmoose39](https://github.com/benmoose39)
* [habitual69](https://github.com/habitual69)
As this script uses his [ustvgo_to_m3u](https://github.com/benmoose39/ustvgo_to_m3u) script
As this script uses his [thetvappstream](https://github.com/habitual69/thetvappstream) script.
* [USTVGO](https://ustvgo.tv/)
As they provide the channel streams
* [THETVAPP](https://thetvapp.to/)
As they provide the channel streams.