public void AddTracks(List <VideoItem> tracks) { foreach (var track in tracks) { if (video_tracks.ContainsKey(track.Id)) { continue; } UPnPTrackInfo track_info = new UPnPTrackInfo(track, this); track_info.Save(false); } OnTracksAdded(); }
public void AddTracks(List<MusicTrack> tracks) { foreach (var track in tracks) { if (music_tracks.ContainsKey(track.Id)) { continue; } UPnPTrackInfo track_info = new UPnPTrackInfo (track, this); track_info.Save (false); } OnTracksAdded (); }