Add support for ignoring YTM's spelling suggestions (#91)
This commit is contained in:
parent
bdbaada36a
commit
5c13accd96
2 changed files with 19 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue