Skip to content

Main module

The main.py module contains the application's entry point and high-level interaction loop.

main()

The function:

  1. clears the console;
  2. creates a VideoDownloader;
  3. collects download configuration;
  4. asks the user to confirm;
  5. starts the download;
  6. asks whether another download should be performed.

Running the module

The script can be executed directly:

python main.py

The module uses the standard Python entry-point guard:

if __name__ == "__main__":
    main()

Class reference

main

Main script for the Video Downloader application.

This script initializes the VideoDownloader class, prompts the user for download options, and handles multiple download requests in a loop. It supports both single video links and TXT files containing multiple links, as well as video or audio download modes.

main()

Run the Video Downloader application.

Continuously prompts the user for download options and executes downloads until the user chooses to exit.

Returns:

Name Type Description
None None

This function does not return a value.