From 70a5ae9978c3fb73bd49f00da741710755c8f07a Mon Sep 17 00:00:00 2001 From: dcd Date: Wed, 19 Aug 2020 12:41:34 -0600 Subject: [PATCH] support new args: --quality and --cdn (#18) --- Dockerfile | 1 + root/cronjob.sh | 14 +++++++++----- sample.env | 4 +++- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5eec113..76ceb87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/root/cronjob.sh b/root/cronjob.sh index e50a5be..3d8d1b3 100755 --- a/root/cronjob.sh +++ b/root/cronjob.sh @@ -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 \ No newline at end of file +exit diff --git a/sample.env b/sample.env index 6fa88c0..5cbc5ae 100644 --- a/sample.env +++ b/sample.env @@ -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 @@ -41,4 +43,4 @@ use_plexAPI=no plexIP= plexPORT=32400 plexToken= -plexID= \ No newline at end of file +plexID=