feat: adds configurable starting channel number (#81)

* feat: adds configurable starting channel number

* fix: adds default values for start channel

* fix: forgot my fi
This commit is contained in:
Josh Wright
2022-01-11 17:40:45 -05:00
committed by GitHub
parent a64b617c24
commit 20f5746fd2
2 changed files with 12 additions and 2 deletions

View File

@@ -30,7 +30,11 @@ if [ "$use_lazystream" = "yes" ]; then
nhl_args+=("--channel-prefix")
nhl_args+=("Lazystream: NHL")
nhl_args+=("--start-channel")
if [ -z "$nhl_start_channel" ]; then
nhl_args+=("1000")
else
nhl_args+=("$nhl_start_channel")
fi
nhl_args+=("/playlists/lazystream/lazystream-nhl")
if [ "$nhl_exclude_home" = "yes" ]; then nhl_args+=("--exclude-feeds" "HOME"); fi
@@ -54,7 +58,11 @@ if [ "$use_lazystream" = "yes" ]; then
mlb_args+=("--channel-prefix")
mlb_args+=("Lazystream: MLB")
mlb_args+=("--start-channel")
if [ -z "$mlb_start_channel" ]; then
mlb_args+=("2000")
else
nhl_args+=("$mlb_start_channel")
fi
mlb_args+=("/playlists/lazystream/lazystream-mlb")
if [ "$mlb_exclude_home" = "yes" ]; then mlb_args+=("--exclude-feeds" "HOME"); fi

View File

@@ -15,12 +15,14 @@ use_xTeveAPI=yes
trim_xmltv=no
use_lazystream=yes
include_nhl=yes
nhl_start_channel=1000
#nhl_exclude_home=yes
#nhl_exclude_away=yes
#nhl_exclude_national=yes
#nhl_exclude_french=yes
#nhl_exclude_composite=yes
include_mlb=yes
mlb_start_channel=2000
#mlb_exclude_home=yes
#mlb_exclude_away=yes
#mlb_exclude_national=yes