Send2ebook fix download after refactor from #3924 (#4027)

* fix send2ebook download after refactor from #3924

* restore removal from server
pull/4036/head
mwoz123 6 years ago committed by Frans de Jonge
parent d3d30c405a
commit 27dfa30181

@ -26,7 +26,7 @@ local send2ebook_settings
function Send2Ebook:downloadFileAndRemove(connection_url, remote_path, local_download_path)
local url = connection_url .. remote_path
local response = FtpApi:downloadFile(url)
local response = FtpApi:ftpGet(url)
if response ~= nil then
local_download_path = util.fixUtf8(local_download_path, "_")
@ -142,6 +142,7 @@ function Send2Ebook:process()
if total_entries > 1 then total_entries = total_entries -2 end --remove result "../" (upper folder) and "./" (current folder)
for idx, ftp_file in ipairs(ftp_files_table) do
logger.dbg("Send2Ebook: processing ftp_file:", ftp_file)
--TODO recursive download folders
if ftp_file["type"] == "file" then
info = InfoMessage:new{ text = T(_("Processing %1/%2"), count, total_entries) }

Loading…
Cancel
Save