Releases: akhi07rx/File-Uploader-for-Google-Drive
v1.4.18B
Code Changes
-
Importing the
time
module: Thetime
module is imported to measure the total time taken for the file upload. -
Displaying the Total Time: Added a line to display the total time taken for the file upload after displaying the file size. The total time is calculated using the
start_time
andend_time
variables and formatted to two decimal places. -
Displaying the Saved Location: Added a line to display the saved location of the file. The file path is obtained using the
file_path
variable. -
Rearranged Print Statements: The order of the print statements is rearranged to match the updated sequence, providing a more logical flow of information.
v1.3.218B
-
Invalid Command Handling: Previously, if the user entered an invalid command, such as "the download link" instead of a valid URL or one of the defined commands like "exit," the code would raise an error. The updated code now includes error handling to display a message informing the user that they have entered a wrong command and prompts them to enter again.
-
File Extension Recognition: Initially, the code saved downloaded files with the extension ".zip" regardless of the actual file type. The fixed code now attempts to determine the file extension based on the
content-type
header received in the HTTP response. This ensures that the downloaded files are saved with their correct file extensions. -
Download Location: The code was previously saving downloaded files to the folder named "downloads." The updated code now saves the files to the folder named "Downloads" to match the desired location.
-
Cluttered Text: To improve readability and reduce clutter, the updated code adds a line break before displaying the prompt for entering the download link. This separates the prompt from any preceding text and makes it more visually distinct.
Full Changelog: v1.3...v1.3.218B
v1.3: Improved
-
Ability to insert multiple download links: The code now allows the user to enter multiple download links one after the other until they choose to exit the program by typing "exit".
-
Option to exit the program: The user can type "exit" to quit the program instead of providing a download link.
-
Improved user interface: A line break is added before the "Enter the download link" prompt, creating visual separation between each prompt and making it easier to read.
v1.2.218-beta
If the destination folder does not exist in the specified drive location, a new folder will be created with the given name to accommodate the output.