Improve search error handling, remove unneeded print()
This commit is contained in:
parent
ecdda96b7f
commit
1fc42b05e9
2 changed files with 20 additions and 14 deletions
|
|
@ -13,6 +13,10 @@ def get_owned_playlist():
|
|||
songs = youtube_auth.get_playlist_items('PLQwVIlKxHM6oCeKLTsUx_w9CmWjHKdg68')
|
||||
assert (len(songs) == 64)
|
||||
|
||||
def search():
|
||||
results = youtube_auth.search("Oasis Wonderwall")
|
||||
print(results)
|
||||
|
||||
#end to end test adding playlist, adding item, deleting item, deleting playlist
|
||||
def end2end():
|
||||
playlist = youtube_auth.add_playlist("test", "test description", False)
|
||||
|
|
@ -38,4 +42,5 @@ def end2end():
|
|||
# YTMusic.search('lione revive')
|
||||
|
||||
if __name__ == '__main__':
|
||||
end2end()
|
||||
#end2end()
|
||||
search()
|
||||
|
|
|
|||
Loading…
Reference in a new issue