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

(while authenticated) ytmusic.search always returns playlistId: None on first results #648

Closed
srajangarg opened this issue Sep 2, 2024 · 2 comments · Fixed by #659
Closed
Labels
bug Something isn't working

Comments

@srajangarg
Copy link

srajangarg commented Sep 2, 2024

Describe the bug
Same bug as #633
(while authenticated) ytmusic.search always returns playlistId: None on first (few?) results

To Reproduce

>>> ytmusic = YTMusic("oauth.json")
>>> results = ytmusic.search("070 shake - glitter")
>>> results[0]

{'category': 'Albums', 'resultType': 'album', 'title': 'Glitter', 'type': 'EP', 'playlistId': None, 'duration': None, 'year': '2018', 'artists': [{'name': '070 Shake', 'id': 'UC4CVrwAB1TblttvcZi7-qcw'}], 'browseId': 'MPREb_zwQ7GOGR5hH', 'isExplicit': True, 'thumbnails': [{'url': 'https://lh3.googleusercontent.com/bnC1I15cOIZ2X5iwBeDbuizDpBICZxdubPEq8duz1hK2yEijnxwesExXPqtRH9jS5z0l-AFdeGYC4dQ=w60-h60-l90-rj', 'width': 60, 'height': 60}, {'url': 'https://lh3.googleusercontent.com/bnC1I15cOIZ2X5iwBeDbuizDpBICZxdubPEq8duz1hK2yEijnxwesExXPqtRH9jS5z0l-AFdeGYC4dQ=w120-h120-l90-rj', 'width': 120, 'height': 120}, {'url': 'https://lh3.googleusercontent.com/bnC1I15cOIZ2X5iwBeDbuizDpBICZxdubPEq8duz1hK2yEijnxwesExXPqtRH9jS5z0l-AFdeGYC4dQ=w226-h226-l90-rj', 'width': 226, 'height': 226}, {'url': 'https://lh3.googleusercontent.com/bnC1I15cOIZ2X5iwBeDbuizDpBICZxdubPEq8duz1hK2yEijnxwesExXPqtRH9jS5z0l-AFdeGYC4dQ=w544-h544-l90-rj', 'width': 544, 'height': 544}]}
>>> print(results[0]["playlistId"])

None

Additional context

Thanks for maintaining this tho! Awesome library

@srajangarg
Copy link
Author

i suspect the fix of that bug #635 breaks it for authenticated requests? not sure

@sigma67
Copy link
Owner

sigma67 commented Oct 7, 2024

thanks for the report, it is indeed a different key depending on authentication

@sigma67 sigma67 added the bug Something isn't working label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants