From ceb51e6bc1df68a19b75c111477d8f8fe985f9ec Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Mon, 10 Jul 2023 01:45:36 +0200 Subject: [PATCH] Update downloader.py --- facebook_downloader/downloader.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/facebook_downloader/downloader.py b/facebook_downloader/downloader.py index beaad5c..01af498 100644 --- a/facebook_downloader/downloader.py +++ b/facebook_downloader/downloader.py @@ -72,7 +72,7 @@ class FacebookDownloader: with requests.get(self.__update_check_endpoint) as response: if response.json()['tag_name'] != self.__program_version_number: print(f"* A new release is available -> facebook-downloader v{response.json()['tag_name']}.\n" - f"* Run 'pip install --upgrade facebook-downloader' to get the updates.") + f"* Run 'pip install --upgrade facebook-downloader' to get the updates.\n") else: pass @@ -121,7 +121,7 @@ class FacebookDownloader: # Press ENTER. url_entry_field.send_keys(Keys.ENTER) - print("Loading web resources... Please wait.") + print("* Loading web resources... Please wait.") # Find the download button (this clicks the first button which returns a video in hd). download_btn = WebDriverWait(self.__driver, 20).until( @@ -136,9 +136,9 @@ class FacebookDownloader: with open(os.path.join(self.__downloads_directory, self.__format_output_filename(self.__args.output)), 'wb') as file: for chunk in tqdm(response.iter_content(chunk_size=8192), - desc=f"Downloading: {file.name}"): + desc=f"* Downloading: {file.name}"): file.write(chunk) - print(f"Downloaded: {file.name}") + print(f"* Downloaded: {file.name}") # Close driver. self.__driver.close()