diff --git a/tests/test.py b/tests/test.py index a3be4d8..303c980 100644 --- a/tests/test.py +++ b/tests/test.py @@ -48,7 +48,7 @@ def test_search(self): self.assertGreater(len(results), 10) results = self.yt_auth.search(query, 'albums', limit=40) self.assertGreater(len(results), 20) - results = self.yt_auth.search('oasiss', 'artists', ignore_spelling=True) + results = self.yt_auth.search('oasos', 'artists', ignore_spelling=True) self.assertGreater(len(results), 0) results = self.yt_auth.search("classical music", 'playlists') self.assertGreater(len(results), 5) @@ -258,6 +258,8 @@ def test_get_foreign_playlist(self): def test_get_owned_playlist(self): playlist = self.yt_brand.get_playlist(config['playlists']['own']) self.assertLess(len(playlist['tracks']), 100) + if not playlist['suggestions_token']: + self.skipTest("Suggestions not available") suggestions = self.yt_brand.get_playlist_suggestions(playlist['suggestions_token']) self.assertGreater(len(suggestions['tracks']), 5) refresh = self.yt_brand.get_playlist_suggestions(suggestions['refresh_token']) diff --git a/ytmusicapi/_version.py b/ytmusicapi/_version.py index c6eae9f..337a1e7 100644 --- a/ytmusicapi/_version.py +++ b/ytmusicapi/_version.py @@ -1 +1 @@ -__version__ = "0.17.1" +__version__ = "0.17.2"