Ignore non-existing PNG tags
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Gitea/kapitanbooru-uploader/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Gitea/kapitanbooru-uploader/pipeline/head This commit looks good
				
			This commit is contained in:
		| @@ -139,7 +139,7 @@ class ImageBrowser(tk.Tk): | ||||
|         super().__init__() | ||||
|         self.title("Kapitanbooru Uploader") | ||||
|         self.geometry("900x600") | ||||
|         self.version = "0.4.3" | ||||
|         self.version = "0.4.4" | ||||
|  | ||||
|         self.settings = Settings() | ||||
|         self.tags_repo = TagsRepo(self.settings) | ||||
| @@ -290,7 +290,14 @@ class ImageBrowser(tk.Tk): | ||||
|             parameters = "" | ||||
|             if isinstance(img, PngImagePlugin.PngImageFile): | ||||
|                 parameters = img.info.get("parameters", "") | ||||
|             png_tags = set(parse_parameters(parameters, self.tags_repo).split()) | ||||
|             png_tags = set( | ||||
|                 [ | ||||
|                     x | ||||
|                     for x in parse_parameters(parameters, self.tags_repo).split() | ||||
|                     if process_tag(x, self.tags_repo)[1] | ||||
|                     is not None  # Ignoruj nieistniejące tagi | ||||
|                 ] | ||||
|             ) | ||||
|             img.close() | ||||
|         except Exception as e: | ||||
|             print(_("Błąd przy otwieraniu pliku"), file_path, ":", e) | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| msgid "" | ||||
| msgstr "" | ||||
| "Project-Id-Version: Kapitanbooru Uploader 0.4.3\n" | ||||
| "Project-Id-Version: Kapitanbooru Uploader 0.4.4\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2025-03-02 00:39+0100\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| msgid "" | ||||
| msgstr "" | ||||
| "Project-Id-Version: Kapitanbooru Uploader 0.4.3\n" | ||||
| "Project-Id-Version: Kapitanbooru Uploader 0.4.4\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2025-03-02 00:39+0100\n" | ||||
| "Language: pl\n" | ||||
|   | ||||
| @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | ||||
|  | ||||
| [project] | ||||
| name = "kapitanbooru-uploader" | ||||
| version = "0.4.3" | ||||
| version = "0.4.4" | ||||
| description = "A GUI application for uploading images to KapitanBooru" | ||||
| authors = [ | ||||
|     {name = "Michał Leśniak", email = "kapitan@mlesniak.pl"} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user