idlesign / deluge-webapi

Plugin for Deluge WebUI providing sane JSON API
https://github.com/idlesign/deluge-webapi
BSD 3-Clause "New" or "Revised" License
120 stars 27 forks source link

Get progress #2

Closed noamanahmed closed 8 years ago

noamanahmed commented 9 years ago

Hi Any way to show current progress upload download speed and seeders leechers and time remaining?

idlesign commented 9 years ago

Hi,

Yes, probably: get_torrents accepts params argument and you can supply to it params names to retrieve, e.g.: 'state', 'progress', etc. Yet I can't remember exact names for the params you want, not from the top of my head. You can consult Deluge docs on get_torrents_status method.

noamanahmed commented 9 years ago

Thanx so much...actually I was looking to get info about a single file

On Tue, Dec 23, 2014 at 6:40 PM, Igor Starikov notifications@github.com wrote:

Hi,

Yes, probably: get_torrents accepts params argument and you can supply to it params names to retrieve, e.g.: 'state', 'progress', etc. Yet I can't remember exact names for the params you want, not from the top of my head. You can consult Deluge docs on get_torrents_status method.

— Reply to this email directly or view it on GitHub https://github.com/idlesign/deluge-webapi/issues/2#issuecomment-67951572 .

idlesign commented 9 years ago

You should consult the built-in API then, I think.

noamanahmed commented 9 years ago

can you guide me please...I am kind of a beginner skype:noamanahmed99

On Wed, Dec 24, 2014 at 6:05 PM, Igor Starikov notifications@github.com wrote:

You should consult the built-in API then, I think.

— Reply to this email directly or view it on GitHub https://github.com/idlesign/deluge-webapi/issues/2#issuecomment-68051044 .

idlesign commented 9 years ago

I'm personally do not use the built int Deluge JSON API, so you probably better to post your question on Deluge Forum - http://forum.deluge-torrent.org/viewforum.php?f=8&sid=1d58cb585e03af5ddf13888cb50918e4 and also consult API docs at http://deluge-torrent.org/docs/1.2/modules/ui/web/json_api.html

noamanahmed commented 9 years ago

the last parameter id...could you explain how to use it properly

idlesign commented 9 years ago

Sorry, the last parameter id of what?

noamanahmed commented 9 years ago

np got that sorted...

$post='{"method": "web.get_torrent_status","params": ["'.$file.'",["name","paused","ratio","progress"]], "id": 1}';

can you tell me what I am doing wrong?

On Wed, Dec 24, 2014 at 7:37 PM, Igor Starikov notifications@github.com wrote:

Sorry, the last parameter id of what?

— Reply to this email directly or view it on GitHub https://github.com/idlesign/deluge-webapi/issues/2#issuecomment-68055715 .

idlesign commented 9 years ago

You probably could deduce it from server response, yet I see no get_torrent_status in http://deluge-torrent.org/docs/1.2/modules/ui/web/json_api.html

noamanahmed commented 9 years ago

I have seen the page...Basically The server doesnot give any error but return the result part to be empty

On Wed, Dec 24, 2014 at 7:56 PM, Igor Starikov notifications@github.com wrote:

You probably could deduce it from server response, yet I see no get_torrent_status in http://deluge-torrent.org/docs/1.2/modules/ui/web/json_api.html

— Reply to this email directly or view it on GitHub https://github.com/idlesign/deluge-webapi/issues/2#issuecomment-68056772 .

idlesign commented 9 years ago

Some hints:

  1. Make sure you logged in;
  2. Make sure called method exists;
  3. Make sure called method accepts given params.
SchizoDuckie commented 9 years ago

Needed this same info.

Found this:

https://github.com/deluge-torrent/deluge/blob/852f6049bd0b5bf31c8c578b8e112108239847ea/deluge/ui/web/js/deluge-all/data/TorrentRecord.js

It would be awesome if you could expand the docs a bit, even if it's just references to files like this that tell what parameters you can use for requests.

idlesign commented 9 years ago

@SchizoDuckie The thing is those API methods are not part of deluge-webapi — they're shipped with Deluge WebUI and maintained by those other guys %) So only those guys have actual knowledge of current and futher state of API, and it's them who should keep actual documentation.

idlesign commented 8 years ago

Considered closed. Feel free to reopen in required.