mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
[Web UI] Add Web Seeds (HTTP Sources) tab
This commit is contained in:
parent
f12b300298
commit
8e4b9f30bb
10 changed files with 175 additions and 2 deletions
|
@ -76,6 +76,7 @@ QMap<QString, QMap<QString, WebApplication::Action> > WebApplication::initialize
|
|||
ADD_ACTION(query, transferInfo);
|
||||
ADD_ACTION(query, propertiesGeneral);
|
||||
ADD_ACTION(query, propertiesTrackers);
|
||||
ADD_ACTION(query, propertiesWebSeeds);
|
||||
ADD_ACTION(query, propertiesFiles);
|
||||
ADD_ACTION(sync, maindata);
|
||||
ADD_ACTION(command, shutdown);
|
||||
|
@ -249,6 +250,12 @@ void WebApplication::action_query_propertiesTrackers()
|
|||
print(btjson::getTrackersForTorrent(args_.front()), Http::CONTENT_TYPE_JS);
|
||||
}
|
||||
|
||||
void WebApplication::action_query_propertiesWebSeeds()
|
||||
{
|
||||
CHECK_URI(1);
|
||||
print(btjson::getWebSeedsForTorrent(args_.front()), Http::CONTENT_TYPE_JS);
|
||||
}
|
||||
|
||||
void WebApplication::action_query_propertiesFiles()
|
||||
{
|
||||
CHECK_URI(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue