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:
parent
a257440973
commit
b559f965f5
@ -139,7 +139,7 @@ class ImageBrowser(tk.Tk):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.title("Kapitanbooru Uploader")
|
self.title("Kapitanbooru Uploader")
|
||||||
self.geometry("900x600")
|
self.geometry("900x600")
|
||||||
self.version = "0.4.3"
|
self.version = "0.4.4"
|
||||||
|
|
||||||
self.settings = Settings()
|
self.settings = Settings()
|
||||||
self.tags_repo = TagsRepo(self.settings)
|
self.tags_repo = TagsRepo(self.settings)
|
||||||
@ -290,7 +290,14 @@ class ImageBrowser(tk.Tk):
|
|||||||
parameters = ""
|
parameters = ""
|
||||||
if isinstance(img, PngImagePlugin.PngImageFile):
|
if isinstance(img, PngImagePlugin.PngImageFile):
|
||||||
parameters = img.info.get("parameters", "")
|
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()
|
img.close()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(_("Błąd przy otwieraniu pliku"), file_path, ":", e)
|
print(_("Błąd przy otwieraniu pliku"), file_path, ":", e)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Kapitanbooru Uploader 0.4.3\n"
|
"Project-Id-Version: Kapitanbooru Uploader 0.4.4\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2025-03-02 00:39+0100\n"
|
"POT-Creation-Date: 2025-03-02 00:39+0100\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Kapitanbooru Uploader 0.4.3\n"
|
"Project-Id-Version: Kapitanbooru Uploader 0.4.4\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2025-03-02 00:39+0100\n"
|
"POT-Creation-Date: 2025-03-02 00:39+0100\n"
|
||||||
"Language: pl\n"
|
"Language: pl\n"
|
||||||
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "kapitanbooru-uploader"
|
name = "kapitanbooru-uploader"
|
||||||
version = "0.4.3"
|
version = "0.4.4"
|
||||||
description = "A GUI application for uploading images to KapitanBooru"
|
description = "A GUI application for uploading images to KapitanBooru"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Michał Leśniak", email = "kapitan@mlesniak.pl"}
|
{name = "Michał Leśniak", email = "kapitan@mlesniak.pl"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user