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:
tarkah
2020-02-28 00:57:35 -08:00
committed by GitHub
parent b83585913d
commit 29d682d301

View File

@@ -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