Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ismaelpadilla opened this issue Aug 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ismaelpadilla
Copy link
Owner

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 ismaelpadilla added the enhancement New feature or request label Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant