support new args: --quality and --cdn (#18)

This commit is contained in:
dcd
2020-08-19 12:41:34 -06:00
committed by GitHub
parent 7f486ed6fd
commit 70a5ae9978
3 changed files with 13 additions and 6 deletions

View File

@@ -14,20 +14,24 @@ echo "Running scripts..."
### Generate playlist and XML data from Lazystream
if [ "$use_lazystream" = "yes" ]; then
args=""
if [ -z $quality ]; then args+=" --quality $quality"; fi
if [ "$cdn" = "l3c" ]; then args+=" --cdn l3c"; fi
if [ "$include_nhl" = "yes" ]; then
echo "Running Lazystream (NHL)..."
echo "Running Lazystream (NHL $quality via $cdn)..."
mkdir -p /playlists/lazystream
lazystream generate xmltv \
--channel-prefix Lazystream:\ NHL \
--start-channel 1000 \
--start-channel 1000 $args \
/playlists/lazystream/lazystream-nhl
fi
if [ "$include_mlb" = "yes" ]; then
echo "Running Lazystream (MLB)..."
echo "Running Lazystream (MLB $quality via $cdn)..."
mkdir -p /playlists/lazystream
lazystream --sport mlb generate xmltv \
--channel-prefix Lazystream:\ MLB \
--start-channel 2000 \
--start-channel 2000 $args \
/playlists/lazystream/lazystream-mlb
fi
fi
@@ -81,4 +85,4 @@ if [ "$use_plexAPI" = "yes" ]; then
fi
fi
exit
exit