Update behavior of get_lyrics to match YouTube API
This commit is contained in:
parent
3de9b5e4e8
commit
bfbbcc5859
3 changed files with 7 additions and 12 deletions
|
|
@ -101,11 +101,8 @@ class TestYTMusic(unittest.TestCase):
|
|||
self.assertIsNotNone(lyrics_song["lyrics"])
|
||||
self.assertIsNotNone(lyrics_song["source"])
|
||||
|
||||
playlist = youtube.get_watch_playlist("9TnpB8WgW4s")
|
||||
no_lyrics_song = youtube.get_lyrics(playlist["lyrics"])
|
||||
self.assertFalse(no_lyrics_song["lyricsFound"])
|
||||
self.assertIsNotNone(no_lyrics_song["lyrics"])
|
||||
self.assertIsNotNone(no_lyrics_song["source"])
|
||||
browseId = youtube.get_watch_playlist("9TnpB8WgW4s")
|
||||
self.assertIsNone(browseId)
|
||||
|
||||
###############
|
||||
# WATCH
|
||||
|
|
|
|||
Loading…
Reference in a new issue