[GH-ISSUE #482] get_library_upload_songs() returns empty result even though the library contains one song #360

Closed
opened 2026-02-27 23:00:22 +03:00 by kerem · 5 comments
Owner

Originally created by @fischcode on GitHub (Dec 5, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/482

Describe the bug
get_library_upload_songs() returns an empty result

To Reproduce
Steps to reproduce the behavior:
with my login, get_library_upload_songs() in mixins/uploads of ytmusicapi version 1.3.2
obtains the following response on line 45:
get_library_update_songs_response.json

on line 49, an empty array is returned, mainly because the (only) song of the result is contained in results['contents'][0] and thus excluded when filtering results['contents'][1:] - apparently the response follows a different pattern than expected.

Originally created by @fischcode on GitHub (Dec 5, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/482 **Describe the bug** get_library_upload_songs() returns an empty result **To Reproduce** Steps to reproduce the behavior: with my login, get_library_upload_songs() in mixins/uploads of ytmusicapi version 1.3.2 obtains the following response on line 45: [get_library_update_songs_response.json](https://github.com/sigma67/ytmusicapi/files/13573645/get_library_update_songs_response.json) on line 49, an empty array is returned, mainly because the (only) song of the result is contained in results['contents'][0] and thus excluded when filtering results['contents'][1:] - apparently the response follows a different pattern than expected.
kerem 2026-02-27 23:00:22 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@sigma67 commented on GitHub (Dec 6, 2023):

For me it looks like this, that's why the first item is excluded:

image

What does it look like for you?

<!-- gh-comment-id:1842515053 --> @sigma67 commented on GitHub (Dec 6, 2023): For me it looks like this, that's why the first item is excluded: ![image](https://github.com/sigma67/ytmusicapi/assets/16363825/f4d5c662-37d5-446c-bf70-b7eccefcd753) What does it look like for you?
Author
Owner

@fischcode commented on GitHub (Dec 6, 2023):

Hi

This is what I see with https://music.youtube.com/library/uploaded_songs when filtering for titles:

Without any filter, I see this:

Does this help you?

Best regards

Von: sigma67 @.>
Gesendet: Mittwoch, 6. Dezember 2023 10:35
An: sigma67/ytmusicapi @.
>
Cc: fischcode @.>; Author @.>
Betreff: Re: [sigma67/ytmusicapi] get_library_upload_songs() returns empty result even though the library contains one song (Issue #482)

For me it looks like this, that's why the first item is excluded:

image.png (view on web) https://github.com/sigma67/ytmusicapi/assets/16363825/f4d5c662-37d5-446c-bf70-b7eccefcd753

What does it look like for you?


Reply to this email directly, view it on GitHub https://github.com/sigma67/ytmusicapi/issues/482#issuecomment-1842515053 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATVY5Z5SJ7LC6PU5M3RBH2DYIA357AVCNFSM6AAAAABAION6R6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBSGUYTKMBVGM .
You are receiving this because you authored the thread. https://github.com/notifications/beacon/ATVY5ZZETRATSIB3UT7A7T3YIA357A5CNFSM6AAAAABAION6R6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTN2KGG2.gif Message ID: @.*** @.***> >

<!-- gh-comment-id:1843842591 --> @fischcode commented on GitHub (Dec 6, 2023): Hi This is what I see with https://music.youtube.com/library/uploaded_songs when filtering for titles: Without any filter, I see this: Does this help you? Best regards Von: sigma67 ***@***.***> Gesendet: Mittwoch, 6. Dezember 2023 10:35 An: sigma67/ytmusicapi ***@***.***> Cc: fischcode ***@***.***>; Author ***@***.***> Betreff: Re: [sigma67/ytmusicapi] get_library_upload_songs() returns empty result even though the library contains one song (Issue #482) For me it looks like this, that's why the first item is excluded: image.png (view on web) <https://github.com/sigma67/ytmusicapi/assets/16363825/f4d5c662-37d5-446c-bf70-b7eccefcd753> What does it look like for you? — Reply to this email directly, view it on GitHub <https://github.com/sigma67/ytmusicapi/issues/482#issuecomment-1842515053> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ATVY5Z5SJ7LC6PU5M3RBH2DYIA357AVCNFSM6AAAAABAION6R6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBSGUYTKMBVGM> . You are receiving this because you authored the thread. <https://github.com/notifications/beacon/ATVY5ZZETRATSIB3UT7A7T3YIA357A5CNFSM6AAAAABAION6R6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTN2KGG2.gif> Message ID: ***@***.*** ***@***.***> >
Author
Owner

@fischcode commented on GitHub (Dec 7, 2023):

Hi
It turns out that after uploading another file, both files are returned by ytmusicapi. The issue thus appear to be limited to a ytmusic library containing just one uploaded song.

<!-- gh-comment-id:1846191499 --> @fischcode commented on GitHub (Dec 7, 2023): Hi It turns out that after uploading another file, both files are returned by ytmusicapi. The issue thus appear to be limited to a ytmusic library containing just one uploaded song.
Author
Owner

@sigma67 commented on GitHub (Dec 13, 2023):

Images via email didn't work.

PR welcome

<!-- gh-comment-id:1853743664 --> @sigma67 commented on GitHub (Dec 13, 2023): Images via email didn't work. PR welcome
Author
Owner

@sigma67 commented on GitHub (Dec 18, 2023):

fixed in 8f7970b

<!-- gh-comment-id:1861433551 --> @sigma67 commented on GitHub (Dec 18, 2023): fixed in [8f7970b](https://github.com/sigma67/ytmusicapi/commit/8f7970b2643379c26f2cfcc739df69b31baabd7b)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#360
No description provided.