Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FBReader download with wrong filename #520

Open
Kuzorra22 opened this issue Dec 22, 2022 · 5 comments
Open

FBReader download with wrong filename #520

Kuzorra22 opened this issue Dec 22, 2022 · 5 comments

Comments

@Kuzorra22
Copy link

Hello and a Happy Christmas !

I am using COPS in combination with FBReader. $config['cops_use_url_rewriting'] = "1" is set and when I download a book on my PC or Chrome on my Android mobile, it is downloaded with the correct filename. When I download the same book in FBReader it is downloaded as "fetch.php?....".

What am I doing wrong ?

YOS,
Kuzorra

@marioscube
Copy link

@Kuzorra22

In the fbreader help I found:
FBReader for Android and Windows/Mac/Linux supports a technology named OPDS that allows your reader to connect network e-book catalogues and stores. In the reader, you can browse and search over the network catalogues and download the found books directly.

To download from COPS (Calibre OPDS Php Server) using OPDS connect to COPS from FBreader with the url: http://<local_IP>/cops/feed.php

@Kuzorra22
Copy link
Author

Yes, I know. But fetch.php is managing the download, not feed.php, and the download is ignoring the Content-Disposition in the header. Is that a FBReader issue ?

@marioscube
Copy link

marioscube commented Dec 23, 2022

@Kuzorra22

I installed FBReader (latest version) on MacOS.
I connected FBReader to COPS with http://192.168.1.xxx/cops/feed.php and everything works.
[ http://192.168.1.xxx/cops/ worked as well. ]

In COPS I have in config_local.php: $config['cops_use_url_rewriting'] = "0"

Screenshot 2022-12-23 at 13 41 16

Where does it go wrong for you?

@Kuzorra22
Copy link
Author

But then I can only download when using the browser to access files and not view them. In the meantime I edited my config_local, so set the cops_use_url_rewriting to 0 when the client identifies as FBReader and 1 if else.

@marioscube
Copy link

@Kuzorra22
So no more errors for you? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants