Add support for ignoring YTM's spelling suggestions (#91)

This commit is contained in:
Forrest Jones 2020-10-20 17:50:48 -06:00
commit 5c13accd96
2 changed files with 19 additions and 2 deletions

View file

@ -39,6 +39,13 @@ 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)
results = youtube_auth.search(query, 'songs', True)
self.assertGreater(len(results), 0)
def test_search_uploads(self):
results = youtube_auth.search('audiomachine', 'uploads')
self.assertGreater(len(results), 0)