Beispiel #1
0
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new YouTubeExtractorMain());
            }
            else
            {
                bool   saveTxt;
                bool   saveHTML;
                string strUrl;

                ImportExportEngine importexportEngine = new ImportExportEngine();

                saveTxt  = args.Contains("-t");
                saveHTML = args.Contains("-h");

                strUrl = args[0];

                importexportEngine.DoImportExport(strUrl, null, saveTxt, saveHTML);
            }
        }