downloading images only if support for them is enabled, of course

This commit is contained in:
Lionel Dricot 2022-03-30 12:09:08 +02:00
parent 9528d3d5f6
commit 3e560d21de
1 changed files with 2 additions and 1 deletions

View File

@ -1992,7 +1992,8 @@ class GeminiClient(cmd.Cmd):
# Pass file to handler, unless we were asked not to
if gi :
display = handle and not self.sync_only
if display and self.options["download_images_first"] and not self.offline_only:
if display and _RENDER_IMAGE and self.options["download_images_first"] \
and not self.offline_only:
# We download images first
for image in gi.get_images(mode=mode):
if image: