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

Get torrent trackers impl error #15545

Closed
xxxsen opened this issue Oct 8, 2021 · 5 comments · Fixed by #15549
Closed

Get torrent trackers impl error #15545

xxxsen opened this issue Oct 8, 2021 · 5 comments · Fixed by #15549
Labels
WebAPI WebAPI-related issues/changes

Comments

@xxxsen
Copy link

xxxsen commented Oct 8, 2021

qBittorrent & operating system versions

qBittorrent: v4.3.8
Operating system: ubuntu 20.04
Qt: 5.12.8
libtorrent: 1.2.14.0

What is the problem?

tier value in response should be an integer, but found empty string in some trackers.

[{"msg":"","num_downloaded":0,"num_leeches":0,"num_peers":0,"num_seeds":0,"status":2,"tier":"","url":"** [DHT] **"},{"msg":"","num_downloaded":0,"num_leeches":0,"num_peers":0,"num_seeds":0,"status":2,"tier":"","url":"** [PeX] **"},{"msg":"","num_downloaded":0,"num_leeches":0,"num_peers":0,"num_seeds":0,"status":2,"tier":"","url":"** [LSD] **"},{"msg":"","num_downloaded":-1,"num_leeches":1,"num_peers":0,"num_seeds":1,"status":2,"tier":0,"url":"udp://156.234.201.18:80/announce"}]

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

@xxxsen
Copy link
Author

xxxsen commented Oct 8, 2021

another err in document.

https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#get-torrent-contents

index in response should be integer not string

@glassez glassez added the WebAPI WebAPI-related issues/changes label Oct 8, 2021
@glassez glassez changed the title [WEBAPI]Get torrent trackers impl error Get torrent trackers impl error Oct 8, 2021
Chocobo1 added a commit to Chocobo1/qBittorrent that referenced this issue Oct 9, 2021
@Chocobo1
Copy link
Member

Chocobo1 commented Oct 9, 2021

What is the problem?
tier value in response should be an integer, but found empty string in some trackers.

Will be fixed in #15549.

another err in document.
https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#get-torrent-contents
index in response should be integer not string

The string type is correct, otherwise how would you concatenate as such "123|456"?

@xxxsen
Copy link
Author

xxxsen commented Oct 9, 2021

What is the problem?
tier value in response should be an integer, but found empty string in some trackers.

Will be fixed in #15549.

another err in document.
https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#get-torrent-contents
index in response should be integer not string

The string type is correct, otherwise how would you concatenate as such "123|456"?

but i got integer type when i call this api... @Chocobo1
for multi index, you can return an integer array..

@Chocobo1
Copy link
Member

Chocobo1 commented Oct 9, 2021

The string type is correct, otherwise how would you concatenate as such "123|456"?

I misread for request, now I see you meant response. Then the wiki is wrong, I'll update it (next time you can update it too if you are sure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebAPI WebAPI-related issues/changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants