From a75cd96f65cc8453bdd9a45fd6bfe27ec5b2432c Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Mon, 10 Jan 2022 15:53:41 +0100 Subject: [PATCH] less was not working with http --- offpunk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offpunk.py b/offpunk.py index 6d40b20..cef3316 100755 --- a/offpunk.py +++ b/offpunk.py @@ -116,7 +116,7 @@ _MIME_HANDLERS = { "audio/mpeg": "mpg123 %s", "audio/ogg": "ogg123 %s", "image/*": "feh -. %s", - "text/html": "lynx -dump -force_html %s", + #"text/html": "lynx -dump -force_html %s", } @@ -1225,7 +1225,7 @@ you'll be able to transparently follow links to Gopherspace!""") self.log["ipv6_bytes_recvd"] += size def _get_active_tmpfile(self): - if self.gi.get_mime() == "text/gemini": + if self.gi.get_mime() in ["text/gemini","text/html"]: return self.idx_filename else: return self.tmp_filename