mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #285] Uploads search not working #224
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#224
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 @jskills on GitHub (Jul 31, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/285
Running this one line works only when removing the "scope" parameter. If I want to limit my search to files I have uploaded, it fails.
results = ytm.search(query='love', filter='songs', scope='uploads', limit=20)@jskills commented on GitHub (Jul 31, 2022):
This had been working just fine, but stopped a few months ago - presumably to a change on Youtube's end ... ?
@sigma67 commented on GitHub (Aug 2, 2022):
This query can't work because there are no filters for upload search (see web interface). If you remove the filter param it will work fine. Though I guess we could add some sort of exception if filters are used in combination with the "uploads" scope.
@jskills commented on GitHub (Aug 2, 2022):
Thanks for the (fast!) reply.
I have a set of processes that I have written that locate files I have uploaded to YTMusic to automate playlist building. This same query used to work just fine, so I assume YT changed something on their side.
Anyway, if I wanted to query uploads only, are you saying if I used "scope=uploads" I have to pull them all down (since I cannot filter) and then do any queries locally?
@sigma67 commented on GitHub (Aug 3, 2022):
Of course you can filter with a text query, but you cannot filter by the
filterparam. So while your query may have worked in the past, the filter=songs argument never did anything. I suspect that as a result of some changes to ytmusicapi or YouTube Music the faulty query no longer works. So just leave out filter=songs and you're good.@jskills commented on GitHub (Aug 4, 2022):
Hey this is super helpful. Thank you very much, You do are great job as owner of this repo BTW :)
@sigma67 commented on GitHub (Aug 5, 2022):
Thanks! Added a little exception as well.
pkg_resourceswithimportlib_resourcesto avoidLegacyVersionerrors with python3.9. #578