Beispiel #1
0
        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();
        }
Beispiel #2
0
        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 ();
        }