-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to include language only when matching audio #2861
base: development
Are you sure you want to change the base?
Conversation
I was a bit unsure about the It seemed to me that maybe there was a pre-existing bug there, but I just tried to match the existing logic. It might be worth double-checking that part 🙂 |
I don't understand why you say there's a bug in cutoff logic. Can you explain a little more here or on Discord? |
I might not be understanding the context correctly, but my assumption is we should only be setting if cutoff_temp['audio_exclude'] == 'True' and \
any(x['code2'] == cutoff_temp['language'] for x in
get_audio_profile_languages(movie_subtitles.audio_language)):
cutoff_met = True To me it reads as: Or in simpler terms: My hunch is that we'd like to flip the logic to be: |
This is how it works: If we want to exclude the requested language in profile from search and any audio languages from video file match the specified language in profile, cutoff is met. Does it make sense? I've wrote this a long time ago so it's not fresh in my memory! |
Ok, I think I understand. I previously assumed the cutoff only applied to subs, but in this case it is achieved via one of the audio tracks. Let me know if I'm still off here 😅 I changed my addition such that we don't meet the cutoff when an I also added comments to clarify these cases. |
I may be dumb but I'm still not sure I understand your PR... You moved from and "exclude" logic to an "include" and it may be what confuse me. I'll try to take time to pull your PR later during the week to better grasp how it impact the logic. |
No worries. I did flip the "Exclude" to "Include" in the UI because it felt more intuitive to me, but I'm open to flipping it back if you prefer. I just thought "Include when matching audio" was better than "Exclude when not matching audio", which felt like a double negative. I'll describe my use case here in case it clarifies things:
So, I always want English subs, but I also want German subs if the movie is in German and Icelandic ones if its in Icelandic. |
Addresses feature request 541865.
When configuring a language profile, the user can now choose to include a language:
The change includes the following UI changes:
Before:

After:
