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
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good
This commit is contained in:
@@ -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.5"
|
self.version = "0.9.6"
|
||||||
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)
|
||||||
@@ -552,7 +552,8 @@ class Core:
|
|||||||
post_id = post_url.split("/")[-1]
|
post_id = post_url.split("/")[-1]
|
||||||
self.uploaded[file_path] = post_id
|
self.uploaded[file_path] = post_id
|
||||||
self.uploaded_count += 1
|
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:
|
except Exception as e:
|
||||||
if error_callback:
|
if error_callback:
|
||||||
error_callback(str(e))
|
error_callback(str(e))
|
||||||
@@ -592,8 +593,8 @@ class Core:
|
|||||||
if not self.uploaded.get(file_path, False):
|
if not self.uploaded.get(file_path, False):
|
||||||
final_tags, final_rating = self.compute_final_tags_and_rating_for_file(
|
final_tags, final_rating = self.compute_final_tags_and_rating_for_file(
|
||||||
file_path,
|
file_path,
|
||||||
update_status_callback, # lambda: self.after(0, self.update_status_bar)
|
update_status_callback,
|
||||||
manual_tags, # set(self.manual_tags_manager.manual_tags)
|
manual_tags,
|
||||||
)
|
)
|
||||||
print(
|
print(
|
||||||
_(
|
_(
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
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"
|
"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-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
@@ -92,47 +92,47 @@ msgstr ""
|
|||||||
msgid "Wysyłanie"
|
msgid "Wysyłanie"
|
||||||
msgstr "Uploading"
|
msgstr "Uploading"
|
||||||
|
|
||||||
#: Core.py:560
|
#: Core.py:561
|
||||||
msgid "Błąd wysyłania pliku"
|
msgid "Błąd wysyłania pliku"
|
||||||
msgstr "Upload error"
|
msgstr "Upload error"
|
||||||
|
|
||||||
#: Core.py:590
|
#: Core.py:591
|
||||||
msgid "Anulowano operację!"
|
msgid "Anulowano operację!"
|
||||||
msgstr "Operation cancelled!"
|
msgstr "Operation cancelled!"
|
||||||
|
|
||||||
#: Core.py:600
|
#: Core.py:601
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
|
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Uploading {file_path} with tags: {final_tags} and rating: {final_rating}"
|
"Uploading {file_path} with tags: {final_tags} and rating: {final_rating}"
|
||||||
|
|
||||||
#: Core.py:619
|
#: Core.py:620
|
||||||
msgid "Przesłano pliki!"
|
msgid "Przesłano pliki!"
|
||||||
msgstr "Files have been uploaded!"
|
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"
|
msgid "Post nie został znaleziony dla tego pliku"
|
||||||
msgstr "Post not found for this file"
|
msgstr "Post not found for this file"
|
||||||
|
|
||||||
#: Core.py:655
|
#: Core.py:656
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "Aktualizuję tagi dla {base_file_name}..."
|
msgid "Aktualizuję tagi dla {base_file_name}..."
|
||||||
msgstr "Updating tags for {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"
|
msgid "Operacja anulowana"
|
||||||
msgstr "Operation cancelled"
|
msgstr "Operation cancelled"
|
||||||
|
|
||||||
#: Core.py:710
|
#: Core.py:711
|
||||||
msgid "Tagi zostały zaktualizowane!"
|
msgid "Tagi zostały zaktualizowane!"
|
||||||
msgstr "Tags have been updated!"
|
msgstr "Tags have been updated!"
|
||||||
|
|
||||||
#: Core.py:715 ImageBrowser.py:729
|
#: Core.py:716 ImageBrowser.py:729
|
||||||
msgid "Sukces edycji"
|
msgid "Sukces edycji"
|
||||||
msgstr "Edit successful"
|
msgstr "Edit successful"
|
||||||
|
|
||||||
#: Core.py:722
|
#: Core.py:723
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Błąd podczas aktualizacji tagów\n"
|
"Błąd podczas aktualizacji tagów\n"
|
||||||
@@ -141,15 +141,15 @@ msgstr ""
|
|||||||
"Error updating tags\n"
|
"Error updating tags\n"
|
||||||
"Status: {code}"
|
"Status: {code}"
|
||||||
|
|
||||||
#: Core.py:726
|
#: Core.py:727
|
||||||
msgid "Treść:"
|
msgid "Treść:"
|
||||||
msgstr "Content:"
|
msgstr "Content:"
|
||||||
|
|
||||||
#: Core.py:730 ImageBrowser.py:726
|
#: Core.py:731 ImageBrowser.py:726
|
||||||
msgid "Błąd edycji"
|
msgid "Błąd edycji"
|
||||||
msgstr "Edit error"
|
msgstr "Edit error"
|
||||||
|
|
||||||
#: Core.py:736
|
#: Core.py:737
|
||||||
msgid "Krytyczny błąd edycji"
|
msgid "Krytyczny błąd edycji"
|
||||||
msgstr "Critical edit error"
|
msgstr "Critical edit error"
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
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"
|
"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"
|
"Language: pl\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
@@ -94,47 +94,47 @@ msgstr ""
|
|||||||
msgid "Wysyłanie"
|
msgid "Wysyłanie"
|
||||||
msgstr "Wysyłanie"
|
msgstr "Wysyłanie"
|
||||||
|
|
||||||
#: Core.py:560
|
#: Core.py:561
|
||||||
msgid "Błąd wysyłania pliku"
|
msgid "Błąd wysyłania pliku"
|
||||||
msgstr "Błąd wysyłania pliku"
|
msgstr "Błąd wysyłania pliku"
|
||||||
|
|
||||||
#: Core.py:590
|
#: Core.py:591
|
||||||
msgid "Anulowano operację!"
|
msgid "Anulowano operację!"
|
||||||
msgstr "Operacja anulowana!"
|
msgstr "Operacja anulowana!"
|
||||||
|
|
||||||
#: Core.py:600
|
#: Core.py:601
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
|
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
|
"Wysyłanie {file_path} z tagami: {final_tags} i ratingiem: {final_rating}"
|
||||||
|
|
||||||
#: Core.py:619
|
#: Core.py:620
|
||||||
msgid "Przesłano pliki!"
|
msgid "Przesłano pliki!"
|
||||||
msgstr "Pliki zostały przesłane!"
|
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"
|
msgid "Post nie został znaleziony dla tego pliku"
|
||||||
msgstr "Post nie został znaleziony dla tego pliku"
|
msgstr "Post nie został znaleziony dla tego pliku"
|
||||||
|
|
||||||
#: Core.py:655
|
#: Core.py:656
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "Aktualizuję tagi dla {base_file_name}..."
|
msgid "Aktualizuję tagi dla {base_file_name}..."
|
||||||
msgstr "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"
|
msgid "Operacja anulowana"
|
||||||
msgstr "Operacja anulowana"
|
msgstr "Operacja anulowana"
|
||||||
|
|
||||||
#: Core.py:710
|
#: Core.py:711
|
||||||
msgid "Tagi zostały zaktualizowane!"
|
msgid "Tagi zostały zaktualizowane!"
|
||||||
msgstr "Tagi zostały zaktualizowane!"
|
msgstr "Tagi zostały zaktualizowane!"
|
||||||
|
|
||||||
#: Core.py:715 ImageBrowser.py:729
|
#: Core.py:716 ImageBrowser.py:729
|
||||||
msgid "Sukces edycji"
|
msgid "Sukces edycji"
|
||||||
msgstr "Sukces edycji"
|
msgstr "Sukces edycji"
|
||||||
|
|
||||||
#: Core.py:722
|
#: Core.py:723
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Błąd podczas aktualizacji tagów\n"
|
"Błąd podczas aktualizacji tagów\n"
|
||||||
@@ -143,15 +143,15 @@ msgstr ""
|
|||||||
"Błąd podczas aktualizacji tagów\n"
|
"Błąd podczas aktualizacji tagów\n"
|
||||||
"Status: {code}"
|
"Status: {code}"
|
||||||
|
|
||||||
#: Core.py:726
|
#: Core.py:727
|
||||||
msgid "Treść:"
|
msgid "Treść:"
|
||||||
msgstr "Treść:"
|
msgstr "Treść:"
|
||||||
|
|
||||||
#: Core.py:730 ImageBrowser.py:726
|
#: Core.py:731 ImageBrowser.py:726
|
||||||
msgid "Błąd edycji"
|
msgid "Błąd edycji"
|
||||||
msgstr "Błąd edycji"
|
msgstr "Błąd edycji"
|
||||||
|
|
||||||
#: Core.py:736
|
#: Core.py:737
|
||||||
msgid "Krytyczny błąd edycji"
|
msgid "Krytyczny błąd edycji"
|
||||||
msgstr "Krytyczny błąd edycji"
|
msgstr "Krytyczny błąd edycji"
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "kapitanbooru-uploader"
|
name = "kapitanbooru-uploader"
|
||||||
version = "0.9.5"
|
version = "0.9.6"
|
||||||
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 = [
|
||||||
|
Reference in New Issue
Block a user