Giter Club home page Giter Club logo

Comments (6)

justalemon avatar justalemon commented on June 26, 2024

If the name is causing the problem, a fuzzy string searching might work by ignoring the casing and removing the special characters (like -, ' and !).

from traktroller.

sttz avatar sttz commented on June 26, 2024

Thanks for pointing this out!

This seems to be an issue with Trakt. Trakt has the exact title as an alias but for some reason the show does not appear in the search results. I've opened an issue on Trakt's api-help.

I would prefer not to mess with the title being looked up. The preferred way to resolve weird titles on Crunchyroll would be to add them as alternative titles on TMDB, which then gets picked up by Trakt. I hope Trakt is able to resolve this on their end.

from traktroller.

justalemon avatar justalemon commented on June 26, 2024

The RegEx [\+\-&\|!\(\){}\[\]\^"~\*\?:\/] (example on RegExr) can be used for matching Solr special characters, with this is possible to get the characters and escape them correctly.

image

I don't know how RegEx works in JavaScript/TypeScript, so the sintaxis might be wrong or invalid.

from traktroller.

justalemon avatar justalemon commented on June 26, 2024

Just did a quick check by adding a backslash before - and ! and it works:

image

The weird thing is, this is not automatically handled by the web page of Trakt.

from traktroller.

justalemon avatar justalemon commented on June 26, 2024

The other solution would be quoting the title, as mentioned on trakt/api-help#76

from traktroller.

sttz avatar sttz commented on June 26, 2024

This has been fixed in 1.0.6.

There are still issues with e.g. S02E11, which gets mistaken for S02E01. But that's a separate issue (E01 has number_abs = 11) and doesn't have a simple fix.

from traktroller.

Related Issues (9)

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.