Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_artist returns different channelId for some artists #480

Closed
Schtenk opened this issue Nov 28, 2023 · 5 comments
Closed

get_artist returns different channelId for some artists #480

Schtenk opened this issue Nov 28, 2023 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@Schtenk
Copy link

Schtenk commented Nov 28, 2023

You missunderstand me in both #477 and #479.
What im saying is and that the channelId parsed from the get_artist response is the wrong one so if used again in with get_artist no songs are returned, as the links clearly shows.

sorry for trying to help, I wont make more issues.

@sigma67
Copy link
Owner

sigma67 commented Nov 28, 2023

You know you can just reopen the issue or comment below.

If you followed the issue template it would be much easier to reproduce your issue. Here it is again:

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Additional context
Add any other context about the problem here, such as a code sample.

@Schtenk
Copy link
Author

Schtenk commented Nov 28, 2023

Tried to comment but for some reason I couldn't.
It isn't necessarily a bug depending on what channel id you want, which is why I didn't create a bug report specifically.

I just wanted to point out based on the comment in the code:
if 'musicShelfRenderer' in results[0]: # API sometimes does not return songs in mixin/browsing.py row:235
that using the channelId saved in the code:
artist['channelId'] = subscription_button['channelId'] in in mixin/browsing.py row:224
with get_artist will not return any songs, and that it may be the answer why the issue the comment refers to happens.

@sigma67 sigma67 changed the title get_artist missing songs clarification again. get_artist returns different channelId for some artists Nov 29, 2023
@sigma67
Copy link
Owner

sigma67 commented Dec 18, 2023

I mean yes, I guess this is a valid issue.

On the other hand, when you're calling get_artist you already have the channelBrowseId. So isn't it more useful to return the channelId from the subscribeButton in that case?

@Schtenk
Copy link
Author

Schtenk commented Dec 18, 2023

Sure, may just be a naming/documentation issue where both are called channelId. It should rarely be a problem but if a user saves the subscribe one for later thinking they are the same, may then lead to the issue occuring.

Only the channelId under the subscribe button can be used for subscribing if i remember correctly, so it is usefull.

@sigma67
Copy link
Owner

sigma67 commented Dec 19, 2023

Renaming the key is difficult since it would break backwards compatibility. In light of this subscriptionChannelId would be the better name. I think we can add it to the docstring?

@sigma67 sigma67 added the documentation Improvements or additions to documentation label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants