Ejemplo n.º 1
0
        public async Task<PodcastFeed> GetPodcastFeedAsync(Podcast podcast)
        {
            await LoadFileAsync();

            var results = await EvaluatePodcastFeedAsync(podcast.Location);

            if (results.RedirectUri != null)
            {
                var record = new Podcast(podcast);
                record.Location = results.RedirectUri;
                await SaveUpdatedPodcastToFileAsync(record);
                podcast.Update(record);
            }

            return results.Feed;
        }