diff options
author | benadha <benawiadha@gmail.com> | 2022-01-09 06:50:05 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2022-01-09 06:50:05 +0700 |
commit | e6276268dba32bf6fbd53602303835e62a0f6726 (patch) | |
tree | 9f53aa434c771e0bd98416b2d25c83f5f81f30f3 | |
parent | c1f9b4e9281e0f5f26b9473ca3f4b3f78412464d (diff) | |
download | epy-e6276268dba32bf6fbd53602303835e62a0f6726.tar.gz |
Minor improvement
-rwxr-xr-x | epy.py | 8 | ||||
-rw-r--r-- | epy_extras/__init__.py | 3 |
2 files changed, 7 insertions, 4 deletions
@@ -52,7 +52,7 @@ from html.parser import HTMLParser from urllib.parse import unquote, urljoin try: - from epy_extras.KindleUnpack.kindleunpack import unpackBook # type: ignore + from epy_extras import unpackBook # type: ignore MOBI_SUPPORT = True except ModuleNotFoundError: @@ -235,9 +235,9 @@ class LibraryItem: else: book_name = file_basename - last_read_str = self.last_read.strftime("%I:%M %p %b %d, %Y") + last_read_str = self.last_read.strftime("%I:%M%p %b %d") - return f"{reading_progress_str} {book_name}. {last_read_str}." + return f"{reading_progress_str} {last_read_str}: {book_name}" @dataclass(frozen=True) @@ -3682,7 +3682,7 @@ def parse_cli_args() -> str: print( "{}. {}".format( str(n + 1).rjust(dig), - truncate(str(item), "...", tcols, 7), + truncate(str(item), "...", tcols, tcols - 3), ) ) if "-r" in args: diff --git a/epy_extras/__init__.py b/epy_extras/__init__.py index e69de29..c06e358 100644 --- a/epy_extras/__init__.py +++ b/epy_extras/__init__.py @@ -0,0 +1,3 @@ +__all__ = ["unpackBook"] + +from .KindleUnpack.kindleunpack import unpackBook |