Metadata-Version: 2.1
Name: bay-watch
Version: 0.1.3
Summary: todo
Home-page: https://github.com/hdb/baywatch
Author: Hudson Bailey
Author-email: hudsondiggsbailey@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Topic :: Communications :: File Sharing
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.27.1)
Requires-Dist: textual (==0.1.17)
Requires-Dist: textual-inputs (==0.2.5)
Requires-Dist: pyfiglet (==0.8.post1)
Requires-Dist: transmission-rpc (==3.3.0)
Requires-Dist: pyperclip (==1.8.2)

# baywatch

[baywatch](https://github.com/hdb/baywatch) is a TUI for The Pirate Bay built using [Textual](https://github.com/Textualize/textual). It uses [Peerflix](https://github.com/mafintosh/peerflix) to stream torrents and [Transmission](https://transmissionbt.com/) to download.

## Install


```bash
# install dependencies
pip install git+https://github.com/Cvaniak/TextualListViewUnofficial.git@52ea0f2
npm install -g peerflix

# install via pip
pip install bay-watch
```

### Transmission Install (optional)

[https://transmissionbt.com/download/](https://transmissionbt.com/download/)

## Demo

[![asciicast](https://asciinema.org/a/481202.svg)](https://asciinema.org/a/481202)

## Usage

Launch baywatch

```bash
baywatch
```

To open the configuration editor:

```bash
baywatch -c
```

To output the app log (e.g., for development):

```bash
baywatch -l out.log
```

### Streaming Media

By default, pressing `p` will use [mpv](https://mpv.io) to handle peerflix streams and open a file selection dialog when multiple files are present in the torrent. To change this, for instance, to vlc and default to playing all files (e.g., like an album), open the config editor using `baywatch -c` and set `Play` to:

```bash
peerflix '{}' --vlc
```

and `Play Multifile` to:

```bash
peerflix '{}' --vlc -a
```

See [peerflix documentation](https://github.com/mafintosh/peerflix#usage) for more details.

### Transmission

On `d`, baywatch interfaces with Transmission to download torrents. If using the Transmission app, the app must be open in order to complete the download - by default, baywatch will try to open `transmission-gtk` if it is unable to find an open transmission instance. baywatch will also work with other Transmission interfaces or transmission-daemon if they are running.

## Disclaimer

baywatch is made for educational purposes for downloading legal torrents.


