Closed brookesy2 closed 9 years ago
Fuzzy matching will produce the below error in python3:
File "/usr/local/lib/python3.4/dist-packages/pytvmaze/tvmaze.py", line 93, in get_show s = fuzzymatch.fuzzy_search(search_text, results) File "/usr/local/lib/python3.4/dist-packages/pytvmaze/fuzzymatch.py", line 115, in fuzzy_search return max(matches, key=lambda key: matches[key]) TypeError: unorderable types: dict() > dict()
More detail here I believe. http://stackoverflow.com/questions/22333388/dicts-are-not-orderable-in-python-3
I will try work up a pull request.
Pull request: https://github.com/srob650/pytvmaze/pull/8
Fuzzy matching will produce the below error in python3:
File "/usr/local/lib/python3.4/dist-packages/pytvmaze/tvmaze.py", line 93, in get_show s = fuzzymatch.fuzzy_search(search_text, results) File "/usr/local/lib/python3.4/dist-packages/pytvmaze/fuzzymatch.py", line 115, in fuzzy_search return max(matches, key=lambda key: matches[key]) TypeError: unorderable types: dict() > dict()
More detail here I believe. http://stackoverflow.com/questions/22333388/dicts-are-not-orderable-in-python-3
I will try work up a pull request.