#1858: deluge-console: Add command to show and set per-torrent options
---------------------+------------------------------------------------------
 Reporter:  eirikba  |       Owner:  Cas           
     Type:  patch    |      Status:  assigned      
 Priority:  minor    |   Milestone:  1.3.x         
Component:  console  |     Version:  git 1.3-stable
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by eirikba):

 I've made a quick investigation, and all these options seems to be more-
 or-less settable.  The ones that aren't commented out looks like they
 probably have a predictable effect when being set:

 {{{
 #!python
 set_torrent_options = {
     # These are handled by torrent.py's Torrent.set_options()
     'auto_managed': bool,
     #'download_location': str, # Probably not useful to set
     #'file_priorities': ???, # Not a simple value to set, probably needs
 its own command
     'max_connections': int,
     'max_download_speed': float,
     'max_upload_slots': int,
     'max_upload_speed': float,
     'prioritize_first_last_pieces': bool, # Only has effect if torrent
 contains a single file

     # These are "handled" by being set directly on the options dict
     'stop_at_ratio': bool,
     'stop_ratio': float,
     'remove_at_ratio': bool,
     'move_completed': bool,
     'move_completed_path': str,

     #'compact_allocation': bool, # Unclear whether this has any effect
     #'add_paused': ???, # Not returned by get_status, unclear what the
 effect would be
     #'mapped_files': ??? # Not returned by get_status, unclear what the
 effect would be
     }
 }}}

 And the getter renames some of the values, like this:

 {{{
 #!python
 get_torrent_options = {
     'max_download_speed': 'max_download_speed',
     'max_upload_speed': 'max_upload_speed',
     'max_connections': 'max_connections',
     'max_upload_slots': 'max_upload_slots',
     'prioritize_first_last': 'prioritize_first_last_pieces',
     'is_auto_managed': 'auto_managed',
     'stop_at_ratio': 'stop_at_ratio',
     'stop_ratio': 'stop_ratio',
     'remove_at_ratio': 'remove_at_ratio',
     'move_on_completed': 'move_completed',
     'move_on_completed_path': 'move_completed_path',
     #'file_priorities': 'file_priorities',
     #'compact': 'compact_allocation',
     #'save_path': 'download_location'
     }
 }}}

 I think I'll accept all of these, and I think I'll have the command only
 accept (and display) the setter's names.

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/1858#comment:11>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to