Home

Awesome

CastBlock PHP

A utility to automatically skip sponsorship mentions in Youtube videos playing on your Chromecast.

This software is intended to run as a service in your home network, for example by running it on a Raspberry Pi or similar.

Heavily inspired by stephen304/castblock.

The sponsorship segments are provided by the Sponsorblock browser extension.

Features

Installation

You need go-chromecast installed on your system, as well as PHP 7.2 or higher.

Download the castblock-php.phar file from the Releases page.

Usage

Run php castblock-php.phar on a device that is in the same network as your Chromecast device or devices.

For example, you can install it as a service with systemd or run it within screen.

By setting up a systemd service, you can have systemd automatically start castblock-php on system startup, persist the logs, monitor the process, and restart castblock-php automatically if needed. You can use castblock.service as an example systemd service. Documentation for how to install & use the service file is within the file itself.

Options

You can adjust the debugging verbosity by adding -v, -vv or -vvv.

Contributions

Contributions via Issues or Pull Requests are welcomed.