Skip to content

subscribe_artists only appears to allow subscribing to a single artist but function accepts a list #785

@nick42d

Description

@nick42d
  • I confirm that I have read the FAQ

Describe the bug

It appears that from the Google side, subscribe_artists throws a 400 error if more than 1 channel_id is provided.
unsubscribe_artists still allows multiple.

I propose subscribe_artists be renamed to subscribe_artist, and modified to accept a single string channel id (instead of a list).

ytmusicapi version

1.10.3-1

To Reproduce

// UCMyqqExD7o8zVB5SDUhhuCQ - The Dung Beatles
// UCwMzxvcq8VmfclCG6QUTm7g - Clube Big Beatles

// This works - doesn't matter if artist is subscribed or unsubscribed from youtube side
ytmusic.subscribe_artists(["UCMyqqExD7o8zVB5SDUhhuCQ"])
// This works - doesn't matter if artist is subscribed or unsubscribed from youtube side
ytmusic.subscribe_artists(["UCwMzxvcq8VmfclCG6QUTm7g"])
// This doesn't work - 400 error - even if both artists are unsubscribed from youtube side
ytmusic.subscribe_artists(["UCMyqqExD7o8zVB5SDUhhuCQ", "UCwMzxvcq8VmfclCG6QUTm7g"])

// This still works
ytmusic.unsubscribe_artists(["UCMyqqExD7o8zVB5SDUhhuCQ", "UCwMzxvcq8VmfclCG6QUTm7g"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions