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 \ use_lazystream=yes \
include_nhl=yes\ include_nhl=yes\
include_mlb=yes \ include_mlb=yes \
cdn=akc \
use_guide2go=no \ use_guide2go=no \
JsonList="CBLguide.json SATguide.json SATSport.json" \ JsonList="CBLguide.json SATguide.json SATSport.json" \
use_embyAPI=no \ use_embyAPI=no \

View File

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

View File

@@ -12,6 +12,8 @@ use_xTeveAPI=yes
use_lazystream=yes use_lazystream=yes
include_nhl=yes include_nhl=yes
include_mlb=yes include_mlb=yes
cdn=akc
#quality=720p60
### Guide2go Config ### Guide2go Config
use_guide2go=no use_guide2go=no
@@ -41,4 +43,4 @@ use_plexAPI=no
plexIP= plexIP=
plexPORT=32400 plexPORT=32400
plexToken= plexToken=
plexID= plexID=