Skip to main content

A TUI wrapper around `catt`.

Project description

https://img.shields.io/badge/code%20style-black-000000.svg Documentation Build Status Coverage Status

A TUI wrapper around catt, enabling you to cast to and control your chromecast devices.

Dependencies

  • Python 3.10+ (older versions >= 3.6 might work, but are not tested)

  • catt (will be installed automatically)

  • yt-dlp (will be installed automatically)

  • Optional: A font containing FontAwesome icons to allow displaying of fancy icons on buttons. The freely available NerdFont collection is recommended. Fancy icons can be disabled and replaced by text (see below).

Installation

pip install lolcatt

Quckstart

At first we need to determine the name of the chromecast device we want to cast to. To do so, run lolcatt --scan. A default device and device aliases can be set in the catt configuration file ~/.config/catt/config.cfg. See catt’s documentation for more information. To start the UI, run lolcatt -d '<device name or alias>' (or simply lolcatt if a default device is set).

To cast, paste either a URL or a path to a local file into the input field and press enter. To add a URL or path to the playback queue instead of playing immediately, hit Ctrl+s instead of enter. To view and navigate in the queue, tap the name of the currently playing item. To seek, tap the progress bar. To change chromecast device, tap the name of the currently active device (currently only devices with set aliases can be selected in this way).

For URLs, all websites supported by yt-dlp (which handles media download under the hood) are supported. Find a list of supported websites here. For local media, most common video and image formats are supported.

Youtube playlists are supported, and each contained video will be added to the playback queue. By specifying a cookie file in the config (per default under ~/.config/lolcatt/config.toml), you can also access private YouTube playlists such as “Watch Later” (https://www.youtube.com/playlist?list=WL), and ensure played YouTube videos are marked as watched.

Troubleshooting

If button icons are not displayed correctly, ensure you are using a font containing FontAwesome icons. Alternatively, you can disable the use of fancy icons in the config file.

If casting does not work for no apparent reason, ensure you have the latest version of yt_dlp installed: pip install --upgrade yt-dlp.

If you encounter any other issues, please open an issue.

Credits

This package was created with Cookiecutter and the LokiLuciferase/cookiecutter-pypackage project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lolcatt-0.5.0.tar.gz (51.3 kB view details)

Uploaded Source

Built Distribution

lolcatt-0.5.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file lolcatt-0.5.0.tar.gz.

File metadata

  • Download URL: lolcatt-0.5.0.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for lolcatt-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a5b7924843f129095fe5b2962c199f0ae1f82c6f02d4ec34017c8066d24ba6bb
MD5 03657bd2b98327916e3be9bfe3ca81c3
BLAKE2b-256 afed3c7b5b20c13e84cde34cea79893d47c5e8e45b7aacde2f5e5ceca6ac74d6

See more details on using hashes here.

File details

Details for the file lolcatt-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: lolcatt-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for lolcatt-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c5749c8fc417ac7f839c0507a0419abf748e105080f06223d0c0fbee089790
MD5 2c52379a841a794a7ba5b2caceaf1580
BLAKE2b-256 f01290d72cd7fcb2e2d1fbacc5ab8d0d603a60f4cfe0474e7dbab46c5e1d2416

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page