-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add ability to get resume data synchronously #7869
base: RC_2_0
Are you sure you want to change the base?
Conversation
@arvidn |
I think this PR looks good. It would be nice to expose it to python, add a test to exercise it and I don't think you need the |
@@ -844,6 +845,8 @@ namespace aux { | |||
bool need_save_resume_data() const; | |||
bool need_save_resume_data(resume_data_flags_t flags) const; | |||
|
|||
add_torrent_params get_resume_data(resume_data_flags_t flags = {}) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arvidn
Does it make sense to support flags in this function? The only flag that makes sense when applied to it is save_info_dict
. But the point is that for some time now it only assign a pointer to add_torrent_params
. What could be the problem of doing this unconditionally? The caller could just clear it if it is not needed. (IMO, save_info_dict
could be even deprecated at all.)
8f01bd7
to
b38943e
Compare
Ok, changed.
I don't know anything about it at all. At least where is it?
I could add something similar to |
No description provided.