koreader-from-src: don't interrupt RSS sync on image DL failure

This commit is contained in:
Colin 2023-10-27 08:41:02 +00:00
parent 25c13705cd
commit d68cc761cc
2 changed files with 18 additions and 0 deletions

View File

@ -88,6 +88,7 @@ stdenv.mkDerivation rec {
sources.externalProjects
)
))
./rss-no-interrupt-on-image-failure.patch # just a preference
];
sourceRoot = "koreader";

View File

@ -0,0 +1,17 @@
diff --git a/plugins/newsdownloader.koplugin/epubdownloadbackend.lua b/plugins/newsdownloader.koplugin/epubdownloadbackend.lua
index b8f36397b..82b418be1 100644
--- a/plugins/newsdownloader.koplugin/epubdownloadbackend.lua
+++ b/plugins/newsdownloader.koplugin/epubdownloadbackend.lua
@@ -487,12 +487,6 @@ function EpubDownloadBackend:createEpub(epub_path, html, url, include_images, me
end
epub:add("OEBPS/"..img.imgpath, content, no_compression)
logger.dbg("Adding OEBPS/"..img.imgpath)
- else
- go_on = UI:confirm(T(_("Downloading image %1 failed. Continue anyway?"), inum), _("Stop"), _("Continue"))
- if not go_on then
- cancelled = true
- break
- end
end
end
end