mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 01:55:59 +02:00
Merge pull request #960 from bruvv/master
Sponserblock Fix startup script
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
|
|
||||||
|
### 1.3-3 (25-08-2023)
|
||||||
|
- Start up fixed
|
||||||
|
|
||||||
### 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
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"codenotary": "alexandrep.github@gmail.com",
|
"codenotary": "alexandrep.github@gmail.com",
|
||||||
"description": "skips sponsored YouTube content on all local Chromecasts",
|
"description": "skips sponsored YouTube content on all local Chromecasts",
|
||||||
"environment": {
|
"environment": {
|
||||||
"SBCDIR": "/tmp/sponsorblockcast"
|
"SBCDIR": "/tmp/castsponsorskip"
|
||||||
},
|
},
|
||||||
"host_network": true,
|
"host_network": true,
|
||||||
"image": "ghcr.io/alexbelgium/sponsorblockcast-{arch}",
|
"image": "ghcr.io/alexbelgium/sponsorblockcast-{arch}",
|
||||||
@@ -24,9 +24,10 @@
|
|||||||
"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_CATEGORIES": "str",
|
||||||
|
"CSS_YOUTUBE_API_KEY": "str"
|
||||||
},
|
},
|
||||||
"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": "1.3-2"
|
"version": "1.3-3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,10 +2,11 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# make directory
|
# make directory
|
||||||
mkdir -p /tmp/sponsorblockcast
|
|
||||||
|
mkdir -p /tmp/castsponsorskip
|
||||||
|
|
||||||
# Export options as env variables
|
# Export options as env variables
|
||||||
for var in SBCPOLLINTERVAL SBCSCANINTERVAL SBCCATEGORIES SBCYOUTUBEAPIKEY; do
|
for var in CSS_DISCOVER_INTERVAL CSS_PAUSED_INTERVAL CSS_PLAYING_INTERVAL CSS_CATEGORIES CSS_YOUTUBE_API_KEY; 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
|
||||||
@@ -13,4 +14,4 @@ done
|
|||||||
|
|
||||||
# Starting app
|
# Starting app
|
||||||
bashio::log.info "Starting app"
|
bashio::log.info "Starting app"
|
||||||
/./usr/bin/sponsorblockcast &>/proc/1/fd/1
|
./castsponsorskip &>/proc/1/fd/1
|
||||||
|
|||||||
Reference in New Issue
Block a user