Fix downloading of PDFs from wallabag

This commit is contained in:
Harm te Molder
2025-09-03 06:39:51 +02:00
committed by Frans de Jonge
parent 5575c284c1
commit 56487cda1d

View File

@@ -775,7 +775,7 @@ function Wallabag:downloadArticle(article)
end
elseif DocumentRegistry:hasProvider(nil, mimetype) then
logger.dbg("Wallabag:downloadArticle: ignoring EPUB in favor of mimetype", mimetype)
file_ext = "." .. DocumentRegistry:mimeToExt(article.mimetype)
file_ext = "." .. DocumentRegistry:mimeToExt(mimetype)
item_url = article.url
else
logger.dbg("Wallabag:downloadArticle: not ignoring EPUB, because there is no provider for", mimetype)