cronjob was failing if files didn't already exist (#5)

This commit is contained in:
tarkah
2020-02-28 16:55:28 -08:00
committed by GitHub
parent 29d682d301
commit de8bb0a693

View File

@@ -52,9 +52,7 @@ if [ "$use_lazystream" = "yes" ]; then
if [ "$include_nhl" = "yes" ]; then if [ "$include_nhl" = "yes" ]; then
echo "Running Lazystream (NHL)..." echo "Running Lazystream (NHL)..."
rm ./playlists/lazystream/lazystream-nhl.m3u mkdir -p /playlists/lazystream
rm ./playlists/lazystream/lazystream-nhl.xml
mkdir -p ./playlists/lazystream
lazystream generate xmltv \ lazystream generate xmltv \
--channel-prefix Lazystream:\ NHL \ --channel-prefix Lazystream:\ NHL \
--start-channel 1000 \ --start-channel 1000 \
@@ -62,9 +60,7 @@ if [ "$use_lazystream" = "yes" ]; then
fi fi
if [ "$include_mlb" = "yes" ]; then if [ "$include_mlb" = "yes" ]; then
echo "Running Lazystream (MLB)..." echo "Running Lazystream (MLB)..."
rm ./playlists/lazystream/lazystream-mlb.m3u mkdir -p /playlists/lazystream
rm ./playlists/lazystream/lazystream-mlb.xml
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 \