예제 #1
0
파일: RssParser.cs 프로젝트: silk186/Sonarr
        protected virtual DateTime GetPublishDate(XElement item)
        {
            var dateString = item.TryGetValue("pubDate");

            if (dateString.IsNullOrWhiteSpace())
            {
                throw new UnsupportedFeedException("Rss feed must have a pubDate element with a valid publish date.");
            }

            return(XElementExtensions.ParseDate(dateString));
        }
예제 #2
0
        protected virtual DateTime GetPublishDate(XElement item)
        {
            var dateString = item.TryGetValue("pubDate");

            return(XElementExtensions.ParseDate(dateString));
        }