popcorn-official / popcorn-api

Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player. Compatible API Anime/Movies/Show Scrapper
https://popcorntime.app
MIT License
623 stars 100 forks source link

Movie/TV Show search term not working for all strings #70

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hello there,

recently the API seems to be having some trouble handling all search terms, for example, searching for only 1 character always works, 2 almost never works, but searching for the entire name always works, so for example:

"S" > Returns
"Su" > Does not return
"Super" > Returns

This seems to affect not only PopcornTime's search feature, but also the API results directly.

ChrisAlderson commented 7 years ago

The API doesn't search for characters, it searches for keywords. in Marvel's Agents of S.H.I.E.L.D. The S is seen as a keyword. su won't return anything since there is no title with a keywords that matches su. super will return items (example Super Fun Night) since it does have the keyword super in it.

So in short this is expected behaviour.

ghost commented 7 years ago

Hmm interesting, was it always like this? Because I remember it used to behave like a search feature.

ChrisAlderson commented 7 years ago

This has always been this way.