Skip to content

Conversation

@developerwill
Copy link

@developerwill developerwill commented Nov 11, 2025

Description

Screenshot (if UI-related)

image

To-Dos

  • Disclosed any use of AI (see our policy)
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

Issues Fixed or Closed

@0xSysR3ll
Copy link
Contributor

I think this PR #1802 kind of supersedes yours. It uses blacklist feature though.

@developerwill
Copy link
Author

developerwill commented Nov 12, 2025

It solves the same issue, just in a different way.

My approach uses the existing “Discover Language” setting values and lets the user choose where to apply the filter, while yours uses the blacklist logic to filter content globally.

In the end, both achieve the same result — I’m just missing the logic to prevent users from changing the original language when using discover/tv and discover/movies. I was already working on a follow-up PR for that.

Who decides which one goes in? I’m fine with either solution 😊

@0xSysR3ll
Copy link
Contributor

0xSysR3ll commented Nov 12, 2025

We decide as a team whether this should be merged or not. If you're okay with that, we'll close this PR as a duplicate, and you can submit a follow-up PR afterwards ?

@developerwill
Copy link
Author

We decide as a team whether this should be merged or not. If you're okay with that, we'll close this PR as a duplicate, and you can submit a follow-up PR afterwards ?

I've just submited the feature that it was missing actually. The "Original Language" filter field on discovery pages is disabled if "Discover Language" has any other value than an empty string.

image

Let me know if the team still wants me to close mine 🙏

@gauthier-th
Copy link
Member

I think this PR #1802 kind of supersedes yours. It uses blacklist feature though.

IMHO I find it more clean to implement it through the TMDB API if it's supported.
We used the blacklist for the tags (with a quite heavy job to list all items) because we had no other solution, since TMDB didn't allow us any other way of doing so.

@developerwill
Copy link
Author

I think this PR #1802 kind of supersedes yours. It uses blacklist feature though.

IMHO I find it more clean to implement it through the TMDB API if it's supported. We used the blacklist for the tags (with a quite heavy job to list all items) because we had no other solution, since TMDB didn't allow us any other way of doing so.

TMDB API does not support this. Someone responsible let me know if I should close this PR or not 😊

@gauthier-th
Copy link
Member

TMDB API does not support this.

Sorry, didn't look at the implementation details.

Anyway, if we implement it, I find it better to apply a client-side filtering instead of having a daily/weekly job that blacklist items and may miss some entries. And unlike the blacklist tags jobs, we don't need to fetch all items one by one. WDYT @0xSysR3ll?

Also, we always avoided to implement client-side filtering on top of TMDB (except for the blacklist). Is this a path we want to take now? @fallenbagel

@0xSysR3ll
Copy link
Contributor

0xSysR3ll commented Nov 14, 2025

TMDB API does not support this.

Sorry, didn't look at the implementation details.

Anyway, if we implement it, I find it better to apply a client-side filtering instead of having a daily/weekly job that blacklist items and may miss some entries. And unlike the blacklist tags jobs, we don't need to fetch all items one by one. WDYT @0xSysR3ll?

Also, we always avoided to implement client-side filtering on top of TMDB (except for the blacklist). Is this a path we want to take now? @fallenbagel

Well, after giving it some thought, I think client-side filtering is the way to go here - since we're already using it for hideAvailable and hideBlacklisted features. So this PR fits better with our existing approach.

So yeah, I'd go ahead with it.
Mine, tackles a different topic (blacklist scanning config), so I think both can definitely coexist.
But I agree, for anything user-facing, client-side filtering just feels like the right move.

developerwill and others added 2 commits November 19, 2025 11:20
@developerwill
Copy link
Author

TMDB API does not support this.

Sorry, didn't look at the implementation details.
Anyway, if we implement it, I find it better to apply a client-side filtering instead of having a daily/weekly job that blacklist items and may miss some entries. And unlike the blacklist tags jobs, we don't need to fetch all items one by one. WDYT @0xSysR3ll?
Also, we always avoided to implement client-side filtering on top of TMDB (except for the blacklist). Is this a path we want to take now? @fallenbagel

Well, after giving it some thought, I think client-side filtering is the way to go here - since we're already using it for hideAvailable and hideBlacklisted features. So this PR fits better with our existing approach.

So yeah, I'd go ahead with it. Mine, tackles a different topic (blacklist scanning config), so I think both can definitely coexist. But I agree, for anything user-facing, client-side filtering just feels like the right move.

Ok, great, happy to help. Let me know if there’s anything else I should do. What are the next steps toward merging this PR?

@gauthier-th
Copy link
Member

What are the next steps toward merging this PR?

Merging of non-fix PRs is frozen until the Seerr merger is completed and the first version is released.

@gauthier-th gauthier-th changed the title Feat/filter by original languages feat(discover): filter by original languages Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to filter based on original language which content can be requested/shown

3 participants