mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #308] Getting the album name of a certain song #239
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#239
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 @juanfrilla on GitHub (Oct 12, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/308
Hello, Is it posible to get the album name from a song if you pass any parameters like the youtube url of the song or the song name that belongs to that album?
I realized that if you filter by album like that
search_results = yt.search(query="Song Name", filter="albums")And in the mayority of the cases the album name is in
song_result[0]['title'])But I don't know if is there a better way to achieve this.
@sigma67 commented on GitHub (Nov 1, 2022):
If you have the videoId you can use
get_watch_playlist. The first result will contain all the details of the song.