Exemplo n.º 1
0
        public async Task <ActionResult <List <ParsedEpisodeInfo> > > Get(string url)
        {
            if (string.IsNullOrEmpty(url))
            {
                return(BadRequest());
            }

            try
            {
                return(Ok(await _rssFeedService.ParseRssFeedAsync(url)));
            }
            catch (Exception e)
            {
                return(BadRequest(new BadRequestResponse("Failed to parse RSS feed")));
            }
        }