mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #711] edit_playlist: add playlist image #460
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#460
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 @srajangarg on GitHub (Jan 3, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/711
Seems like youtube music recently added the ability to add custom images to playlists! Can we extend
create_playlist()andedit_playlistto take an optional argument (an image file) so that we can programmatically set it?@srajangarg commented on GitHub (Jan 3, 2025):
this is the request payload to
https://music.youtube.com/youtubei/v1/browse/edit_playlist@srajangarg commented on GitHub (Jan 3, 2025):
before that call^ there was a call to
with the payload containing the image data (my guess). and the response was
the same blobid passed to
edit_playlist@srajangarg commented on GitHub (Jan 3, 2025):
and before that call^ was an empty request call to
https://music.youtube.com/playlist_image_upload/playlist_custom_thumbnailthat returned
in the reponse headers - which probably gives us the URL to call while uploading the image
@sigma67 commented on GitHub (Jan 4, 2025):
Yeah sure, this should be possible. PR welcome
We already have similar upload code in
upload_song@sigma67 commented on GitHub (Jan 4, 2025):
This should be implemented in
edit_playlistonly. When an optional imagePathis provided, the upload is performed via separate calls tohttps://music.youtube.com/playlist_image_upload/playlist_custom_thumbnail
which returns an encrypted blob id, which is then wrapped in a corresponding action for the
edit_playlistcall.@sigma67 commented on GitHub (Nov 12, 2025):
@srajangarg are you interested in implementing this?