Opds-pse v1.2 [LastRead]#13357
Conversation
…lback, and fit to width ImageViewer
…lback, and fit to width ImageViewer
Opds-pse v1.2 [LastRead], serverFileName fallback & ImageViewer (Fit to Width button)
…lback, and fit to width ImageViewer
…lback, and fit to width ImageViewer
…lback, and fit to width ImageViewer
Really not fond of that.
Not caring about and not familiar with OPDS stuff: but with streaming, are people really reading books via this ImageViewer (not having all the features of Reader, statistics, pages left...) ? Or is it just for preview ? |
|
Basically lgtm, just a few nits about capitalization and needless comments. (Please keep in mind I only added a few notes explicitly.) |
Yeah, fair point. I’ll open an issue/enhancement request so we can discuss it properly before making any changes...
Not sure about others, but I use it a lot for reading ongoing manga. Thought it was a minor change, but yeah, it’s kinda crappy :') |
| local buttons = { | ||
| { | ||
| { | ||
| text = _("\u{23EE} Beginning"), |
There was a problem hiding this comment.
Same as https://github.com/koreader/koreader/pull/13357/files#r1977711564, same for all of these.
If calling ImageViewer from this specific place, where you'll always be showing a book page for reading - and "fit to width" is always preferable, you maybe could compute and set the right scaling options for fit-to-width directly when you instantiate your ImageViewer ? |
It might not necessarily be on something an Elipsa, but I agree. The use case is a bit different from a normal image, so it needn't take all of the regular image defaults. |
|
I've opened an enhancement request for the ImageViewer discussion. Please let me know your suggestions there. I'll probably create a separate PR depending on how the discussion goes. |
Can you show the problematic headers? |
The issue wasn’t with how the headers were being matched—they were working fine. The problem was with how the OPDS server was set up. It didn’t support a HEAD request, and the filename was only returned in a GET request. That said, I’m okay with skipping this change if there are any objections—I’ve already fixed the server-side issue on my end. :') |
|
To use a server that doesn't return server-filename, a user should uncheck the checkbox and get generated local names. |
I mean, it does return the filename, but not in the HEAD request—rather, in the GET request, which most browsers and downloaders use by default. But sure, I'll revert this change as well... |
Can we use it? In |
I think it should be possible to use it in For this PR, I’ll revert the changes related to serverfilename and come up with a better approach in another PR—perhaps using HEAD (if supported) or have the filename fetch at |
|
We shouldn't get the entire content just to have a filename, for sure. |
|
Thanks, can you show the screenshot of the download dialog, to see these special symbols. |
|
Looks good, and the code as well. |
| end, | ||
| { | ||
| -- @translators "Stream" here refers to being able to read documents from an OPDS server without downloading them completely, on a page by page basis. | ||
| text = "\u{23EE} " .. _("Page stream"), |
| }, | ||
| { | ||
| -- @translators "Stream" here refers to being able to read documents from an OPDS server without downloading them completely, on a page by page basis. | ||
| text = _("Stream from page") .. " \u{23E9}", |
There was a problem hiding this comment.
Same except that'll be the right arrow I presume.


Still pretty new to Lua & KOReader, so might’ve missed something. Open to any suggestions...
Changes
Screenshots
Page Stream Button & Dialog
Raw File name enabled (existing)
When.no.fileName.from.server.existing.mp4
Raw File name enabled (this change) | last one returns filename in header
This.change.with.all.scenarios.covered.mp4
This change is