Merge pull request #964 from bruvv/patch-2

[CastSponsorSkip] Small fix for startup and readme
This commit is contained in:
Alexandre
2023-08-27 12:05:00 +02:00
committed by GitHub
4 changed files with 13 additions and 10 deletions

View File

@@ -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

View File

@@ -1,5 +1,5 @@
# Home assistant add-on: Sponsorblockcast
# Home assistant add-on: CastSponsorSkip
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
@@ -21,9 +21,9 @@ _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.
@@ -31,7 +31,7 @@ Feedback from @diamant-x :
## Configuration
See https://github.com/nichobi/sponsorblockcast
See https://github.com/gabe565/CastSponsorSkip
## Installation
@@ -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

View File

@@ -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",
@@ -29,5 +29,5 @@
},
"slug": "sponsorblockcast",
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/sponsorblockcast",
"version": "1.3-3"
"version": "1.3-4"
}

View File

@@ -6,7 +6,7 @@
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
@@ -14,4 +14,4 @@ done
# Starting app
bashio::log.info "Starting app"
./castsponsorskip &>/proc/1/fd/1
./castsponsorskip