[GH-ISSUE #648] (while authenticated) ytmusic.search always returns playlistId: None on first results #436

Closed
opened 2026-02-27 23:00:47 +03:00 by kerem · 2 comments
Owner

Originally created by @srajangarg on GitHub (Sep 2, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/648

Describe the bug
Same bug as https://github.com/sigma67/ytmusicapi/issues/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

Originally created by @srajangarg on GitHub (Sep 2, 2024). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/648 **Describe the bug** Same bug as https://github.com/sigma67/ytmusicapi/issues/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
kerem 2026-02-27 23:00:47 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@srajangarg commented on GitHub (Sep 2, 2024):

i suspect the fix of that bug https://github.com/sigma67/ytmusicapi/pull/635/ breaks it for authenticated requests? not sure

<!-- gh-comment-id:2323731873 --> @srajangarg commented on GitHub (Sep 2, 2024): i suspect the fix of that bug https://github.com/sigma67/ytmusicapi/pull/635/ breaks it for authenticated requests? not sure
Author
Owner

@sigma67 commented on GitHub (Oct 7, 2024):

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

<!-- gh-comment-id:2397597090 --> @sigma67 commented on GitHub (Oct 7, 2024): thanks for the report, it is indeed a different key depending on authentication
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#436
No description provided.