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

@@ -69,6 +69,7 @@ ENV PUID=1000 \
use_lazystream=yes \
include_nhl=yes\
include_mlb=yes \
cdn=akc \
use_guide2go=no \
JsonList="CBLguide.json SATguide.json SATSport.json" \
use_embyAPI=no \

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

View File

@@ -12,6 +12,8 @@ use_xTeveAPI=yes
use_lazystream=yes
include_nhl=yes
include_mlb=yes
cdn=akc
#quality=720p60
### Guide2go Config
use_guide2go=no