All Projects → stephen304 → castblock-legacy

stephen304 / castblock-legacy

Licence: GPL-3.0 license
Automatically skip integrated ads on youtube playing on chromecast

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to castblock-legacy

script.service.sponsorblock
Kodi add-on for SponsorBlock
Stars: ✭ 83 (+1.22%)
Mutual labels:  adblock, sponsorblock
SponsorBlockSafari
Safari web-extension glue code for SponsorBlock
Stars: ✭ 27 (-67.07%)
Mutual labels:  adblock, sponsorblock
Sponsorblock
Skip YouTube video sponsors (browser extension)
Stars: ✭ 3,627 (+4323.17%)
Mutual labels:  adblock, sponsorblock
Trickl
trickl torrent client
Stars: ✭ 50 (-39.02%)
Mutual labels:  chromecast
AdGuardHome
Network-wide ads & trackers blocking DNS server
Stars: ✭ 16,027 (+19445.12%)
Mutual labels:  adblock
UnboundBL
🛑 DNSBL (adblock) on OPNsense with UnboundBL & Unbound DNS
Stars: ✭ 63 (-23.17%)
Mutual labels:  adblock
cast
A flutter cast plugin
Stars: ✭ 23 (-71.95%)
Mutual labels:  chromecast
adblockplusui
Shared Adblock Plus UI code
Stars: ✭ 16 (-80.49%)
Mutual labels:  adblock
Integrations
Open Source integrations for Vanced (SponsorBlock and Return YouTube Dislikes)
Stars: ✭ 22 (-73.17%)
Mutual labels:  sponsorblock
uBlock-fillters
Additional filter list for uBO/Adblock
Stars: ✭ 21 (-74.39%)
Mutual labels:  adblock
hosts.whitelists
Collection of whitelists hosts. See also hosts.extras [ https://git.io/J3b5A ] and StevenBlack's hosts project [ https://git.io/Je0XR ]
Stars: ✭ 27 (-67.07%)
Mutual labels:  adblock
punchtop
A power hour written in rust with Chromecast support
Stars: ✭ 26 (-68.29%)
Mutual labels:  chromecast
adblock-dns-server
Adblocking dns server using bind and nginx
Stars: ✭ 54 (-34.15%)
Mutual labels:  adblock
SomaFM
A simple Python 3.x terminal interface for streaming SomaFM
Stars: ✭ 27 (-67.07%)
Mutual labels:  chromecast
SponSkrub
Strip advertisements from downloaded YouTube videos
Stars: ✭ 55 (-32.93%)
Mutual labels:  sponsorblock
ublock-origin-abf
Abort Browser Fingerprinting Scripts via uBlock Origin
Stars: ✭ 29 (-64.63%)
Mutual labels:  adblock
Chromecast-Kiosk
A open source software to create a digital signage system with google chromecasts.
Stars: ✭ 81 (-1.22%)
Mutual labels:  chromecast
Android-Webview-Adblock
A Adblock System for Android Webview
Stars: ✭ 38 (-53.66%)
Mutual labels:  adblock
pihole-facebook
Facebook DNS Blocklist for Pihole
Stars: ✭ 96 (+17.07%)
Mutual labels:  adblock
anti-anti-AD
为什么不应使用antiAD去广告列表,以及选择更多优秀的替代品
Stars: ✭ 338 (+312.2%)
Mutual labels:  adblock
⚠️ Notice
This project has been deprecated in favor of numerous forks
https://github.com/erdnaxeli/castblock Easiest upgrade due to Dockerfile
https://github.com/willemstuursma/castblock-php PHP port
https://github.com/chromecast-sponsorblock/chromecast-sponsorblock

CastBlock

A small utility to skip integrated ads on youtube when played on chromecasts

Installation

Arch Linux

aurman -S castblock-git

Any Distro via Docker

x86 and ARM Docker images are available from DockerHub as stephen304/castblock:latest

docker pull stephen304/castblock:latest
docker run --network="host" stephen304/castblock

From Source

  • Install the prerequisites:
    • go-chromecast
    • jq - sudo apt-get install jq
    • bc - sudo apt-get install bc
    • cmp
    • timeout
  • Put castblock in /usr/bin/
  • Put castblock.service in /usr/lib/systemd/system/

Usage

Run castblock while on the same LAN as chromecast devices.

Alternatively, enable and start castblock.service to run in the background. Ensure castblock exists in /usr/bin/ and castblock.service exists in /usr/lib/systemd/system/ as above, then run:

  1. sudo systemctl start castblock
  2. Check the service has started by running sudo systemctl status castblock
  3. And finally, in order to run at boot, type sudo systemctl enable castblock

It should automatically detect all chromecasts on the LAN, keep track of what's playing, and automatically skip sponsors using the SponsorBlock API.

Known Issues

  • May not work with smart TV youtube apps that support cast - dedicated chromecast device required
  • May not detect all chromecasts, does not rescan. If your chromecast is now shown, try re-running
  • Start of skipping is based on polling and may miss the starting split second of a segment
  • Segments shorter than 5 seconds are ignored - seeking on chromecast always causes buffering making skipping super short segments have questionable value
  • Segments less than 10 seconds after a previous segment may play partially or fully due to the post skip timeout which prevents double skipping
  • Script may not cleanly exit / may leave running threads/processes. Fight me. Or make a pull request. Your choice.

Contributing

I welcome all suggestions / code for the above issues as well as other discussion on how to improve the script. Feel free to open an issue or PR with any contributions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].