Merge pull request #976 from bruvv/patch-2

[Castsponserblock] Added CSS_MUTE_ADS config option
This commit is contained in:
Alexandre
2023-09-02 13:29:54 +02:00
committed by GitHub
3 changed files with 8 additions and 10 deletions

View File

@@ -1,22 +1,18 @@
### 0.4.0-1 (02-09-2023)
- Added CSS_MUTE_ADS config added, mutes ADS. Bool, default to true
## 0.4.0 (02-09-2023) ## 0.4.0 (02-09-2023)
- Update to latest version from gabe565/CastSponsorSkip - Update to latest version from gabe565/CastSponsorSkip
### 1.3-4 (27-08-2023) ### 1.3-4 (27-08-2023)
- Chromecast check fixed @bruvv - Chromecast check fixed @bruvv
- Readme updated to reflect the changes @bruvv - Readme updated to reflect the changes @bruvv
### 1.3-3 (25-08-2023) ### 1.3-3 (25-08-2023)
- Start up fixed @bruvv - Start up fixed @bruvv
### 1.3-2 (22-08-2023) ### 1.3-2 (22-08-2023)
- Minor bugs fixed - Minor bugs fixed
- Switch to castsponsorskip @bruvv - Switch to castsponsorskip @bruvv
## 1.1 (15-05-2023) ## 1.1 (15-05-2023)
- Updated chromecast-go - Updated chromecast-go
### 1.00 (14-03-2023) ### 1.00 (14-03-2023)
- Minor bugs fixed - Minor bugs fixed
## 1.0 ## 1.0
- Initial build - Initial build

View File

@@ -18,16 +18,18 @@
"CSS_DISCOVER_INTERVAL": "5m", "CSS_DISCOVER_INTERVAL": "5m",
"CSS_PAUSED_INTERVAL": "1m", "CSS_PAUSED_INTERVAL": "1m",
"CSS_PLAYING_INTERVAL": "1s", "CSS_PLAYING_INTERVAL": "1s",
"CSS_YOUTUBE_API_KEY": " " "CSS_YOUTUBE_API_KEY": "",
"CSS_MUTE_ADS": "true"
}, },
"schema": { "schema": {
"CSS_CATEGORIES": "str", "CSS_CATEGORIES": "str",
"CSS_DISCOVER_INTERVAL": "str", "CSS_DISCOVER_INTERVAL": "str",
"CSS_PAUSED_INTERVAL": "str", "CSS_PAUSED_INTERVAL": "str",
"CSS_PLAYING_INTERVAL": "str", "CSS_PLAYING_INTERVAL": "str",
"CSS_YOUTUBE_API_KEY": "str" "CSS_YOUTUBE_API_KEY": "str",
"CSS_MUTE_ADS": "bool"
}, },
"slug": "sponsorblockcast", "slug": "sponsorblockcast",
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/sponsorblockcast", "url": "https://github.com/alexbelgium/hassio-addons/tree/master/sponsorblockcast",
"version": "0.4.0" "version": "0.4.0-1"
} }

View File

@@ -6,7 +6,7 @@
mkdir -p /tmp/castsponsorskip mkdir -p /tmp/castsponsorskip
# Export options as env variables # Export options as env variables
for var in CSS_CATEGORIES CSS_DISCOVER_INTERVAL CSS_PAUSED_INTERVAL CSS_PLAYING_INTERVAL CSS_YOUTUBE_API_KEY; do for var in CSS_CATEGORIES CSS_DISCOVER_INTERVAL CSS_PAUSED_INTERVAL CSS_PLAYING_INTERVAL CSS_YOUTUBE_API_KEY CSS_MUTE_ADS; do
if bashio::config.has_value "$var"; then if bashio::config.has_value "$var"; then
export "$var"="$(bashio::config "$var")" export "$var"="$(bashio::config "$var")"
fi fi