Changes between Version 44 and Version 45 of archive/Development/UiClient


Ignore:
Timestamp:
08/29/2008 05:40:39 PM (16 years ago)
Author:
mvoncken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • archive/Development/UiClient

    v44 v45  
    341341 
    342342= Notes = 
    343  * The available keys for get_torrent_status(id, keys) at the time of writing this: 
     343* The available keys for get_torrent_status(id, keys) == 
    344344    {{{ 
    345345#!python 
    346     ['name', 'total_size', 'num_files', 'num_pieces', 'piece_length', 
    347     'eta', 'ratio', 'file_progress', 'distributed_copies', 'total_done', 
    348     'total_uploaded', 'state', 'paused', 'progress', 'next_announce', 
    349     'total_payload_download', 'total_payload_upload', 'download_payload_rate', 
    350     'upload_payload_rate', 'num_peers', 'num_seeds', 'total_peers', 'total_seeds', 
    351     'total_wanted', 'tracker', 'trackers', 'tracker_status', 'save_path', 
    352     'files', 'file_priorities', 'compact', 'max_connections', 
    353     'max_upload_slots', 'max_download_speed', 'prioritize_first_last', 
    354     'private','max_upload_speed','queue','peers', 
    355     "active_time", "seeding_time", "seed_rank", "is_auto_managed", #stats 
    356     "stop_at_ratio","stop_ratio","remove_at_ratio", #ratio 
    357     'tracker_host', 'label' #label-plugin 
    358     ] 
    359     }}} 
    360  
    361  * add_torrent_* methods : "options" parameter :  available  keys , omitted keys default to the deluge preferences. 
     346>>>sorted(sclient.get_status_keys()) 
     347['active_time', 'compact', 'distributed_copies', 'download_payload_rate', 'eta', 'file_priorities', 
     348'file_progress', 'files', 'hash', 'is_auto_managed', 'is_seed', 'label', 'max_connections', 
     349'max_download_speed', 'max_upload_slots', 'max_upload_speed', 'message', 'move_on_completed', 
     350'move_on_completed_path', 'name', 'next_announce', 'num_files', 'num_peers', 'num_pieces', 
     351'num_seeds', 'paused', 'peers', 'piece_length', 'prioritize_first_last', 'private', 'progress', 
     352'queue', 'ratio', 'remove_at_ratio', 'save_path', 'seed_rank', 'seeding_time', 'state', 
     353'stop_at_ratio', 'stop_ratio', 'total_done', 'total_payload_download', 'total_payload_upload', 
     354'total_peers', 'total_seeds', 'total_size', 'total_uploaded', 'total_wanted', 'tracker', 
     355'tracker_host', 'tracker_status', 'trackers', 'upload_payload_rate'] 
     356}}} 
     357 * set_torrent_options + add_torrent_* methods : "options" parameter :  available  keys : 
    362358    {{{ 
    363359#!python 
    364     {"max_download_speed_per_torrent":float(), 
    365         "max_upload_speed_per_torrent":float(), 
    366         "max_connections_per_torrent":int(), 
    367         "max_upload_slots_per_torrent":int(), 
    368         "prioritize_first_last_pieces":bool(), 
    369         "add_paused":bool() 
    370     } 
    371     }}} 
     360{ 
     361            "max_download_speed": float(), 
     362            "max_upload_speed": float(), 
     363            "max_connections": int(), 
     364            "max_upload_slots": int(), 
     365            "prioritize_first_last_pieces": bool(), 
     366            "auto_managed": bool(), 
     367            "file_priorities": list(), #list of integers. 
     368            "download_location": string() 
     369} 
     370}}} 
     371   These are also status-keys: get_torrent_options :  
     372{{{ 
     373#!python 
     374sclient.get_torrent_status(torrent_id,["max_download_speed","max_upload_speed","max_connections","max_upload_slots" 
     375    ,"prioritize_first_last_pieces","auto_managed","file_priorities","download_location"] ) 
     376}}} 
    372377 
    373378 * Examples: