Beispiel #1
0
        public async Task <IEnumerable <AudioLibraryEntry> > RetrieveAsync(IEnumerable <Uri> links)
        {
            var downloadTasks     = links.Select(u => downloader.GetAsync(u)).ToList();
            var htmlTextResponses = await Task.WhenAll(downloadTasks);

            return(htmlTextResponses.Select(r => audioElementRipper.RipAudioTags(r.Address, r.Text))
                   .SelectMany(cat => cat.AudioTags, (cat, tag) => Create(cat, tag, audioTitleRipper, audioSourceRipper))
                   .ToList());
        }