mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #130] Artist missing for uploaded music #96
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#96
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 @KoljaWindeler on GitHub (Dec 20, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/130
Hi, I've just scrolled in my uploaded song on the youtube website, selected one song .. played just fine, showing all information correct.
Went into my smarthome system .. opened the youtube GUI (which uses your api), selected the "history" playlist, saw the same song .. with "artist - trackname" (from get_history()) .. played the song (which will call get_song with the videoId) and got an exception due to a missing artist field (exception from my code). Double checked: No artist field .. strange.
Tried to open the get_library_upload_songs ... same thing there .. no artist in the return
Strange, right?
Oh and sidenote: get_uploaded_songs will return "authors" and "author" which looks exactly the same to me ..
@KoljaWindeler commented on GitHub (Dec 20, 2020):
i just saw that this is likely related to https://github.com/sigma67/ytmusicapi/issues/64, correct?
@sigma67 commented on GitHub (Dec 23, 2020):
get_library_upload_songsshould return an artist if the uploaded song actually has an artist. Please verify in the YTMusic Web UI that this is the case. Same withget_history, it works correctly for me.get_uploaded_songsdoes not exist anymore, so not sure what you're referring to there.@KoljaWindeler commented on GitHub (Dec 28, 2020):
Hi, I've done a little more digging .. I'm basically using two functions:
The tracks of "get_playlist" contain information about the author, get_song does not
Any idea?
@sigma67 commented on GitHub (Jan 3, 2021):
The author is missing for
get_songbecause that function uses a YouTube endpoint (not YouTube music). That endpoint does not provide the author of the uploaded track.If you check that track on YouTube using https://www.youtube.com/watch?v=___, you will find that the artist is nowhere to be found on that site. There is also no metadata in the comments like for auto-uploads. This means there is no way for ytmusicapi to provide the track author of uploaded tracks from that endpoint.
When you play an uploaded track, YouTube Music actually gets the artist using the
nextendpoint, which is implemented inget_watch_playlist. The function needs a bit of work to properly return album and artist instead of the generic byline, but that would fix your issue.@sigma67 commented on GitHub (Jan 5, 2021):
@KoljaWindeler Please check if
3de9b5efixes this issue.@KoljaWindeler commented on GitHub (Jan 5, 2021):
Will do and report back
@KoljaWindeler commented on GitHub (Jan 6, 2021):
works perfectly! thanks, great work!