Code Monkey home page Code Monkey logo

Comments (5)

z411 avatar z411 commented on July 21, 2024

I noticed this too, but I think it has to do with invalid characters in the document MAL returns.
MAL doesn't return correct XML entities, so the parser dies when trying to parse it, and it doesn't return results.

The only way to fix it on my end is to extend the custom parser (there is one in libmal.py), or find a way for it to just ignore invalid entities.

Will look into it, thanks.

from trackma.

rhumroux avatar rhumroux commented on July 21, 2024

I think I've tried directly from chrome, and the same happens. I don't know if my browser tries to compress or not though ... I'm afraid it's entirely due to myanimelist api, and the only thing that could be done is to play with the words in the search query, maybe deleting one word after the other until we get a valid answer ...

from trackma.

z411 avatar z411 commented on July 21, 2024

Oh so you think that it's due to the query string?
Mhm, could you tell me which search words did you try?

from trackma.

rhumroux avatar rhumroux commented on July 21, 2024

Just checked again using Arpeggio of Blue Steel - Ars Nova as a test string:

It's not just about a number of words, because this works:
http://myanimelist.net/api/anime/search.xml?q=one+piece+Movie

I don't really know what fails on their side ...

from trackma.

z411 avatar z411 commented on July 21, 2024

Yes, this seems to be a problem on their side.
http://myanimelist.net/anime.php?q=To+Aru+Majutsu+no+Index
http://myanimelist.net/api/anime/search.xml?q=To+Aru+Majutsu+no+Index

I don't think there's anything I can do other than hope them to fix it. Which I don't think will happen, because the API is pretty much abandoned. Won't fix, but I accept suggestions.

from trackma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.