feature: add get_song_related (closes #252)
This commit is contained in:
parent
7c242ba40b
commit
edb963766c
6 changed files with 149 additions and 64 deletions
|
|
@ -139,6 +139,11 @@ class TestYTMusic(unittest.TestCase):
|
|||
song = self.yt.get_song(sample_video)
|
||||
self.assertGreaterEqual(len(song['streamingData']['adaptiveFormats']), 10)
|
||||
|
||||
def test_get_song_related_content(self):
|
||||
song = self.yt_auth.get_watch_playlist(sample_video)
|
||||
song = self.yt_auth.get_song_related(song["related"])
|
||||
self.assertEqual(len(song), 5)
|
||||
|
||||
def test_get_lyrics(self):
|
||||
playlist = self.yt.get_watch_playlist(sample_video)
|
||||
lyrics_song = self.yt.get_lyrics(playlist["lyrics"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue