jurialmunkey / plugin.video.themoviedb.helper

GNU General Public License v3.0
200 stars 94 forks source link

[BUG] Country is ignored for Airing Today in TV Shows #1017

Closed Hawkedon closed 1 year ago

Hawkedon commented 1 year ago

Describe the bug

Hi, when I opened the "Airing Today" in TV Shows in TMDB helper add-on, I found a lot of TV Shows of other countries. I have "English (United States of America)" in the General/Language setting in TMDB helper add-on settings.

After checking TMDB website, seems it's the same as the default result from the website (https://www.themoviedb.org/tv/airing-today), but the website allow you filter by language, which will filter out these TV Shows of other countries. Don't know if this is by design, but I think the language settings in TMDB helper add-on should be used for this.

Steps To Reproduce

Open "Airing Today" in TV Shows in TMDB helper add-on

Debug log

No response

Screenshots and Additional Info

No response

Checklist

Hawkedon commented 1 year ago

Not sure if it's the issue of TMDB website, because the data returned by the "/tv/airing_today" API just has non English language items. I expect only items with the following attributes should be returned

"origin_country": ["US"],
"original_language": "en",

but I got many items like

"origin_country": ["IN"],
"original_language": "hi",
jurialmunkey commented 1 year ago

Unfortunately the api endpoint has no way to filter these https://developers.themoviedb.org/3/tv/get-tv-airing-today

Without an option in the api it is difficult to do this type of filtering due to pagination.

I recommend using discover instead to fine tune