fix channel number conflict (#4)
if both sports are chosen, we want to make sure there is no overlap in channel number
This commit is contained in:
12
cronjob.sh
12
cronjob.sh
@@ -55,14 +55,20 @@ if [ "$use_lazystream" = "yes" ]; then
|
||||
rm ./playlists/lazystream/lazystream-nhl.m3u
|
||||
rm ./playlists/lazystream/lazystream-nhl.xml
|
||||
mkdir -p ./playlists/lazystream
|
||||
lazystream generate xmltv --channel-prefix Lazystream:\ NHL /playlists/lazystream/lazystream-nhl
|
||||
lazystream generate xmltv \
|
||||
--channel-prefix Lazystream:\ NHL \
|
||||
--start-channel 1000 \
|
||||
/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 --sport mlb generate xmltv --channel-prefix Lazystream:\ MLB /playlists/lazystream/lazystream-mlb
|
||||
lazystream --sport mlb generate xmltv \
|
||||
--channel-prefix Lazystream:\ MLB \
|
||||
--start-channel 2000 \
|
||||
/playlists/lazystream/lazystream-mlb
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -117,4 +123,4 @@ if [ "$use_plexAPI" = "yes" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
exit
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user