Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Replace playlist image #2012

Open
2 tasks done
Verssgn opened this issue Apr 26, 2024 · 2 comments
Open
2 tasks done

[Feature Request]: Replace playlist image #2012

Verssgn opened this issue Apr 26, 2024 · 2 comments
Labels
plugin request An issue/discussion requesting for a new plugin or new functionality to an existing plugin.

Comments

@Verssgn
Copy link

Verssgn commented Apr 26, 2024

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

Allow user to locally change art / image of a playlist.
msedge_T53nwMwVMg

Proposed Solution

  • Setting images locally, the image replaces the url.

Using some kind of observer or some way where if a specific URL is supposed to be loaded it loads the altered version of the playlist image

Alternatives Considered

  • Setting images URL, user would input a link to an image

Using some kind of observer or some way where if a specific URL is supposed to be loaded it loads the altered version of the playlist image

Additional Information

I have a trash userscript version of this but it works: https://greasyfork.org/en/scripts/493560-playlist-cover-replacer/code

@ArjixWasTaken
Copy link
Collaborator

ArjixWasTaken commented Apr 26, 2024

Instead of an observer I'd use css for this

e.g.

img[src="https://music.youtube.com/image/mixart?r=ENgEGNgEMiQIBhoNL2cvMTFxcXkzNXdkMRoNL2cvMTFzMmozeGhoYyICZW4"] {
    content: url("https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-12/256/dog-face.png");
}

image

Note: doesn't work great with auto-generated playlists, since their thumbnail keeps changing

@Verssgn
Copy link
Author

Verssgn commented Apr 27, 2024

Well the way I would do it is to only have it for custom playlist as a way to mimic what spotify has.

Since the thumbnail of the custom playlist is determined by the first four songs, the custom thumbnail set by the user could also have an association with the URL of the playlist. And every time the user drags songs around, it would check if the custom thumbnail is applied to make sure it doesn't get changed. I'm not sure if there can be a script that would recognize the first four songs, since that would be way more efficient. So it might have to check with every drag event? That's what I gathered with my extremely basic programming knowledge.
dXWLkOVMlS

@Su-Yong Su-Yong added the plugin request An issue/discussion requesting for a new plugin or new functionality to an existing plugin. label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin request An issue/discussion requesting for a new plugin or new functionality to an existing plugin.
Projects
None yet
Development

No branches or pull requests

3 participants