opensubtitlesdev / service.subtitles.opensubtitles-com

Opensubtitles.com Kodi extension
GNU General Public License v2.0
10 stars 13 forks source link

Error: Query is too short #11

Closed EvanKaraf closed 11 months ago

EvanKaraf commented 1 year ago

I'm getting

{"errors":["Query is too short"],"status":400}

when trying to download subtitles for NCIS. The query is:

https://api.opensubtitles.com/api/v1/subtitles?episode_number=22&languages=en&query=ncis_ncis&season_number=15

It seems like the limit is 5 characters, adding a _ at the end for example returns valid results.

Can you add padding characters at the end of the query if it's < 5 characters?

EvanKaraf commented 1 year ago

The query above should be just ncis (I was doing some testing hence the _ncis suffix) but I can't edit the issue.

opensubtitlesdev commented 11 months ago

okay, we've changed the API to allow shorter queries (4)