Add subscription properties to get_artist (fixes #35)

subscribers, subscribed and channelId
This commit is contained in:
sigma67 2020-06-29 12:57:24 +02:00
commit 667a6edc81
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 16 additions and 7 deletions

View file

@ -41,7 +41,7 @@ class TestYTMusic(unittest.TestCase):
def test_get_artist(self):
results = youtube.get_artist("UCmMUZbaYdNH0bEd1PAlAqsA")
self.assertEqual(len(results), 8)
self.assertEqual(len(results), 11)
def test_get_artist_albums(self):
artist = youtube.get_artist("UCAeLFBCQS7FvI8PvBrWvSBg")
@ -107,8 +107,8 @@ class TestYTMusic(unittest.TestCase):
self.assertIn('actions', response)
def test_subscribe_artists(self):
youtube_auth.subscribe_artists(['UCmMUZbaYdNH0bEd1PAlAqsA', 'UCEPMVbUzImPl4p8k4LkGevA'])
youtube_auth.unsubscribe_artists(['UCmMUZbaYdNH0bEd1PAlAqsA', 'UCEPMVbUzImPl4p8k4LkGevA'])
youtube_auth.subscribe_artists(['UCUDVBtnOQi4c7E8jebpjc9Q', 'UCiMhD4jzUqG-IgPzUmmytRQ'])
youtube_auth.unsubscribe_artists(['UCUDVBtnOQi4c7E8jebpjc9Q', 'UCiMhD4jzUqG-IgPzUmmytRQ'])
###############
# PLAYLISTS