diff options
-rwxr-xr-x | epy.py | 11 | ||||
-rw-r--r-- | pyproject.toml | 2 | ||||
-rw-r--r-- | setup.py | 2 |
3 files changed, 10 insertions, 5 deletions
@@ -23,7 +23,7 @@ examples: """ -__version__ = "2022.2.20" +__version__ = "2022.3.25" __license__ = "GPL-3.0" __author__ = "Benawi Adha" __email__ = "benawiadha@gmail.com" @@ -122,6 +122,12 @@ VIEWER_PRESET_LIST = ( "firefox", ) +DICT_PRESET_LIST = ( + "wkdict", + "sdcv", + "dict", +) + class Direction(Enum): FORWARD = "forward" @@ -2464,12 +2470,11 @@ class Reader: @property def ext_dict_app(self) -> Optional[str]: self._ext_dict_app: Optional[str] = None - dict_app_preset_list = ["sdcv", "dict"] if shutil.which(self.setting.DictionaryClient.split()[0]): self._ext_dict_app = self.setting.DictionaryClient else: - for i in dict_app_preset_list: + for i in DICT_PRESET_LIST: if shutil.which(i) is not None: self._ext_dict_app = i break diff --git a/pyproject.toml b/pyproject.toml index 5add430..6977d9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "epy-reader" -version = "2022.2.20" +version = "2022.3.25" description = "CLI Ebook Reader" authors = ["Benawi Adha <benawiadha@gmail.com>"] license = "GPL-3.0" @@ -6,7 +6,7 @@ with open("README.md", "r") as fh: setup( name="epy-reader", - version="2022.2.20", + version="2022.3.25", description="Terminal/CLI Ebook (epub, fb2, mobi, azw3) Reader", long_description=long_description, long_description_content_type="text/markdown", |