Add missing fields to GET animelist & mangalist
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
andMangaListController
with the other info. For now, setting the date likeif ($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)
-
Account Deleted -
Add Anime/Manga List Parser
Add an updated parser that fetches more information from the malappinfo.php XML results.
Re
#153→ <<cset 5142d8638beb>>
-
- changed status to resolved
Update List Controllers
Update the anime and manga list controllers to use the new list parser.
Fixes
#153→ <<cset 80b99a58d9f8>>
- Log in to comment
I would love to see this as well. For now, my solution is to perform a second request (malappinfo) and merge the data.