# GrPopPro

Watch movies and series with greek subtitles using mpv

In order to change menus just leave the relevant menu uncommented

In order to change player to vlc just replace the player variable to vlc in the relevant part of the code

If you want to run on termux make sure [mpv](https://f-droid.org/en/packages/is.xyz.mpv/) is installed on your device and fzf will be installed automatically if not already installed via `pkg install fzf` or `apt install fzf`

## Demo

[Interactive menu for series using dmenu](./assets/video-220502-0258-55.mp4)

[Running on termux](./assets/ScreenRecord-20220502-032628.mp4)

[With Keybindings(Possible spoilers for War of the worlds if you speak greek)](./assets/video-220914-0216-49.mp4)

## Installation

```sh
git clone https://git.konsthol.eu/konsthol/GrPopPro
cd GrPopPro
chmod +x grpoppro
sudo cp grpoppro /usr/bin/
(Or cp grpoppro anywhere in your $PATH)
```

Or

```sh
wget https://git.konsthol.eu/konsthol/GrPopPro/raw/branch/main/grpoppro
chmod +x grpoppro
sudo mv grpoppro /usr/bin/
(Or mv grpoppro anywhere in your $PATH)
```

## Usage

To watch a movie `grpoppro "Name of movie"`

To watch a series `grpoppro "Name of series" season episode`

> Episodes must be in formatted as 01 02 03
**

To watch a series

```sh
grpoppro --menu
```

To continue a series

```sh
grpoppro --resume
```

To continue unfinished series episode

```sh
grpoppro --finish
```

To select which series to resume

```sh
grpoppro --select
```

To view the last episode watched across all series

```sh
grpoppro --history
```

To open in browser

```sh
grpoppro --open "Name of movie or tv series"
```

## Dependencies

* bash
* jq
* curl
* mpv
* grep
* awk
* sed
* head
* cut
* pidof
* fuzzel plus wofi or fzf

## Why is it called GrPopPro?

It was inspired by pop. Since it provides greek subtitled videos there was another repo called GrPop. The script from GrPop directly opened the fetched link in the browser. The one here initially only used mpv, so it was named GrPopPro. Now the functionality to open in the browser was added with the option --open.

## Credits go to

* [Drew](https://gitlab.com/uoou)

As this script is based on his [pop](https://gitlab.com/uoou/dotfiles/-/raw/master/stow/bin/home/drew/.local/bin/pop) script

* [CoverApi](https://coverapi.store/)

As they provide the movie and series database

* [IMDB](https://www.imdb.com/)

As they provide the ids
