Closed irfan-dahir closed 2 years ago
getRecentReviews
will be renamed to getReviews
.
MAL has removed the mixed recent reviews page. It's just now 1 review page with 2 tabs; Anime and Manga. And they both the same filters as Anime/Manga Review pages.
None of this is backward compatible as this will change some method names and parameters. Should tag this as a v4
release.
Constants removed
public const RECENT_REVIEW_ANIME = 'anime';
public const RECENT_REVIEW_MANGA = 'manga';
public const RECENT_REVIEW_BEST_VOTED = 'bestvoted';
Alright, it should be good for review (pun unintended).
Reviews
$data = $jikan->getReviews(
new \Jikan\Request\Reviews\ReviewsRequest(
\Jikan\Helper\Constants::MANGA, // type
1, // page
\Jikan\Helper\Constants::REVIEWS_SORT_MOST_VOTED, // sort
true, // show spoilers
true // show preliminary
)
);
Parses: https://myanimelist.net/reviews.php?t=manga&spoiler=on&preliminary=on&sort=mostvoted
Anime/Manga Reviews
$data = $jikan->getAnimeReviews(
new \Jikan\Request\Anime\AnimeReviewsRequest(
1, // MAL ID
1, // page
\Jikan\Helper\Constants::REVIEWS_SORT_MOST_VOTED, //sort
true, // show spoilers
false // show preliminary
)
);
Parses: https://myanimelist.net/anime/1/Cowboy_Bebop/reviews?sort=mostvoted&spoiler=on&preliminary=off
User Reviews
$data = $jikan->getUserReviews(
new \Jikan\Request\User\UserReviewsRequest('Stark700', 1) // username and page
);
I thought it would be better to get a draft PR up first as the changes are more larger than I thought - so it'd be better to have a definition to keep track of.
MAL rehauled their review system.
Affects: #446
Possibly Affected Requests/Endpoints
Changes
Apart from the HTML changes MAL has removed/added some things.
Added reactions for reviews:
Removed Overall Scorings provided by the reviewer.
This is possibly replaced with just this:
So we can expect the following tags:
Recommended
,Mixed Feelings
,Not Recommended
Prelimary reviews only return the no of episodes watched and are tagged as such.
Spoiler warning
ใใ๐ใClicking the area which displays the total review votes will bring up a pop-up with the username list.
It's to note that MAL will be adding a way to know who reacted what on the review. Ignoring this for this PR as it's not implemented yet.
New Featuers Added
Schema Updates
Request Updates