kolyvan / kybook

modern ebook reader for iOS
81 stars 10 forks source link

FEATURE: Ignore unsupported file types #512

Open Mellified opened 1 year ago

Mellified commented 1 year ago

Currently Kybook 3 will download unsupported file extension such as kfx if they are the only option offered by an opds catalog server. Kybook 3 will also present the option to download an unsupported file extension if multiple file types are offered by an opds catalog server. In both cases downloading the unsupported file extension will generate a cryptic mime type error if the file is actually an unsupported file type.

The desired behavior for Kybook 3 is to ignore unsupported file extensions. There are 3 possible cases to handle:

  1. If the only option offered by the opds server is an unsupported file extension then Kybook 3 should display a user-friendly error.
  2. If two file types are offered - one unsupported and one supported - then Kybook 3 should automatically download the supported file type.
  3. If several file types are offered - including at least one unsupported extension - then Kybook 3 should exclude the unsupported file type(s) but otherwise display the selection dialog as it does now.