[GH-ISSUE #622] get_playlist returns None for track title #425

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

Originally created by @abhishekmj303 on GitHub (Jul 14, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/622

Describe the bug
For some playlists in YT Music Featured playlists like: Indian Indie Essentials and Indie Rising returns None for some of the track titles.

For example:

{
    "videoId": "bSAlE_WgHxY",
    "title": null,
    "artists": [
        {
            "name": "Kanishk Seth",
            "id": "UC0PQFdpMlhl5TFYaUFy64yw"
        }
    ],
    "album": null,
    "likeStatus": "INDIFFERENT",
    "inLibrary": null,
    "thumbnails": [
        {
            "url": "https://i.ytimg.com/vi/bSAlE_WgHxY/sddefault.jpg?sqp=-oaymwEWCJADEOEBIAQqCghqEJQEGHgg6AJIWg&rs=AMzJL3nyvyq_o4DzAds4K5E5lFtH7Tynyg",
            "width": 400,
            "height": 225
        }
    ],
    "isAvailable": true,
    "isExplicit": false,
    "videoType": null,
    "views": null,
    "duration": "3:23",
    "duration_seconds": 203
}

Complete response: https://pastebin.com/rWCpb7uT

To Reproduce
Steps to reproduce the behavior:

  1. Create a YTMusic() object
  2. Call get_playlist(playlist_id, limit=None)
  3. Error in getting track's title

Additional context
ytmusicapi version: 1.7.5
Python version: 3.11.9

Edit:
Just tested with other versions, and version 1.7.3 seems to work fine.

Originally created by @abhishekmj303 on GitHub (Jul 14, 2024). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/622 **Describe the bug** For some playlists in YT Music Featured playlists like: [Indian Indie Essentials](https://music.youtube.com/playlist?list=RDCLAK5uy_kwmNQ6C3BXrVOcih6fGljxeeekGrzjTtE) and [Indie Rising](https://music.youtube.com/playlist?list=RDCLAK5uy_n17q7_2dwfDqWckpccDyTTkZ-g03jXuII) returns `None` for some of the track titles. For example: ```json { "videoId": "bSAlE_WgHxY", "title": null, "artists": [ { "name": "Kanishk Seth", "id": "UC0PQFdpMlhl5TFYaUFy64yw" } ], "album": null, "likeStatus": "INDIFFERENT", "inLibrary": null, "thumbnails": [ { "url": "https://i.ytimg.com/vi/bSAlE_WgHxY/sddefault.jpg?sqp=-oaymwEWCJADEOEBIAQqCghqEJQEGHgg6AJIWg&rs=AMzJL3nyvyq_o4DzAds4K5E5lFtH7Tynyg", "width": 400, "height": 225 } ], "isAvailable": true, "isExplicit": false, "videoType": null, "views": null, "duration": "3:23", "duration_seconds": 203 } ``` Complete response: https://pastebin.com/rWCpb7uT **To Reproduce** Steps to reproduce the behavior: 1. Create a `YTMusic()` object 2. Call `get_playlist(playlist_id, limit=None)` 3. Error in getting track's title **Additional context** ytmusicapi version: 1.7.5 Python version: 3.11.9 Edit: Just tested with other versions, and version 1.7.3 seems to work fine.
kerem closed this issue 2026-02-27 23:00:44 +03:00
Author
Owner

@czifumasa commented on GitHub (Jul 14, 2024):

I think it's the result of my changes in (#612). The playlist track from your example is not a song, but a podcast episode:
https://music.youtube.com/podcast/bSAlE_WgHxY

It needs another condition in a new logic. I created PR (#623) with a quick fix. After that, it should work the same as in 1.7.3.

<!-- gh-comment-id:2227492616 --> @czifumasa commented on GitHub (Jul 14, 2024): I think it's the result of my changes in (#612). The playlist track from your example is not a song, but a podcast episode: https://music.youtube.com/podcast/bSAlE_WgHxY It needs another condition in a new logic. I created PR (#623) with a quick fix. After that, it should work the same as in 1.7.3.
Author
Owner

@sigma67 commented on GitHub (Jul 15, 2024):

@abhishekmj303 please verify that the fix works for you

<!-- gh-comment-id:2228258237 --> @sigma67 commented on GitHub (Jul 15, 2024): @abhishekmj303 please verify that the fix works for you
Author
Owner

@abhishekmj303 commented on GitHub (Jul 15, 2024):

@czifumasa @sigma67 Yeah, it seems to be working now! Thank You.

<!-- gh-comment-id:2228644744 --> @abhishekmj303 commented on GitHub (Jul 15, 2024): @czifumasa @sigma67 Yeah, it seems to be working now! Thank You.
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#425
No description provided.