Bump version to 0.9.8; update localization files and adjust tag processing logic
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good

This commit is contained in:
2025-09-04 21:55:33 +02:00
parent a62e503afd
commit 80f6a678a1
5 changed files with 8 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ class Core:
""" """
def __init__(self, settings: Settings, gui_mode: bool = True): def __init__(self, settings: Settings, gui_mode: bool = True):
self.version = "0.9.7" self.version = "0.9.8"
self.acknowledged_version = parse_version(self.version) self.acknowledged_version = parse_version(self.version)
self.settings = settings self.settings = settings
self.tags_repo = TagsRepo(settings) self.tags_repo = TagsRepo(settings)

View File

@@ -1,6 +1,6 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Kapitanbooru Uploader 0.9.7\n" "Project-Id-Version: Kapitanbooru Uploader 0.9.8\n"
"Report-Msgid-Bugs-To: kapitan@mlesniak.pl\n" "Report-Msgid-Bugs-To: kapitan@mlesniak.pl\n"
"POT-Creation-Date: 2025-06-26 18:21+0200\n" "POT-Creation-Date: 2025-06-26 18:21+0200\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"

View File

@@ -1,6 +1,6 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Kapitanbooru Uploader 0.9.7\n" "Project-Id-Version: Kapitanbooru Uploader 0.9.8\n"
"Report-Msgid-Bugs-To: kapitan@mlesniak.pl\n" "Report-Msgid-Bugs-To: kapitan@mlesniak.pl\n"
"POT-Creation-Date: 2025-06-26 18:21+0200\n" "POT-Creation-Date: 2025-06-26 18:21+0200\n"
"Language: pl\n" "Language: pl\n"

View File

@@ -221,11 +221,14 @@ def parse_parameters(param_str:str, tags_repo: TagsRepo) -> str:
for lora_match in LORAHASH_PATTERN.finditer(lora_hashes): for lora_match in LORAHASH_PATTERN.finditer(lora_hashes):
lora_name = lora_match.group("name").strip() lora_name = lora_match.group("name").strip()
if lora_name: if lora_name:
if lora_name=="ElfIL" and "e_lf": if lora_name=="ElfIL" and "e_lf" in tags:
tags.discard("e_lf") tags.discard("e_lf")
tags.add("reanette_elfelt") tags.add("reanette_elfelt")
elif lora_name=="Illustrious_Mikuneki_Style": elif lora_name=="Illustrious_Mikuneki_Style":
tags.add("mikuneki") tags.add("mikuneki")
elif lora_name=="konosuba-claire-s3-illustriousxl-lora-nochekaiser" and any(tag in tags for tag in ["claire", "claire_(konosuba)"]):
tags.discard("claire")
tags.add("claire_(konosuba)")
tags = set([WHITESPACE_PATTERN.sub("_", param.strip()) for param in tags]) tags = set([WHITESPACE_PATTERN.sub("_", param.strip()) for param in tags])
tags = set( tags = set(
[ [

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "kapitanbooru-uploader" name = "kapitanbooru-uploader"
version = "0.9.7" version = "0.9.8"
description = "A GUI application for uploading images to KapitanBooru" description = "A GUI application for uploading images to KapitanBooru"
authors = [{ name = "Michał Leśniak", email = "kapitan@mlesniak.pl" }] authors = [{ name = "Michał Leśniak", email = "kapitan@mlesniak.pl" }]
dependencies = [ dependencies = [