You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Sorry I can't use the template for some reason)
When request the content of a torrent, the current WebAPI simply returns all the files. This is very wasteful when the torrent contains hundreds of files and the user is actually interested in only a few of them. I suggest we add an id parameter which is a list of file indices delimeted by |. The API should then return only the files of those indices. For backward compatiblity we can make the id parameter optional such that all files are returned when it's omitted.
Hi @glassez . In my particular case I want to obtain files that could be non-continuous. Would that be a problem?
riaqn
changed the title
[WebAPI] Allow specifying file indices when requesting content of torrents
Allow specifying file indices when requesting content of torrents
Apr 8, 2021
(Sorry I can't use the template for some reason)
When request the content of a torrent, the current WebAPI simply returns all the files. This is very wasteful when the torrent contains hundreds of files and the user is actually interested in only a few of them. I suggest we add an
id
parameter which is a list of file indices delimeted by|
. The API should then return only the files of those indices. For backward compatiblity we can make theid
parameter optional such that all files are returned when it's omitted.Related code:
qBittorrent/src/webui/api/torrentscontroller.cpp
Line 511 in fda6def
The text was updated successfully, but these errors were encountered: