From 50801b439d7cde959f5d70cba43d2cc03e604d31 Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Thu, 12 Dec 2019 21:06:33 +0000 Subject: [PATCH] Update google_images_download.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "print(iteration.encode('raw_unicode_escape').decode('utf-8'))" caused the script to crash when characters like "åäö" were used, removing the encoding (or comment/remove the print function) solves this issue. --- google_images_download/google_images_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google_images_download/google_images_download.py b/google_images_download/google_images_download.py index fd89a3a9..97158d56 100755 --- a/google_images_download/google_images_download.py +++ b/google_images_download/google_images_download.py @@ -919,7 +919,7 @@ def download_executor(self,arguments): while i < len(search_keyword): # 3.for every main keyword iteration = "\n" + "Item no.: " + str(i + 1) + " -->" + " Item name = " + (pky) + (search_keyword[i]) + (sky) if not arguments["silent_mode"]: - print(iteration.encode('raw_unicode_escape').decode('utf-8')) + print(iteration) print("Evaluating...") else: print("Downloading images for: " + (pky) + (search_keyword[i]) + (sky) + " ...")