Internal server error (500) on browse/anime with single result

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

When browsing with certain filters, MAL redirects to an anime page rather than a list. This is the case for exemple with the following: /anime/browse?genres=Ecchi,Shoujo%20Ai,Slice%20of%20Life Trying to search for these genres on MAL leads to an anime page: https://myanimelist.net/anime.php?q=&type=0&score=0&status=0&p=0&r=0&sm=0&sd=0&sy=0&em=0&ed=0&ey=0&c%5B%5D=a&c%5B%5D=b&c%5B%5D=c&c%5B%5D=f&gx=0&genre%5B%5D=26&genre%5B%5D=36&genre%5B%5D=9

It seems to work correctly on manga, as searching for the exact same filters correctly returns an array containing a single manga, although MAL redirects to a manga page: /manga/browse?genres=Ecchi,Shoujo%20Ai,Slice%20of%20Life https://myanimelist.net/manga.php?q=&type=0&score=0&status=0&p=0&r=0&sm=0&sd=0&sy=0&em=0&ed=0&ey=0&c%5B%5D=a&c%5B%5D=b&c%5B%5D=c&c%5B%5D=f&gx=0&genre%5B%5D=26&genre%5B%5D=36&genre%5B%5D=9

Comments (2)

  1. Ratan Dhawtal
    Attempted to call an undefined method named \"setEndingTheme\" of class \"Atarashii\\APIBundle\\Model\\Manga\"
    
    $type = '&type='.Anime::getTypeId($request->query->get('type'));
    if ($type === 'anime') {
    
  2. Log in to comment