mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #320] "get_library_upload_songs" and "get_library_upload_artists" methods fail returning empty list #247
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#247
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 @rvaquerizor on GitHub (Nov 30, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/320
Hello.
Not sure exactly when it started happening, but the YTMusic client returns empty list [] when calling:
get_library_upload_songs
and
get_library_upload_artists
(using different limit param values does not have any impact)
Actually, my lilbrary of uploaded songs/artists constains more than 1000 songs and more than 300 artists.
When I use the browser, I can find/play them without any problem.
For the empty list problem, when I set a breakpoint, I can see the problem is around these lines in code of the method:
The response variable has a lot of content:
But results, which is the returned value of get_library_contents using the previous response, is None:
Something similar happens with uploaded artists:
As I said, getting an uploaded artist individually works fine:
Any idea what is happening here?
I have tried to use the latest commit on master branch, but it fails the same way.
Using v0.23.0 returns a different error
My environment is:
Thanks a lot.
@sigma67 commented on GitHub (Nov 30, 2022):
The mentioned endpoints are working fine for me. Are you sure your credentials haven't expired?
If that's not the case I can try reproducing the issue with your credentials, if you don't mind sending them to ytmusicapi@gmail.com.
@rvaquerizor commented on GitHub (Dec 3, 2022):
@sigma67 Thanks a lot for the reply and sorry for my late response.
In all fairness, I am not 100% sure. In fact, it is true that my credentials expired a while ago, and I created a new headers json file with new ones, but maybe that is not working fine, somehow.
However, if the problem is related to my credentials, then:
The problem only shows when calling get_library_upload_songs and get_library_upload_artists.
Here is a REPL session showing the above:
Anyway, I suspect that somehow you are right and my problem is a credentials problem.
I will send you my credentials to your private email account ....
Thanks.
@sigma67 commented on GitHub (Dec 5, 2022):
I was able to verify that your credentials are valid and that you are indeed getting an empty list even though you have uploads. Will look into a fix.
@sigma67 commented on GitHub (Dec 7, 2022):
Can you verify that the fix works for you?
@rvaquerizor commented on GitHub (Dec 7, 2022):
@sigma67
I have pulled the latest commit on your main branch:
( 0.24.1.dev5+g2344a17 d0ec2bb)I presume the commit for your fix (
02e3289) is a parent of the tip commit above...And yes, the fix works perfectly.
I have been able to get all songs and artists I have already uploaded to the server.
Thanks a lot for the quick fix.
Is there an ETA for this to be released?
Thanks.
@sigma67 commented on GitHub (Jan 15, 2023):
Release is up.