Exemple #1
0
        private TorrentManager()
        {
            _useds = new HashSet <long>();
            _queue = new SortedSet <DownloadRequest>(Comparer <DownloadRequest> .Create((x, y) => EpisodeInfo.Compare(x._header, y._header)));

            _schedule = new ScheduleTask();
            _schedule.Start(1000, Update);

            var path = Preference.GetAbsoluteDownloadPath();

            if (Directory.Exists(path) == false)
            {
                var check = Directory.CreateDirectory(path);
            }
        }