Is it possible to customize YouTube thumbnail resolution in Moonlink.js?

I have a question about the track.artworkUrl property. Currently it returns the YouTube thumbnail at the mqdefault.jpg resolution (320Ɨ180). In some use cases I’d like to display a higher-quality image, for example: hqdefault.jpg (480Ɨ360) sddefault.jpg (640Ɨ480) maxresdefault.jpg (up to full resolution) Is there an existing option or configuration in Moonlink.js to request a different thumbnail resolution? If not, do you have any recommended approach or helper function to easily convert the URL from mqdefault.jpg to one of the higher-quality variants?
Solution:
just replace those from something like mqdefault.jpg to maxresdefault.jpg (Or any Other) and perform fetch requests to confirm that the requested Thumbnail size exists.
Jump to solution
2 Replies
Solution
UnschooledGamer
UnschooledGamer•4mo ago
just replace those from something like mqdefault.jpg to maxresdefault.jpg (Or any Other) and perform fetch requests to confirm that the requested Thumbnail size exists.
Jasper
JasperOP•4mo ago
oh... okay šŸ˜‚ ! thanks for reply

Did you find this page helpful?