diff --git a/offpunk.py b/offpunk.py index 02983e0..ddf452d 100755 --- a/offpunk.py +++ b/offpunk.py @@ -3468,6 +3468,7 @@ Marks are temporary until shutdown (not saved to disk).""" output += " - Render HTML (bs4, readability) : " + has(_DO_HTML) output += " - Render Atom/RSS feeds (feedparser) : " + has(_DO_FEED) output += " - Connect to http/https (requests) : " + has(_DO_HTTP) + output += " - Detect text encoding (python-chardet) : " + has(_HAS_CHARDET) output += " - copy to/from clipboard (xsel) : " + has(_HAS_XSEL) output += " - restore last position (less 572+) : " + has(_LESS_RESTORE_POSITION) output += "\n" diff --git a/pyproject.toml b/pyproject.toml index d0e9403..6f6a8da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ file = "LICENSE" [project.optional-dependencies] better-tofu = ["cryptography"] +chardet = ["chardet"] html = ["bs4", "readability-lxml"] http = ["requests"] process-title = ["setproctitle"] diff --git a/requirements.txt b/requirements.txt index ba8298a..bd32c82 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +chardet cryptography requests feedparser