[GH-ISSUE #519] First artist of a song is missing when searching #376

Closed
opened 2026-02-27 23:00:28 +03:00 by kerem · 1 comment
Owner

Originally created by @garaevdi on GitHub (Jan 14, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/519

When doing a global search, first song's artist is missing, but songs only search (i.e. search(query, "songs")) returns both artist. Also if song has only one artist, search simply returns empty array.

Search query I used: big city life mattafix remix, but from my testing any query will work.

Results

related block of ytmisuc.search("big city life mattafix remix")

  {
    "category": "Songs",
    "resultType": "song",
    "title": "Big City Life (Odd Mob Extended Remix)",
    "album": {
      "name": "Big City Life (Odd Mob Extended Remix)",
      "id": "MPREb_gHMuMzGHA4J"
    },
    "inLibrary": false,
    "feedbackTokens": {
      "add": null,
      "remove": null
    },
    "videoId": "aZbLyoVQvrc",
    "videoType": "MUSIC_VIDEO_TYPE_ATV",
    "duration": "3:13",
    "year": null,
    "artists": [
      {
        "name": "Mattafix",
        "id": "UCTLiNbjjXqrxJ7o7pTyCrTQ"
      }
    ],
    "duration_seconds": 193,
    "isExplicit": false,
    "thumbnails": [
      {
        "url": "https://lh3.googleusercontent.com/8aqmOXtM24i8h7O-P2wx7osIzG-HPXRYLgzPe5RiP5DcS6eXpjOdlI5BOhdlqki0jFJzrLO_65ebP0sZ=w60-h60-l90-rj",
        "width": 60,
        "height": 60
      },
      {
        "url": "https://lh3.googleusercontent.com/8aqmOXtM24i8h7O-P2wx7osIzG-HPXRYLgzPe5RiP5DcS6eXpjOdlI5BOhdlqki0jFJzrLO_65ebP0sZ=w120-h120-l90-rj",
        "width": 120,
        "height": 120
      }
    ]
  },
  {
    "category": "Songs",
    "resultType": "song",
    "title": "Big City Life",
    "album": {
      "name": "Ultimate R&B 2007",
      "id": "MPREb_TbVw8hM2wZg"
    },
    "inLibrary": false,
    "feedbackTokens": {
      "add": null,
      "remove": null
    },
    "videoId": "62YNFuepRII",
    "videoType": "MUSIC_VIDEO_TYPE_ATV",
    "duration": "3:57",
    "year": null,
    "artists": [],
    "duration_seconds": 237,
    "isExplicit": false,
    "thumbnails": [
      {
        "url": "https://lh3.googleusercontent.com/mE2dfd9oo5FFyzlAjZTN10vVAZYMrXzuQqG0LHRu8pV-kMYR2Uz3tDUyXpgy9etRvdN17nT84D06kPkY=w60-h60-s-l90-rj",
        "width": 60,
        "height": 60
      },
      {
        "url": "https://lh3.googleusercontent.com/mE2dfd9oo5FFyzlAjZTN10vVAZYMrXzuQqG0LHRu8pV-kMYR2Uz3tDUyXpgy9etRvdN17nT84D06kPkY=w120-h120-s-l90-rj",
        "width": 120,
        "height": 120
      }
    ]
  },
  {
    "category": "Songs",
    "resultType": "song",
    "title": "Big City Life",
    "album": {
      "name": "\u04d8\u043b\u0456\u043f\u043f\u0435",
      "id": "MPREb_Q3Q6HkcbUqf"
    },
    "inLibrary": false,
    "feedbackTokens": {
      "add": null,
      "remove": null
    },
    "videoId": "89qWVWDJhxc",
    "videoType": "MUSIC_VIDEO_TYPE_ATV",
    "duration": "4:25",
    "year": null,
    "artists": [
      {
        "name": "De Lacure",
        "id": "UC_ZoP74tMehunqxY_Xl0f0A"
      }
    ],
    "duration_seconds": 265,
    "isExplicit": false,
    "thumbnails": [
      {
        "url": "https://lh3.googleusercontent.com/TJAf52t0wXHdoR0Lf6wd-TyLz7203apAM5VrNx2BodhBq9ZDTku2L-JBptS1hwWgn8TOeQZfqc4CqNMT=w60-h60-l90-rj",
        "width": 60,
        "height": 60
      },
      {
        "url": "https://lh3.googleusercontent.com/TJAf52t0wXHdoR0Lf6wd-TyLz7203apAM5VrNx2BodhBq9ZDTku2L-JBptS1hwWgn8TOeQZfqc4CqNMT=w120-h120-l90-rj",
        "width": 120,
        "height": 120
      }
    ]
  },

And the same on ytmusic itself
image

Originally created by @garaevdi on GitHub (Jan 14, 2024). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/519 When doing a global search, first song's artist is missing, but songs only search (i.e. `search(query, "songs")`) returns both artist. Also if song has only one artist, search simply returns empty array. Search query I used: `big city life mattafix remix`, but from my testing any query will work. <details><summary>Results</summary> <p> related block of `ytmisuc.search("big city life mattafix remix")` ``` { "category": "Songs", "resultType": "song", "title": "Big City Life (Odd Mob Extended Remix)", "album": { "name": "Big City Life (Odd Mob Extended Remix)", "id": "MPREb_gHMuMzGHA4J" }, "inLibrary": false, "feedbackTokens": { "add": null, "remove": null }, "videoId": "aZbLyoVQvrc", "videoType": "MUSIC_VIDEO_TYPE_ATV", "duration": "3:13", "year": null, "artists": [ { "name": "Mattafix", "id": "UCTLiNbjjXqrxJ7o7pTyCrTQ" } ], "duration_seconds": 193, "isExplicit": false, "thumbnails": [ { "url": "https://lh3.googleusercontent.com/8aqmOXtM24i8h7O-P2wx7osIzG-HPXRYLgzPe5RiP5DcS6eXpjOdlI5BOhdlqki0jFJzrLO_65ebP0sZ=w60-h60-l90-rj", "width": 60, "height": 60 }, { "url": "https://lh3.googleusercontent.com/8aqmOXtM24i8h7O-P2wx7osIzG-HPXRYLgzPe5RiP5DcS6eXpjOdlI5BOhdlqki0jFJzrLO_65ebP0sZ=w120-h120-l90-rj", "width": 120, "height": 120 } ] }, { "category": "Songs", "resultType": "song", "title": "Big City Life", "album": { "name": "Ultimate R&B 2007", "id": "MPREb_TbVw8hM2wZg" }, "inLibrary": false, "feedbackTokens": { "add": null, "remove": null }, "videoId": "62YNFuepRII", "videoType": "MUSIC_VIDEO_TYPE_ATV", "duration": "3:57", "year": null, "artists": [], "duration_seconds": 237, "isExplicit": false, "thumbnails": [ { "url": "https://lh3.googleusercontent.com/mE2dfd9oo5FFyzlAjZTN10vVAZYMrXzuQqG0LHRu8pV-kMYR2Uz3tDUyXpgy9etRvdN17nT84D06kPkY=w60-h60-s-l90-rj", "width": 60, "height": 60 }, { "url": "https://lh3.googleusercontent.com/mE2dfd9oo5FFyzlAjZTN10vVAZYMrXzuQqG0LHRu8pV-kMYR2Uz3tDUyXpgy9etRvdN17nT84D06kPkY=w120-h120-s-l90-rj", "width": 120, "height": 120 } ] }, { "category": "Songs", "resultType": "song", "title": "Big City Life", "album": { "name": "\u04d8\u043b\u0456\u043f\u043f\u0435", "id": "MPREb_Q3Q6HkcbUqf" }, "inLibrary": false, "feedbackTokens": { "add": null, "remove": null }, "videoId": "89qWVWDJhxc", "videoType": "MUSIC_VIDEO_TYPE_ATV", "duration": "4:25", "year": null, "artists": [ { "name": "De Lacure", "id": "UC_ZoP74tMehunqxY_Xl0f0A" } ], "duration_seconds": 265, "isExplicit": false, "thumbnails": [ { "url": "https://lh3.googleusercontent.com/TJAf52t0wXHdoR0Lf6wd-TyLz7203apAM5VrNx2BodhBq9ZDTku2L-JBptS1hwWgn8TOeQZfqc4CqNMT=w60-h60-l90-rj", "width": 60, "height": 60 }, { "url": "https://lh3.googleusercontent.com/TJAf52t0wXHdoR0Lf6wd-TyLz7203apAM5VrNx2BodhBq9ZDTku2L-JBptS1hwWgn8TOeQZfqc4CqNMT=w120-h120-l90-rj", "width": 120, "height": 120 } ] }, ``` And the same on ytmusic itself ![image](https://github.com/sigma67/ytmusicapi/assets/64484944/aa2a8791-d63a-4da2-9600-9df171019980) </p> </details>
kerem 2026-02-27 23:00:28 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@sigma67 commented on GitHub (Jan 14, 2024):

duplicate of #518

<!-- gh-comment-id:1890958136 --> @sigma67 commented on GitHub (Jan 14, 2024): duplicate of #518
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#376
No description provided.