Esempio n. 1
0
        public override void ValidateChildren()
        {
            try {
                RefreshUserSettings(Kernel.Instance.GetLocation(Path));

                if (Math.Abs((lastUpdated - DateTime.Now).TotalMinutes) < UpdateMinuteInterval)
                {
                    return;
                }

                lastUpdated = DateTime.Now;

                RSSFeed feed = new RSSFeed(Url);
                feed.Refresh();
                PrimaryImagePath = feed.ImageUrl;
                children         = feed.Children.Distinct(key => key.Id).ToList();
                SetParent();

                Overview = feed.Description;

                this.OnChildrenChanged(null);
                Kernel.Instance.ItemRepository.SaveItem(this);
            } catch (Exception e) {
                Logger.ReportException("Failed to update podcast!", e);
            }
        }
 private void ValidatePodcast(string address)
 {
     RSSFeed = new RSSFeed(address);
     RSSFeed.Refresh();
 }