thetvdb / v4-api

Founded in 2006, TheTVDB is one of the longest-running community-driven TV and Movie databases. With content metadata across hundreds of thousands of TV series and movies, TheTVDB powers many of the largest media centers in the market. Developers across the world build and rely upon TheTVDB's APIs to power their apps, utilities, and projects, generating millions of API calls per day. In our GitHub repository you will find all of the necessary support and v4 API documentation to make use of TheTVDB's metadata. Come and join us!
135 stars 13 forks source link

Issue with /search and primary language filter not applying #310

Open BadassRockett opened 9 months ago

BadassRockett commented 9 months ago

Hi,

I have been looking at the /search api call and sometimes it returns a lot of results which I have found we are limited to accessing the first 5000 results. So I tried to narrow down my results by adding a filter to only result series with a primary language of eng however it appears to not have any affect on the results:

Example API call: https://api4.thetvdb.com/v4/search?query=Supai&type=series&year=2022&language=eng&limit=50

language: Restrict results to a specific primary language. Should include the 3 character language code. Currently only used for series and movies.

First Result:

"objectID": "series-405920", "primary_language": "jpn",

The API call returns 7 results with and without the language filter applied.

Maybe I am misunderstanding how the search works?

Please shout if you need any more info, happy to help in any way I can.

Thanks BadassRockett

antheaezzell commented 9 months ago

This appears to be a bug, we will investigate and get back to you.

BadassRockett commented 9 months ago

Thank you Antheaezzell for the quick response 👍

antheaezzell commented 9 months ago

Internal ticket for our tracking purposes:

https://whipmedia.atlassian.net/browse/CDP-1721

ldgmaia commented 7 months ago

I am having the same problem. Let me know if I can be of any help.