Skip to content

Commit

Permalink
Upgraded the plugin version to 2.3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere committed Mar 15, 2024
1 parent b8e55d3 commit b76dae8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v2.3.1

Fixed bugs as follows:

1. Fixed the bug to be compatible with lower versions of Calibre.
2. Fixed the freezing issue when using the cache with multiple threads.

## v2.3.0

Added features:
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class EbookTranslator(InterfaceActionBase):
supported_platforms = ['windows', 'osx', 'linux']
identifier = 'ebook-translator'
author = 'bookfere.com'
version = (2, 3, 0)
version = (2, 3, 1)
__version__ = 'v' + '.'.join(map(str, version))
description = _('A Calibre plugin to translate ebook into a specified '
'language (optionally keeping the original content).')
Expand Down
6 changes: 0 additions & 6 deletions lib/thread_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,10 @@ def create_threads(self):
thread = Thread(target=self.translation_thread)
thread.start()
threads.append(thread)
print('---total (%s)---' % len(threads))
return threads

def handle(self):
print('---start---')
Thread(target=self.processing_thread).start()
for thread in self.create_threads():
print('---create--')
thread.join()
print('---killed----')
print('---finished---')
self.done_queue.put(None)
print('---end---')

0 comments on commit b76dae8

Please sign in to comment.