clach04 / webook_server

💩📖 Worst E-book server - light weight OPDS and web server that converts ebook formats on the fly, using Python (2 or 3) and optional Calibre convert
GNU General Public License v3.0
4 stars 0 forks source link

FBreader (Android) downloads text files as epub #32

Open clach04 opened 1 month ago

clach04 commented 1 month ago

Unclear if this is FBreader behavior or webook_server bug/behavior. Only one download button in android app, and so epub conversion takes place which is needless:

INFO:__main__:browsing directory
INFO:__main__:determine client type
DEBUG:__main__:HTTP_ACCEPT ''
DEBUG:__main__:HTTP_USER_AGENT 'FBReader/3.1.7 (Android 10, star2qltechn, SM-G9650)'
DEBUG:__main__:client_type 'OPDS'
INFO:werkzeug:opds_server_address - - [02/Aug/2024 22:23:07] "GET /file/ HTTP/1.1" 200 -
INFO:__main__:opds_root
'/epub/aaa_text.txt'
INFO:__main__:opds_browse
INFO:__main__:directory_path_split  ['', 'epub', 'aaa_text.txt']
INFO:__main__:browse 'aaa_text.txt'
INFO:__main__:operation_requested 'epub'
INFO:__main__:directory_path aaa_text.txt
INFO:__main__:os_path /...../media/reading/aaa_text.txt
INFO:__main__:serve file
INFO:__main__:serve existing_ebook_format 'txt'
INFO:__main__:convert ebook from /...../media/reading/aaa_text.txt into epub
.....
EPUB output written to /tmp/ebookserver/fixme_generate_filename.epub
Output saved to   /tmp/ebookserver/fixme_generate_filename.epub
INFO:werkzeug:opds_server_address - - [02/Aug/2024 22:23:16] "GET /epub/aaa_text.txt HTTP/1.1" 200 -

End up with aaatext.txt.epub (filename epub appended).

clach04 commented 1 month ago

Wondering if FBReader (and Alreader https://github.com/clach04/webook_server/issues/33) are confused by the multiple download link options that KoReader:

  1. Handles really well....
  2. ... And in fact really needs to offer control over download format