Пример #1
0
        private static async Task RunWithoutConfig()
        {
            string courseUrl           = TUI.GetCourseUrl();
            string token               = TUI.GetLoginToken();
            var    courseRootDirectory = TUI.GetPath();
            var    selectedQuality     = TUI.GetQuality();


            Config config = new Config
            {
                AuthenticationToken = token,
                Quality             = selectedQuality,
                CourseDirectory     = courseRootDirectory
            };
            await config.Save();

            Console.WriteLine(TUI.CONTINUEGLYPH + "Saved entries to config file");
            Log.Information("Saved entries to config file. Intializing Course Extractor");

            await RunExtractorAndDownloader(config, courseUrl);
        }
Пример #2
0
        private static async Task RunWithConfig(Config config)
        {
            string courseUrl = TUI.GetCourseUrl();

            await RunExtractorAndDownloader(config, courseUrl);
        }