mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #343] How do I add a single from album to playlist? #269
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#269
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 @Praful on GitHub (Jan 8, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/343
Hello, thank you for providing this excellent API and the brilliant documentation.
I came across a track that appears as
type'Single' onresultType'album'. There is novideoId. There is abrowseIdbut that can't be used to add the track to a playlist. You can add this via the web interface.How could I add this to a playlist using your API?
Thanks
@sigma67 commented on GitHub (Jan 10, 2023):
You can get the
audioPlaylistIdusingget_albumand add the album to a playlist using thesource_playlistparameter ofadd_playlist_items.https://ytmusicapi.readthedocs.io/en/latest/reference.html
@Praful commented on GitHub (Jan 18, 2023):
Thanks. In case others find it useful, I have implemented your suggestion here: https://github.com/Praful/music-playlist-export-import/blob/main/src/youtube_music_import.py.
There are also scripts to export playlists from Spotify (using spotipy) and scraping playlists from the BBC website.