Add missing fields to GET animelist & mangalist

Issue #153 resolved
Jérôme Ceccato created an issue

Some info returned by the malappinfo.php "official" "API" are not returned by /animelist/{username} and /mangalist/{username}. Although the most important ones are start and end dates, it would be nice to include everything provided by malappinfo.

Quoting some relevant conversations:

Me: It looks like it'd be pretty quick to add them to the AnimeListController and MangaListController with the other info. For now, setting the date like if ($anime->my_start_date != '0000-00-00') $alist[$i]->setWatchingStart(DateTime::createFromFormat('Y-m-d', $anime->my_start_date)); will work for me.

Motoko: So, I looked and we’re not using a parser for the anime or manga lists. We’re doing it right in the controller. I’m gonna fix that and also add the other fields malappinfo.php returns. As a bonus, we can then move to supplement with the endpoint powering the new lists if we want, or even switch over to that completely.

Comments (3)

  1. Former user Account Deleted

    I would love to see this as well. For now, my solution is to perform a second request (malappinfo) and merge the data.

  2. Log in to comment