Skip to content

Synchronize local folder with dropbox#5591

Merged
Frenzie merged 5 commits intokoreader:masterfrom
robert00s:dropbox_sync
Nov 18, 2019
Merged

Synchronize local folder with dropbox#5591
Frenzie merged 5 commits intokoreader:masterfrom
robert00s:dropbox_sync

Conversation

@robert00s
Copy link
Copy Markdown
Contributor

@robert00s robert00s commented Nov 13, 2019

Option to synchronize files in local koreader folder with folder on Dropbox. All files that aren't on the local disk will be downloaded. Files with different sizes will also be downloaded and overwritten.
The download process can be paused or stopped at any time (similar to downloading images in Wikipedia).

Synchronize and settings are available after long press in dropbox account in Cloud storage.
Limitations: Only one folder (without subfolders) can be synchronize with one folder on local storage.

Close: #4971

@Frenzie Frenzie added this to the 2019.12 milestone Nov 13, 2019
Copy link
Copy Markdown
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that's pretty large! ;-)

end

local response, go_on
local procceded_file = 0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo for processed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks :)

robert00s and others added 4 commits November 14, 2019 10:42
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
@Frenzie
Copy link
Copy Markdown
Member

Frenzie commented Nov 18, 2019

No one else commented, so I'll merge this now.

@Frenzie Frenzie merged commit 04741d8 into koreader:master Nov 18, 2019
if not failed_files then failed_files = 0 end
local text
if downloaded_files == 0 and failed_files == 0 then
text = _("No files to download from dropbox.")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, missed this.

elseif downloaded_files > 0 and failed_files == 0 then
text = T(_("Successfuly downloaded %1 files from Dropbox to local storage."), downloaded_files)
else
text = T(_("Successfuly downloaded %1 files from Dropbox to local storage.\nFailed downloaded %2 files."),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this

buttons = {
{
{
text = _("Choose dropbox folder"),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this :-P

@robert00s robert00s deleted the dropbox_sync branch November 23, 2019 18:13
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
Option to synchronize files in local koreader folder with folder on Dropbox. All files that aren't on the local disk will be downloaded. Files with different sizes will also be downloaded and overwritten.
The download process can be paused or stopped at any time (similar to downloading images in Wikipedia).

Synchronize and settings are available after long press in dropbox account in Cloud storage.
Limitations: Only one folder (without subfolders) can be synchronize with one folder on local storage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Synchronize Library

2 participants