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

Improving the resolution of retrieved cover artwork #123

Closed
daoxi opened this issue Sep 4, 2022 · 1 comment
Closed

Improving the resolution of retrieved cover artwork #123

daoxi opened this issue Sep 4, 2022 · 1 comment

Comments

@daoxi
Copy link
Contributor

daoxi commented Sep 4, 2022

So, v4.9 now allows getting the URL for cover artwork, which is pretty cool.

The resolution of retrieved cover artwork on QQ Music can be improved by simply tweaking the URL, for example:
https://y.qq.com/music/photo_new/T002R300x300M0000045vTfy0d7CQR_1.jpg
can be changed into:
https://y.qq.com/music/photo_new/T002R800x800M0000045vTfy0d7CQR_1.jpg
(note how the 300x300 part got changed to 800x800, which seems to be the maximum that QQ Music allows)

If the cover artwork stored on the QQ Music server is less than 800x800, it seems to be able to automatically use the maximum resolution available, for example:
https://y.qq.com/music/photo_new/T002R800x800M000003VaRGL1OVb8W_1.jpg
will fetch a jpg file at 500x500 (instead of 800x800) because that's the maximum resolution available. In other words, we can safely always use 800x800 in the URL, regardless of what's actually available from the QQ Music server.

@jitwxs
Copy link
Owner

jitwxs commented Sep 16, 2022

got it, thanks a lot

jitwxs added a commit that referenced this issue Sep 16, 2022
@jitwxs jitwxs mentioned this issue Sep 16, 2022
@jitwxs jitwxs closed this as completed Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants