sigma67/ytmusicapi

`limit` argument passed in `YTMusic.search()` doesn't seem to have any effect.

Closed this issue · 1 comments

Describe the bug
limit argument passed in YTMusic.search() doesn't seem to have any effect. But the documentation says it should return the number of results equal to the limit.

To Reproduce
Steps to reproduce the behavior:

  1. search = ytmusic.search(query=query, limit=1). query can be any music and artist query, but let's say limit=1.
  2. The search should be a list of dictionaries with the length of 1, but in my case, it returned the list with the length of 28

Additional context
Sample code:

from ytmusicapi import YTMusic

ytmusic = YTMusic()
search = ytmusic.search(query="Porter Robinson - Get Your Wish", limit=1)

print(len(search))