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+=("/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[@]}"
fi
if [ "$include_mlb" = "yes" ]; then
@@ -46,6 +52,11 @@ if [ "$use_lazystream" = "yes" ]; then
mlb_args+=("2000")
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[@]}"
fi
fi