th3r00t / pyShelf

A simple terminal based ebook server
GNU General Public License v3.0
518 stars 33 forks source link

Add ability to import books from frontend #54

Open th3r00t opened 4 years ago

th3r00t commented 4 years ago

Adding this functionality will allow the docker release to be updated in-situ. Currently it is not possible to update the library once deployed

arist0v commented 1 year ago

When i click import ebook, as a user i was expecting a file browser to open to select the ebook i want to import so i don'T have to manually copy ebook to a central server (which may not be on my own computer)

arist0v commented 1 year ago

i'm not familliar (yet) with the django part, but if you could create the ui part in a branch, and tell me wich function i should create i could start by taking a look at this feature

th3r00t commented 1 year ago

Ive actually removed django completely from the stack in version 0.7.1-dev I wouldnt suggest the dev branch in production use right now as it only has a home screen for the ui. I will be fleshing that out some today.

The new interface will be based purely around FastAPI and jinja templating,

arist0v commented 1 year ago

ok , i'm still not good yet with the ui part, so if you would like to add a button (import from file) that run a specific python function, you could give me the command and argument with expected return value (if needed) and i'll start working on it if it could help( i don'T have much time yet to start learning ui, but i could surely help with the python part)

th3r00t commented 1 year ago

pyShelf.py line 20 is an example of what the import book system looks like currently. You cant as of now import a single book at a time (though this could become a feature for sure) imports are done currently by scanning an entire folders contents, and importing any books found not currently present in the database.

arist0v commented 1 year ago

i saw that i can'T import ebook without droping them somewhere else, wich is bad for me because i want to run my pyshelf on a isolated server so no ui and no direct link(like shared folder) so i would like to have a UI part to upload ebook individually(or maybe a zip file containing multiple ebook.

what i offer you is, if you can do the UI part, to code the python backend part to upload from file. It could help you going faster on the developpement having someone to help, i'm not good at frontend but could give you lot of help on backend.