consumet / consumet.ts

Nodejs library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.
https://consumet.org/extensions/list/
GNU General Public License v3.0
393 stars 222 forks source link

Added blurhash support for anilist and anime news #435

Closed tanwarjigyasu closed 9 months ago

tanwarjigyasu commented 9 months ago

What kind of change does this PR introduce?

Additional key named imageHash, coverHash and thumbnailHash etc which contains a small blurhash code that loads instantly to display until actual image loads. I had to add a new npm package for it to convert image url into blurhash key.

Did you add tests for your changes?

No

If relevant, did you update the documentation?

No

Summary

I added blurhash support for images in anilist and ann (anime news) provider. Blurhash provides a blur image which loads instantly until the actual image is loaded which created good user experience unlike normal loaders and shimmer effects.

Other information

-> BlurHash Official Website -> https://blurha.sh/ -> NPM Package Used -> https://www.npmjs.com/package/blurhash