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 cover image from the search results #563

Closed gilbertlucas46 closed 1 month ago

gilbertlucas46 commented 1 month ago

What kind of change does this PR introduce?

Added image from the search results endpoint.

Did you add tests for your changes? Yes I did.

Sample response http://0.0.0.0:4001/manga/mangadex/100 Ways Not to Fail in Another World { "currentPage": 1, "results": [ { "id": "7c7bc515-5427-4b56-915a-ebf1c04ee3d8", "title": "Isekai de Shippai Shinai 100 no Houhou", "altTitles": [ { "en": "100 Ways to Not Fail in an Alternate World" }, { "ja-ro": "Isekai de Shippaishinai 100 no Houhou" }, { "zh": "在异世界不失败的一百种方法" }, { "ja": "異世界で失敗しない100の方法" } ], "description": "To Chie Souma, a female college student, every day feels depressing when she has no luck with job hunting. She’d much rather end up in an alternate universe, just like in her beloved tripping into another world novels… Just as she was dreaming of escaping this reality, one day she actually trips into another world! It might be too dangerous in a female body to survive in this world. Chie decides to use the knowledge that she’s gained from reading, lie about her gender, and become “Souma the scholar,” but—?! A manga adaptation of a strategy manual style fantasy.", "status": "completed", "releaseDate": 2017, "contentRating": "safe", "lastVolume": "5", "lastChapter": "30", "image": "https://mangadex.org/covers/7c7bc515-5427-4b56-915a-ebf1c04ee3d8/0f3148a1-b76f-48f9-be7c-484b57b75ccd.jpg" } ] }

If relevant, did you update the documentation?

I did not update the Docs

Summary

I needed images from the search results aside from the title and description etc.

Other information