baywatch is a TUI for The Pirate Bay built using Textual. It uses peerflix to stream torrents and Transmission to download torrents.
Optionally install peerflix:
npm install -g peerflixOptionally install Transmission: https://transmissionbt.com/download/
Install baywatch via pip:
pip install bay-watchLaunch baywatch
baywatchTo open the configuration editor:
baywatch -cTo output the app log:
baywatch -l out.logBy default play uses mpv to handle peerflix streams and open a file selection dialog when multiple files are present in the torrent. To change this, open the config editor using baywatch -c and change Play and Play Multifile.
For instance, to set peerflix to use VLC and to play all files in a multifile torrent (e.g., like an album):
Play:
peerflix '{}' --vlcPlay Multifile:
peerflix '{}' --vlc -aSee peerflix documentation for more details.
On download, baywatch attempts to connect to Transmission or transmission-daemon. baywatch will try to open transmission-gtk if it is unable to find an running Transmission instance. This can be turned off or changed to another transmission interface by setting the Command (Transmission) or Try Open (Transmission) configuration variables.
baywatch is made for educational purposes for downloading legal torrents.
