Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CastSponsorSkip] Small fix for startup and readme #964

Merged
merged 6 commits into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sponsorblockcast/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
### 1.3-4 (27-08-2023)
- Chromecast check fixed @bruvv
- Readme updated to reflect the changes @bruvv

### 1.3-3 (25-08-2023)
- Start up fixed
- Start up fixed @bruvv

### 1.3-2 (22-08-2023)
- Minor bugs fixed
Expand Down
10 changes: 5 additions & 5 deletions sponsorblockcast/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# Home assistant add-on: Sponsorblockcast
# Home assistant add-on: CastSponsorSkip

[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)

Expand All @@ -21,17 +21,17 @@ _Thanks to everyone having starred my repo! To star it click on the image below,

## About

Sponsorblockcast is a POSIX shell script that skips sponsored YouTube content and skippable ads on all local Chromecasts, using the SponsorBlock API. It was inspired by CastBlock but written from scratch to avoid some of its pitfalls (see Differences from CastBlock).
CastSponsorSkip is a go script that skips sponsored YouTube content on all local Chromecasts, using the SponsorBlock API. It was inspired by CastBlock but written from scratch to avoid some of its pitfalls (see Differences from CastBlock).

This app is developed by @nichobi here : https://github.com/nichobi/sponsorblockcast
This app is developed by @gabe565 here : https://github.com/gabe565/CastSponsorSkip

Feedback from @diamant-x :
> Special attention that it only works when casting to a chromecast a youtube video. It mostly removes manual interaction, can't magically skip ads when they are forced to be viewed.
> Also, it doesn't seem to work when playing on an android tv through native youtube app, which would be a great addition, or on a smartphone.

## Configuration

See https://github.com/nichobi/sponsorblockcast
See https://github.com/gabe565/CastSponsorSkip

## Installation

Expand All @@ -48,6 +48,6 @@ comparison to installing any other Hass.io add-on.
## Support and issues

Addon : here
App : https://github.com/nichobi/sponsorblockcast
App : https://github.com/gabe565/CastSponsorSkip

[repository]: https://github.com/alexbelgium/hassio-addons
4 changes: 2 additions & 2 deletions sponsorblockcast/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"init": false,
"name": "Castsponsorskip",
"options": {
"CSS_CATEGORIES": "sponsor",
"CSS_CATEGORIES": "sponsor, into, outro, selfpromo",
"CSS_DISCOVER_INTERVAL": "5m",
"CSS_PAUSED_INTERVAL": "1m",
"CSS_PLAYING_INTERVAL": "1s",
Expand All @@ -29,5 +29,5 @@
},
"slug": "sponsorblockcast",
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/sponsorblockcast",
"version": "1.3-3"
"version": "1.3-4"
}
4 changes: 2 additions & 2 deletions sponsorblockcast/rootfs/etc/cont-init.d/99-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
mkdir -p /tmp/castsponsorskip

# Export options as env variables
for var in CSS_DISCOVER_INTERVAL CSS_PAUSED_INTERVAL CSS_PLAYING_INTERVAL CSS_CATEGORIES CSS_YOUTUBE_API_KEY; do
for var in CSS_CATEGORIES CSS_DISCOVER_INTERVAL CSS_PAUSED_INTERVAL CSS_PLAYING_INTERVAL CSS_YOUTUBE_API_KEY; do
if bashio::config.has_value "$var"; then
export "$var"="$(bashio::config "$var")"
fi
done

# Starting app
bashio::log.info "Starting app"
./castsponsorskip &>/proc/1/fd/1
./castsponsorskip