adding file as a dependancy

This commit is contained in:
Lionel Dricot 2023-08-21 01:08:13 +02:00
parent 8beae920a7
commit f4818c966e
5 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,7 @@ Wait for 2.1 if you are not willing to do testing/bug reporting.
- "accept_bad_ssl_certificates" now more agressive for http and really accepts them all
- Gemini-only: support for client generated certificates has been removed
- blocked domains with "redirect" now also blocks related subdomains.
- "file" is now marked as a dependency (thank Guillaume Loret)
## 1.10 - July 31st 2023
- IMPORTANT : new optional dependency : python-chardet

View File

@ -1157,7 +1157,6 @@ def get_mime(path):
#gmi Mimetype is not recognized yet
if not mime and not shutil.which("file") :
print("Cannot guess the mime type of the file. Please install \"file\".")
print("(and send me an email, Im curious of systems without \"file\" installed!")
if mime.startswith("text") and mime not in _FORMAT_RENDERERS:
if mime2 and mime2 in _FORMAT_RENDERERS:
mime = mime2

View File

@ -36,6 +36,7 @@ http = ["requests"]
process-title = ["setproctitle"]
rss = ["feedparser"]
timg = ["timg>=1.3.2"]
file = ["file"]
[project.urls]
Homepage = "https://sr.ht/~lioploum/offpunk/"

View File

@ -7,3 +7,4 @@ readability-lxml
pillow
setproctitle
timg
file

View File

@ -1 +1 @@
sudo apt install less file xdg-utils xsel chafa timg python3-cryptography python3-requests python3-feedparser python3-bs4 python3-readability python3-pil python3-setproctitle python3-chardet
sudo apt install less file xdg-utils xsel chafa timg python3-cryptography python3-requests python3-feedparser python3-bs4 python3-readability python3-pil python3-setproctitle python3-chardet file