Changes between Version 12 and Version 13 of Development/WebUi/Json


Ignore:
Timestamp:
01/07/2009 12:09:35 AM (15 years ago)
Author:
damoxc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Development/WebUi/Json

    v12 v13  
    5353=== get_webui_templates() === 
    5454returns: a list of strings. 
     55 
     56=== download_torrent_from_url(url) === 
     57input: 
     58{{{ 
     59    url: the url of the torrent to download 
     60}}} 
     61returns: 
     62{{{ 
     63    filename: the temporary file name of the torrent file 
     64}}} 
     65 
     66=== get_torrent_info(filename) === 
     67Goal: 
     68    allow the webui to retrieve data about the torrent 
     69 
     70input: 
     71{{{ 
     72    filename: the filename of the torrent to gather info about 
     73}}} 
     74 
     75returns: 
     76{{{ 
     77{ 
     78    "filename": the torrent file 
     79    "name": the torrent name 
     80    "size": the total size of the torrent 
     81    "files": the files the torrent contains 
     82    "info_hash" the torrents info_hash 
     83} 
     84}}} 
     85 
     86=== add_torrents(torrents) === 
     87input: 
     88{{{ 
     89    torrents [{ 
     90        path: the path of the torrent file, 
     91        options: the torrent options 
     92    }] 
     93}}}