Exemple #1
0
        public string[] GetLabelsForTorrent(TorrentInfo ti)
        {
            List <string> a = new List <string>();

            for (int i = 1 /*skip the null label*/; i < Labels.Count; i++)
            {
                TorrentLabel label = Labels[i];
                if (label.HasTorrent(ti))
                {
                    a.Add(label.Name);
                }
            }

            return(a.ToArray());
        }