search(): Add option to ignore spelling correction (closes #91)

This commit is contained in:
sigma67 2020-11-30 15:33:33 +01:00
commit ffe2deffed
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 17 additions and 2 deletions

View file

@ -39,6 +39,11 @@ class TestYTMusic(unittest.TestCase):
results = youtube_auth.search(query, 'playlists')
self.assertGreater(len(results), 0)
def test_search_ignore_spelling(self):
query = "Martin Stig Andersen - Deteriation"
results = youtube_auth.search(query, ignore_spelling=True)
self.assertGreater(len(results), 0)
def test_search_uploads(self):
results = youtube_auth.search('audiomachine', 'uploads', limit=40)
self.assertGreater(len(results), 20)