public async Task Scrapping()
        {
            var scrapper = new HorribleSubsScrapper();

            //string result = scrapper.Download("Kaguya-sama wa Kokurasetai").Result;
            IList <HorribleSubsLink>?result = await scrapper.Download("Gintama").ConfigureAwait(true);

            result.ShouldNotBeNull();
        }
Пример #2
0
        static async Task Main(string[] args)
        {
            if (args.Length != 1)
            {
                Console.WriteLine("magnetUri not provided");
                return;
            }

            var scrapper = new HorribleSubsScrapper();
            var episodes = await scrapper.Download(args[0]).ConfigureAwait(true);

            var downloader = new TorrentDownloader();

            downloader.Run(episodes.Select(e => e.Url));
        }