feature: add get_song_related (closes #252)

This commit is contained in:
sigma67 2022-05-10 14:12:16 +02:00
commit edb963766c
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
6 changed files with 149 additions and 64 deletions

View file

@ -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"])