gotorrent icon indicating copy to clipboard operation
gotorrent copied to clipboard

Show appropriate message when search query doesn't match with any torrents

Open ismaelpadilla opened this issue 2 years ago • 0 comments

When the search query leads to no results being found, the torrent table is still printed, and it is possible to select the "fake" No results returned row:

  No.                                                            Title      Size    S    L Uploaded
>   0                                              No results returned     0.00B    0    0 1969-12-31

This is because the torrent api returns the following when a query doesn't match with any torrents (i.e. https://apibay.org/q.php?q=):

[{"id":"0","name":"No results returned","info_hash":"0000000000000000000000000000000000000000","leechers":"0","seeders":"0","num_files":"0","size":"0","username":"","added":"0","status":"member","category":"0","imdb":"","total_found":"1"}]

This special case should be handled, and an appropriate message should be shown.

ismaelpadilla avatar Aug 21 '22 00:08 ismaelpadilla