Skip to content

Commit

Permalink
Update version to 0.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed May 22, 2021
1 parent 5d59a09 commit 47d2118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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'])
Expand Down
2 changes: 1 addition & 1 deletion ytmusicapi/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.17.1"
__version__ = "0.17.2"

0 comments on commit 47d2118

Please sign in to comment.