Skip to content
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 support for delete-queue #16

Closed
chros73 opened this issue May 20, 2016 · 0 comments
Closed

Add support for delete-queue #16

chros73 opened this issue May 20, 2016 · 0 comments

Comments

@chros73
Copy link
Owner

chros73 commented May 20, 2016

Add support for .delqueue directory and refactor corresponding code.

The purpose of delete-queue is to be able to specify torrents (in the form of symlinks pointing to their metafile in this .delqueue directory) that will be deleted at first by a future queue script.

  1. Add new boolean flag to store this: d.custom=delqueue
  2. Create the following methods:
  • d.add_to_delqueue adds the selected torrent to delqueue only if it has the unsafe_data flag
  • d.remove_from_delqueue removes the selected torrent from delqueue
  • d.fix_delqueue_flag fixes delqueue flag, apply only if unsafe_data flag and symlink in delqueue dir exists, remove it otherwise .
    Run this once per day: it's useful when a script creates these symlinks and we want to update this property.
  1. Include delqueue support when data deleting happens.
  2. This d.custom=delqueue flag (along with d.custom=unsafe_data flag) will be visible in the patched rtorrent-ps: Add 2 more columns on collapsed view rtorrent-ps-ch#3
  3. Modify existing d.move_to manual moving method to support this new flag and reorder its parameters:
  • it receives 4 arguments: dirname,specialgroup,unsafe_data,delqueue
  • d.move_to=rotating,1,1, or d.move_to=rotating,1,1,1
  • d.move_to=fullseed,1,,
  • d.move_to=unsafe,,1, or d.move_to=unsafe,,1,1
  • d.move_to=others,,,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant