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

Artists field on search response has a duplicated? #437

Closed
polvallverdu opened this issue Sep 24, 2023 · 3 comments
Closed

Artists field on search response has a duplicated? #437

polvallverdu opened this issue Sep 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@polvallverdu
Copy link

Describe the bug
A weird thing appears when obtaining search results for albums.

[
  {
    "category": "Albums",
    "resultType": "album",
    "title": "DONDE QUIERO ESTAR",
    "type": "Album",
    "duration": null,
    "year": "2023",
    "artists": [
      {
        "name": "Album",
        "id": null
      },
      {
        "name": "Quevedo",
        "id": "UC7PL9aor5qNRhvhWWVXyOqA"
      }
    ],
    "browseId": "MPREb_rqH94Zr3NN0",
    "isExplicit": false,
    "thumbnails": [
      {
        "url": "https://lh3.googleusercontent.com/hzdd5VEdCJC9gfcTimpjiZO2KZAo2_dVdU_cS4enWqkfvaHQVAsRI9bbFMbQMsTKD-PXoJbQOSZo-g=w60-h60-l90-rj",
        "width": 60,
        "height": 60
      },
      {
        "url": "https://lh3.googleusercontent.com/hzdd5VEdCJC9gfcTimpjiZO2KZAo2_dVdU_cS4enWqkfvaHQVAsRI9bbFMbQMsTKD-PXoJbQOSZo-g=w120-h120-l90-rj",
        "width": 120,
        "height": 120
      },
      {
        "url": "https://lh3.googleusercontent.com/hzdd5VEdCJC9gfcTimpjiZO2KZAo2_dVdU_cS4enWqkfvaHQVAsRI9bbFMbQMsTKD-PXoJbQOSZo-g=w226-h226-l90-rj",
        "width": 226,
        "height": 226
      },
      {
        "url": "https://lh3.googleusercontent.com/hzdd5VEdCJC9gfcTimpjiZO2KZAo2_dVdU_cS4enWqkfvaHQVAsRI9bbFMbQMsTKD-PXoJbQOSZo-g=w544-h544-l90-rj",
        "width": 544,
        "height": 544
      }
    ]
  },
  {
    "category": "Albums",
    "resultType": "album",
    "title": "DQE",
    "type": "Single",
    "duration": null,
    "year": "2023",
    "artists": [
      {
        "name": "Single",
        "id": null
      },
      {
        "name": "M1",
        "id": "UCMIyN9LjvvNHGvpA2LGt4WA"
      }
    ],
    "browseId": "MPREb_C2FOPnD76i0",
    "isExplicit": false,
    "thumbnails": [
      {
        "url": "https://lh3.googleusercontent.com/P6eBkTsgnkbJQli_Qwp8KYKfKfmYnLpbftqgdcy7eTYvQ1mdl64_pMoejzFMP0malTh6ur9_ffsMAm8=w60-h60-l90-rj",
        "width": 60,
        "height": 60
      },
      {
        "url": "https://lh3.googleusercontent.com/P6eBkTsgnkbJQli_Qwp8KYKfKfmYnLpbftqgdcy7eTYvQ1mdl64_pMoejzFMP0malTh6ur9_ffsMAm8=w120-h120-l90-rj",
        "width": 120,
        "height": 120
      },
      {
        "url": "https://lh3.googleusercontent.com/P6eBkTsgnkbJQli_Qwp8KYKfKfmYnLpbftqgdcy7eTYvQ1mdl64_pMoejzFMP0malTh6ur9_ffsMAm8=w226-h226-l90-rj",
        "width": 226,
        "height": 226
      },
      {
        "url": "https://lh3.googleusercontent.com/P6eBkTsgnkbJQli_Qwp8KYKfKfmYnLpbftqgdcy7eTYvQ1mdl64_pMoejzFMP0malTh6ur9_ffsMAm8=w544-h544-l90-rj",
        "width": 544,
        "height": 544
      }
    ]
  }
]

To Reproduce

  1. python res = ytmusic.search("dqe", "albums")

Additional context

@sigma67 sigma67 added the bug Something isn't working label Sep 25, 2023
@sigma67
Copy link
Owner

sigma67 commented Sep 25, 2023

It seems "Album" is being interpreted as an artist

@polvallverdu
Copy link
Author

The "type" of the album is interpreted as an artist. If it's a single, it says Single and null

@sigma67
Copy link
Owner

sigma67 commented Oct 3, 2023

closed in 40e5650

@sigma67 sigma67 closed this as completed Oct 3, 2023
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

No branches or pull requests

2 participants