tldr-python-client
tldr-python-client copied to clipboard
Notice other versions of the same page
Fixes #193
This PR changes the way pages are searched so that it can find multiple versions of the same page. Therefore, every time a page is searched, every possible platform is checked even if a previous valid one was found. If more than one page is found, the next platform in the priority list is noticed to the user.
It doesn't search in every page if the platform was determined by the user parameters.
The PR implements this specification.
Bugs: it wont find multiple versions of the page if the cache only contains one of them. As it's much faster to search on the cache, this bug was not resolved.
I ran black on the script
I reverted black formatting to not conflict with other PRs for now. We can maybe run it in another PR