Skip to content

Commit

Permalink
Show only non-deleted regular torrents in search results list
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovsky committed Sep 30, 2022
1 parent 2ca46e6 commit 62799fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tribler/gui/widgets/searchresultswidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def search(self, query: Query) -> bool:
original_query=query.original_query,
text_filter=to_fts_query(query.fts_text),
tags=list(query.tags),
type_filter=[REGULAR_TORRENT, CHANNEL_TORRENT, COLLECTION_NODE],
type_filter=[REGULAR_TORRENT],
exclude_deleted=True,
)
self.results_page_content.initialize_root_model(model)
self.setCurrentWidget(self.results_page)
Expand All @@ -115,7 +116,8 @@ def register_request(response):
self.search_request = SearchRequest(response["request_uuid"], query, peers)
self.search_progress_bar.set_remote_total(len(peers))

params = {'txt_filter': fts_query, 'hide_xxx': self.hide_xxx, 'tags': list(query.tags)}
params = {'txt_filter': fts_query, 'hide_xxx': self.hide_xxx, 'tags': list(query.tags),
'metadata_type': REGULAR_TORRENT, 'exclude_deleted': True}
TriblerNetworkRequest('remote_query', register_request, method="PUT", url_params=params)

return True
Expand Down

0 comments on commit 62799fb

Please sign in to comment.