Skip to content

Allow to filter torrent list by infohash#23829

Open
stalkerok wants to merge 1 commit intoqbittorrent:masterfrom
stalkerok:hash
Open

Allow to filter torrent list by infohash#23829
stalkerok wants to merge 1 commit intoqbittorrent:masterfrom
stalkerok:hash

Conversation

@stalkerok
Copy link
Contributor

@stalkerok stalkerok commented Feb 11, 2026

Closes #10893.

@stalkerok stalkerok added WebUI WebUI-related issues/changes GUI GUI-related issues/changes labels Feb 11, 2026
@stalkerok stalkerok requested a review from a team February 11, 2026 18:20
@xavier2k6
Copy link
Member

Alternative naming:

Allow to filter torrent list by infohash

Allow to filter transferlist by infohash

@stalkerok stalkerok changed the title Add filtering to the transfer list by infohash Allow to filter torrent list by infohash Feb 11, 2026
@stalkerok
Copy link
Contributor Author

Allow to filter torrent list by infohash

👍

@xavier2k6
Copy link
Member

@qbittorrent/bug-handlers Should we just include all column names at this stage as requested/suggested in #23774?

@stalkerok
Copy link
Contributor Author

I don't think filtering by all columns makes sense, but can add filtering by category, tags, and addition/completion dates.

@ratijas
Copy link

ratijas commented Feb 12, 2026

Allow to filter torrent list by infohash

My five cents into bikeshedding: drop the "Allow to" and "list", it should be pretty clear from the context.

On rutracker.org it's just "by info_hash" btw:

image

Otherwise I don't care how is it called as long as I don't have to write ad-hoc Python scripts for basic tasks anymore (:

@xavier2k6
Copy link
Member

xavier2k6 commented Feb 12, 2026

drop the "Allow to" and "list"

Those words are only for the PR/commit naming.


This is how it will look in drop-down menu:

Screenshot 2026-02-12 171453

@ratijas
Copy link

ratijas commented Feb 12, 2026

By the way, should the drop-down be needed at all? Isn't info hash a fixed size string that is very easy to recognize with a simplest regex of all time? I was honestly surprised that I had to use the drop-down on the web-site too.

@glassez
Copy link
Member

glassez commented Feb 13, 2026

I don't think filtering by all columns makes sense, but can add filtering by category, tags, and addition/completion dates.

Tags and Categories are filtered using filter sidebar.

@stalkerok
Copy link
Contributor Author

Tags and Categories are filtered using filter sidebar.

There are not many options for adding items, but filtering by categories and tags can be useful if their names partially match, as this will display several categories or tags.

@glassez
Copy link
Member

glassez commented Feb 13, 2026

filtering by categories and tags can be useful if their names partially match, as this will display several categories or tags.

This might make sense, but it should behave consistently with the sidebar filter as well.

@ratijas
Copy link

ratijas commented Feb 13, 2026

Tags and Categories are filtered using filter sidebar.

I was thinking about marking read/watched/unneeded torrents with a tag like "done". But then I realize there is no way to filter like not tag:done, so it won't be very useful

@xavier2k6
Copy link
Member

I suppose any other options can be discussed in their relevant ticket(s) & any other submitted PR's.

Giving my approval for this PR anyway.

tr("Transfers"));
// Filter types
const QList<TransferListModel::Column> filterTypes = {TransferListModel::Column::TR_NAME, TransferListModel::Column::TR_SAVE_PATH};
const QList<TransferListModel::Column> filterTypes = {TransferListModel::Column::TR_NAME, TransferListModel::Column::TR_SAVE_PATH, TransferListModel::Column::TR_INFOHASH_V1, TransferListModel::Column::TR_INFOHASH_V2};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const QList<TransferListModel::Column> filterTypes = {TransferListModel::Column::TR_NAME, TransferListModel::Column::TR_SAVE_PATH, TransferListModel::Column::TR_INFOHASH_V1, TransferListModel::Column::TR_INFOHASH_V2};
const QList<TransferListModel::Column> filterTypes = {
TransferListModel::Column::TR_NAME
, TransferListModel::Column::TR_SAVE_PATH
, TransferListModel::Column::TR_INFOHASH_V1
, TransferListModel::Column::TR_INFOHASH_V2};

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's none of my business
, but out of curiosity
, which languages do you speak that put commas at the start of lines
?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not about any human language.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just to simplify the code review, as it allows you to quickly identify that this line is a continuation of the list.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you get at least one line of context surrounding diff either way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI GUI-related issues/changes WebUI WebUI-related issues/changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to search for a torrent by hash using "Filter torrent list"

5 participants