mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-26 15:56:00 +03:00
[GH-ISSUE #360] search: top result category not working #286
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#286
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Elmar1991 on GitHub (Mar 11, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/360
Hello, some data that has been changed in music youtube is not working correctly.
@kattums commented on GitHub (Mar 11, 2023):
Hey, I'm having a similar problem where it looks like something has changed with the YouTube Music API.
I was previously using
YTMusic.search()passing atrack_idas my query, which would return an array containing the results objects (I usesearch()rather thanget_song()because it returns additional information thatget_song()doesn't have). Now, callingYTMusic.search(track_id)returns an empty array. I discovered that appending a filter param fixes this behaviour.YTMusic.search(track_id, filter='songs')returns the same results I had previously.Maybe this is of help to you.
@Elmar1991 commented on GitHub (Mar 12, 2023):
thank you for the answer but it's not related to what you said. What I'm saying is that it's still a problem with parsing, please help with this..@sigma67
@sigma67 commented on GitHub (Mar 12, 2023):
Everything works fine here. Please add more details and a code sample if you need help with something.
@Elmar1991 commented on GitHub (Mar 12, 2023):
``
from ytmusicapi import YTMusic
ytmusic = YTMusic()
search = ytmusic.search('Taylor+Swift+Blank+Space', filter='songs')
print(search);
When
filter = 'songs'it appears in videos between songs as a resultThere were some changes on the https://music.youtube.com site 1 day ago, please take this into consideration.
@Elmar1991 commented on GitHub (Mar 12, 2023):
i tested it and i write here what is not working correctly,
1.) Top result not working.
2.) When searching, the correct results do not come when there is a limit of more than 20. @sigma67
@sigma67 commented on GitHub (Mar 16, 2023):
There have been multiple issues on
searchwithout filters, but I haven't seen them on my end yet. You can only get more than 20 results if using filters.Top result format seems to have changed, so that may indeed be a bug.
@sigma67 commented on GitHub (Mar 22, 2023):
@Elmar1991 please test fixes on master
@Elmar1991 commented on GitHub (Mar 27, 2023):
yes it works thank you. @sigma67