-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Wallabag: epubs being converted to htm in 2024.03+ #11528
Comments
Based on my poor understanding of LUA, we shouldn't be affected, we're correctly returning direct wget of epub
but reverting 3e7ab19 definitely fixes the issue for me. |
Quick reading, and it feels this change negate the original aim: - if article.mimetype ~= "text/html" then -- different from text/html
+ if type(article.mimetype) == "string" and article.mimetype:find("^text/html") then -- starts/equal to text/html @Frenzie ? |
No time today but based purely on the line you posted there a not is
missing
…On Sat, Mar 9, 2024, 15:50 poire-z ***@***.***> wrote:
Probably #11492 <#11492> (not
using Wallabag, so no idea of the context).
Try reverting manually the small changes in 3e7ab19
<3e7ab19>
.
—
Reply to this email directly, view it on GitHub
<#11528 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABRQBJ2FXHIZ4POWYHOTJTYXMOT3AVCNFSM6AAAAABEOFCCQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHA3TMNBUHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Just adding a |
…than exactly (koreader#11492)" Introduces regression, fixes koreader#11528 This reverts commit 3e7ab19.
@dlgoodr Could you share a URL where you see this issue and your Wallabag version for good measure? |
@dlgoodr That's an export. Please provide the original URL. |
@Frenzie sorry, the original article URL? |
Curious, my Wallabag gives |
…11532) A typo snuck in #11492, which should've read `not type(article.mimetype) == "string" or type(article.mimetype) == "string" and not article.mimetype:find("^text/html")`. But in most cases the behavior would've been identically broken because of the same underlying issue: Wallabag mimetype is actually HTTP content-type. Fixes #11528. Also introduces a new setting associated with the behavior in case people have different preferences.
Tests welcome. |
Issue
EPUB files downloaded through the wallabag plugin are being converted to HTML and lots of the cruft wallabag strips is restored, along with guesses about chapter marks.
Steps to reproduce
Install latest, download article epub, weep. Restore to 2024.01 for the expected behavior.
This isn't a crash, just an unwelcome change in experience that I can't figure out how to revert without going back to 2024.01
The text was updated successfully, but these errors were encountered: