manuelvargastapia / libgen_mobile_app

GNU General Public License v3.0
172 stars 12 forks source link

Filter for extension #10

Open fabianski7 opened 3 years ago

fabianski7 commented 3 years ago

PDF files are very common in libgen, but they are not good for reading in digital readers like the Kindle.

Displaying only files of a certain extension (or not including them), such as epub or mobi, is ideal for those looking for a book to read on this device.

manuelvargastapia commented 3 years ago

Yep. That's a nice feature to have. However, it may take some work to implement filtering overall.

If you check the library I'm using as a base for my API, you'll see that there is no filtering option. You can search in several fields (title, author, even extension IIRC) and sort the results. However, there is no filtering option. Because of this, I haven't implemented filtering yet, but of course, I would like to. I'll keep this issue open for further discussion and possible solutions.

I'll try to find a workaround when I find some time. Feel free to open a PR here or in the API repo.

manuelvargastapia commented 3 years ago

In the upcoming version 1.1.0, the Fiction section supports searching by file extension (just like the web version).

fabianski7 commented 3 years ago

great news!

AreYouLoco commented 3 years ago

Any info why is it not supported in Sci-Tech section?

manuelvargastapia commented 2 years ago

Any info why is it not supported in Sci-Tech section?

As I tried to explain previously, the non-official API I used as the backend for the app doesn't currently allow for that kind of filtering. Indeed, even the official web page only supports it in the Fiction section.