Add more to config; Re-order cronjob
This commit is contained in:
31
cronjob.sh
31
cronjob.sh
@@ -4,9 +4,14 @@ echo "Running scripts..."
|
||||
##### Config
|
||||
use_embyAPI="no"
|
||||
use_guide2go="no"
|
||||
use_lazystream="no"
|
||||
use_plexAPI="no"
|
||||
use_xTeveAPI="yes"
|
||||
|
||||
##### Lazystream Config
|
||||
include_nhl="no"
|
||||
include_mlb="no"
|
||||
|
||||
### List of created lineup json files in /guide2go
|
||||
# Exmaple with 3 lineups
|
||||
JsonList="CBLguide.json SATguide.json SATSport.json"
|
||||
@@ -18,13 +23,6 @@ JsonList="CBLguide.json SATguide.json SATSport.json"
|
||||
xTeveIP="192.168.1.2"
|
||||
xTevePORT="34400"
|
||||
|
||||
### Generate playlist and XML data from Lazystream
|
||||
echo "Running Lazystream..."
|
||||
rm ./playlists/lazystream/lazystream.m3u
|
||||
rm ./playlists/lazystream/lazystream.xml
|
||||
mkdir -p ./playlists/lazystream
|
||||
lazystream generate xmltv /playlists/lazystream/lazystream
|
||||
|
||||
### Emby
|
||||
# Only necessary if xTeVe API is active
|
||||
# API Key, https://github.com/MediaBrowser/Emby/wiki/Api-Key-Authentication
|
||||
@@ -49,6 +47,25 @@ plexID=""
|
||||
##
|
||||
#
|
||||
|
||||
### Generate playlist and XML data from Lazystream
|
||||
if [ "$use_lazystream" = "yes" ]; then
|
||||
|
||||
if [ "$include_nhl" = "yes" ]; then
|
||||
echo "Running Lazystream (NHL)..."
|
||||
rm ./playlists/lazystream/lazystream-nhl.m3u
|
||||
rm ./playlists/lazystream/lazystream-nhl.xml
|
||||
mkdir -p ./playlists/lazystream
|
||||
lazystream generate xmltv /playlists/lazystream/lazystream-nhl
|
||||
fi
|
||||
if [ "$include_mlb" = "yes" ]; then
|
||||
echo "Running Lazystream (MLB)..."
|
||||
rm ./playlists/lazystream/lazystream-mlb.m3u
|
||||
rm ./playlists/lazystream/lazystream-mlb.xml
|
||||
mkdir -p ./playlists/lazystream
|
||||
lazystream generate xmltv /playlists/lazystream/lazystream-mlb
|
||||
fi
|
||||
fi
|
||||
|
||||
# run guide2go in a loop
|
||||
echo "Running guide2Go..."
|
||||
if [ "$use_guide2go" = "yes" ]; then
|
||||
|
||||
Reference in New Issue
Block a user