add some quick options to exclude feeds (#57)

This commit is contained in:
taylorbourne
2021-10-29 00:44:41 -07:00
committed by GitHub
parent b87d50d81d
commit 881a228c30
2 changed files with 20 additions and 0 deletions

View File

@@ -30,6 +30,12 @@ if [ "$use_lazystream" = "yes" ]; then
nhl_args+=("1000") nhl_args+=("1000")
nhl_args+=("/playlists/lazystream/lazystream-nhl") nhl_args+=("/playlists/lazystream/lazystream-nhl")
if [ "$nhl_exclude_home" = "yes" ]; then nhl_args+=("--exclude-feeds" "HOME"); fi
if [ "$nhl_exclude_away" = "yes" ]; then nhl_args+=("--exclude-feeds" "AWAY"); fi
if [ "$nhl_exclude_national" = "yes" ]; then nhl_args+=("--exclude-feeds" "NATIONAL"); fi
if [ "$nhl_exclude_french" = "yes" ]; then nhl_args+=("--exclude-feeds" "FRENCH"); fi
if [ "$nhl_exclude_composite" = "yes" ]; then nhl_args+=("--exclude-feeds" "COMPOSITE"); fi
lazystream generate xmltv "${args[@]}" "${nhl_args[@]}" lazystream generate xmltv "${args[@]}" "${nhl_args[@]}"
fi fi
if [ "$include_mlb" = "yes" ]; then if [ "$include_mlb" = "yes" ]; then
@@ -46,6 +52,11 @@ if [ "$use_lazystream" = "yes" ]; then
mlb_args+=("2000") mlb_args+=("2000")
mlb_args+=("/playlists/lazystream/lazystream-mlb") mlb_args+=("/playlists/lazystream/lazystream-mlb")
if [ "$mlb_exclude_home" = "yes" ]; then mlb_args+=("--exclude-feeds" "HOME"); fi
if [ "$mlb_exclude_away" = "yes" ]; then mlb_args+=("--exclude-feeds" "AWAY"); fi
if [ "$mlb_exclude_national" = "yes" ]; then mlb_args+=("--exclude-feeds" "NATIONAL"); fi
if [ "$mlb_exclude_composite" = "yes" ]; then mlb_args+=("--exclude-feeds" "COMPOSITE"); fi
lazystream generate xmltv "${args[@]}" "${mlb_args[@]}" lazystream generate xmltv "${args[@]}" "${mlb_args[@]}"
fi fi
fi fi

View File

@@ -11,7 +11,16 @@ use_xTeveAPI=yes
### Lazystream Config ### Lazystream Config
use_lazystream=yes use_lazystream=yes
include_nhl=yes include_nhl=yes
#nhl_exclude_home=yes
#nhl_exclude_away=yes
#nhl_exclude_national=yes
#nhl_exclude_french=yes
#nhl_exclude_composite=yes
include_mlb=yes include_mlb=yes
#mlb_exclude_home=yes
#mlb_exclude_away=yes
#mlb_exclude_national=yes
#mlb_exclude_composite=yes
cdn=akc cdn=akc
#quality=720p60 #quality=720p60