Bump version to 0.9.6; update localization files and adjust status update logic in Core
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good

This commit is contained in:
2025-06-26 18:22:07 +02:00
parent 49d000003a
commit 7aa9d5cbdf
4 changed files with 36 additions and 35 deletions

View File

@@ -35,7 +35,7 @@ class Core:
"""
def __init__(self, settings: Settings, gui_mode: bool = True):
self.version = "0.9.5"
self.version = "0.9.6"
self.acknowledged_version = parse_version(self.version)
self.settings = settings
self.tags_repo = TagsRepo(settings)
@@ -552,7 +552,8 @@ class Core:
post_id = post_url.split("/")[-1]
self.uploaded[file_path] = post_id
self.uploaded_count += 1
self.after(0, self.update_status_bar)
if self.update_status_bar_callback:
self.update_status_bar_callback()
except Exception as e:
if error_callback:
error_callback(str(e))
@@ -592,8 +593,8 @@ class Core:
if not self.uploaded.get(file_path, False):
final_tags, final_rating = self.compute_final_tags_and_rating_for_file(
file_path,
update_status_callback, # lambda: self.after(0, self.update_status_bar)
manual_tags, # set(self.manual_tags_manager.manual_tags)
update_status_callback,
manual_tags,
)
print(
_(

View File

@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Kapitanbooru Uploader 0.9.5\n"
"Project-Id-Version: Kapitanbooru Uploader 0.9.6\n"
"Report-Msgid-Bugs-To: kapitan@mlesniak.pl\n"
"POT-Creation-Date: 2025-06-26 18:09+0200\n"
"POT-Creation-Date: 2025-06-26 18:21+0200\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
@@ -92,47 +92,47 @@ msgstr ""
msgid "Wysyłanie"
msgstr "Uploading"
#: Core.py:560
#: Core.py:561
msgid "Błąd wysyłania pliku"
msgstr "Upload error"
#: Core.py:590
#: Core.py:591
msgid "Anulowano operację!"
msgstr "Operation cancelled!"
#: Core.py:600
#: Core.py:601
#, python-brace-format
msgid ""
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
msgstr ""
"Uploading {file_path} with tags: {final_tags} and rating: {final_rating}"
#: Core.py:619
#: Core.py:620
msgid "Przesłano pliki!"
msgstr "Files have been uploaded!"
#: Core.py:640 Core.py:644
#: Core.py:641 Core.py:645
msgid "Post nie został znaleziony dla tego pliku"
msgstr "Post not found for this file"
#: Core.py:655
#: Core.py:656
#, python-brace-format
msgid "Aktualizuję tagi dla {base_file_name}..."
msgstr "Updating tags for {base_file_name}..."
#: Core.py:665 Core.py:675 Core.py:700
#: Core.py:666 Core.py:676 Core.py:701
msgid "Operacja anulowana"
msgstr "Operation cancelled"
#: Core.py:710
#: Core.py:711
msgid "Tagi zostały zaktualizowane!"
msgstr "Tags have been updated!"
#: Core.py:715 ImageBrowser.py:729
#: Core.py:716 ImageBrowser.py:729
msgid "Sukces edycji"
msgstr "Edit successful"
#: Core.py:722
#: Core.py:723
#, python-brace-format
msgid ""
"Błąd podczas aktualizacji tagów\n"
@@ -141,15 +141,15 @@ msgstr ""
"Error updating tags\n"
"Status: {code}"
#: Core.py:726
#: Core.py:727
msgid "Treść:"
msgstr "Content:"
#: Core.py:730 ImageBrowser.py:726
#: Core.py:731 ImageBrowser.py:726
msgid "Błąd edycji"
msgstr "Edit error"
#: Core.py:736
#: Core.py:737
msgid "Krytyczny błąd edycji"
msgstr "Critical edit error"

View File

@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Kapitanbooru Uploader 0.9.5\n"
"Project-Id-Version: Kapitanbooru Uploader 0.9.6\n"
"Report-Msgid-Bugs-To: kapitan@mlesniak.pl\n"
"POT-Creation-Date: 2025-06-26 18:09+0200\n"
"POT-Creation-Date: 2025-06-26 18:21+0200\n"
"Language: pl\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
@@ -94,47 +94,47 @@ msgstr ""
msgid "Wysyłanie"
msgstr "Wysyłanie"
#: Core.py:560
#: Core.py:561
msgid "Błąd wysyłania pliku"
msgstr "Błąd wysyłania pliku"
#: Core.py:590
#: Core.py:591
msgid "Anulowano operację!"
msgstr "Operacja anulowana!"
#: Core.py:600
#: Core.py:601
#, python-brace-format
msgid ""
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
msgstr ""
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
#: Core.py:619
#: Core.py:620
msgid "Przesłano pliki!"
msgstr "Pliki zostały przesłane!"
#: Core.py:640 Core.py:644
#: Core.py:641 Core.py:645
msgid "Post nie został znaleziony dla tego pliku"
msgstr "Post nie został znaleziony dla tego pliku"
#: Core.py:655
#: Core.py:656
#, python-brace-format
msgid "Aktualizuję tagi dla {base_file_name}..."
msgstr "Aktualizuję tagi dla {base_file_name}..."
#: Core.py:665 Core.py:675 Core.py:700
#: Core.py:666 Core.py:676 Core.py:701
msgid "Operacja anulowana"
msgstr "Operacja anulowana"
#: Core.py:710
#: Core.py:711
msgid "Tagi zostały zaktualizowane!"
msgstr "Tagi zostały zaktualizowane!"
#: Core.py:715 ImageBrowser.py:729
#: Core.py:716 ImageBrowser.py:729
msgid "Sukces edycji"
msgstr "Sukces edycji"
#: Core.py:722
#: Core.py:723
#, python-brace-format
msgid ""
"Błąd podczas aktualizacji tagów\n"
@@ -143,15 +143,15 @@ msgstr ""
"Błąd podczas aktualizacji tagów\n"
"Status: {code}"
#: Core.py:726
#: Core.py:727
msgid "Treść:"
msgstr "Treść:"
#: Core.py:730 ImageBrowser.py:726
#: Core.py:731 ImageBrowser.py:726
msgid "Błąd edycji"
msgstr "Błąd edycji"
#: Core.py:736
#: Core.py:737
msgid "Krytyczny błąd edycji"
msgstr "Krytyczny błąd edycji"

View File

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