Add more to config; Re-order cronjob

This commit is contained in:
taylorbourne
2020-02-26 20:18:46 -08:00
parent 785b9b43e0
commit adc38a1c77

View File

@@ -4,9 +4,14 @@ echo "Running scripts..."
##### Config ##### Config
use_embyAPI="no" use_embyAPI="no"
use_guide2go="no" use_guide2go="no"
use_lazystream="no"
use_plexAPI="no" use_plexAPI="no"
use_xTeveAPI="yes" use_xTeveAPI="yes"
##### Lazystream Config
include_nhl="no"
include_mlb="no"
### List of created lineup json files in /guide2go ### List of created lineup json files in /guide2go
# Exmaple with 3 lineups # Exmaple with 3 lineups
JsonList="CBLguide.json SATguide.json SATSport.json" JsonList="CBLguide.json SATguide.json SATSport.json"
@@ -18,13 +23,6 @@ JsonList="CBLguide.json SATguide.json SATSport.json"
xTeveIP="192.168.1.2" xTeveIP="192.168.1.2"
xTevePORT="34400" 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 ### Emby
# Only necessary if xTeVe API is active # Only necessary if xTeVe API is active
# API Key, https://github.com/MediaBrowser/Emby/wiki/Api-Key-Authentication # 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 # run guide2go in a loop
echo "Running guide2Go..." echo "Running guide2Go..."
if [ "$use_guide2go" = "yes" ]; then if [ "$use_guide2go" = "yes" ]; then