From 20f5746fd21307e71a42491e5c4179dd8738859c Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Tue, 11 Jan 2022 17:40:45 -0500 Subject: [PATCH] feat: adds configurable starting channel number (#81) * feat: adds configurable starting channel number * fix: adds default values for start channel * fix: forgot my fi --- root/cronjob.sh | 12 ++++++++++-- sample.env | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/root/cronjob.sh b/root/cronjob.sh index bdb1c01..303c874 100755 --- a/root/cronjob.sh +++ b/root/cronjob.sh @@ -30,7 +30,11 @@ if [ "$use_lazystream" = "yes" ]; then nhl_args+=("--channel-prefix") nhl_args+=("Lazystream: NHL") nhl_args+=("--start-channel") - nhl_args+=("1000") + 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") - mlb_args+=("2000") + 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 diff --git a/sample.env b/sample.env index 83b04fb..7025a16 100644 --- a/sample.env +++ b/sample.env @@ -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