Clear streamSources list before update
This commit is contained in:
parent
11133f309d
commit
3241066303
|
@ -106,6 +106,7 @@ public class BongaCamsModel extends AbstractModel {
|
|||
PlaylistParser parser = new PlaylistParser(inputStream, Format.EXT_M3U, Encoding.UTF_8);
|
||||
Playlist playlist = parser.parse();
|
||||
MasterPlaylist master = playlist.getMasterPlaylist();
|
||||
streamSources.clear();
|
||||
for (PlaylistData playlistData : master.getPlaylists()) {
|
||||
StreamSource streamsource = new StreamSource();
|
||||
streamsource.mediaPlaylistUrl = streamUrl.replace("playlist.m3u8", playlistData.getUri());
|
||||
|
|
Loading…
Reference in New Issue