unadd: set_album_save. unneeded duplicate to rate_playlist

This commit is contained in:
jcbirdwell 2023-12-18 12:53:31 -06:00
commit 742f5842fa
2 changed files with 0 additions and 26 deletions

View file

@ -441,13 +441,6 @@ class TestYTMusic(unittest.TestCase):
"INDIFFERENT")
self.assertIn("actions", response)
def test_save_album(self):
response = self.yt_auth.set_album_save("OLAK5uy_kCxQGgn8Ayb-8VNSs3Ok7qdcKe5PJy6ZQ")
self.assertIn("actions", response)
response = self.yt_auth.set_album_save("OLAK5uy_kCxQGgn8Ayb-8VNSs3Ok7qdcKe5PJy6ZQ",
saved=False)
self.assertIn("actions", response)
def test_subscribe_artists(self):
self.yt_auth.subscribe_artists(["UCUDVBtnOQi4c7E8jebpjc9Q", "UCiMhD4jzUqG-IgPzUmmytRQ"])
self.yt_auth.unsubscribe_artists(["UCUDVBtnOQi4c7E8jebpjc9Q", "UCiMhD4jzUqG-IgPzUmmytRQ"])

View file

@ -267,25 +267,6 @@ class LibraryMixin:
return self._send_request(endpoint, body)
def set_album_save(self, audioPlaylistId: str, saved=True):
"""
Edit the save status of an album in the user's library. Findable convenience/alias
method for album portion of rate_playlist.
:param audioPlaylistId: audioPlaylistId (starts with "OLAKuy_") for the target album
:param saved: Boolean. The resulting saved state of the album. (Default = True)
:return: Full response
"""
self._check_auth()
body = {'target': {'playlistId': audioPlaylistId}}
endpoint = prepare_like_endpoint('LIKE' if saved else 'INDIFFERENT')
if endpoint is None:
return
return self._send_request(endpoint, body)
def edit_song_library_status(self, feedbackTokens: List[str] = None) -> Dict:
"""
Adds or removes a song from your library depending on the token provided.