Skip to content
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

Dedupilcate language selector for I-Notes create new epub (Close #800) #801

Merged
merged 1 commit into from
May 18, 2024

Conversation

harsh183
Copy link
Member

@harsh183 harsh183 commented May 18, 2024

Looks like #800 originated from the source (video id=31c8ebb3-0708-440c-b2a3-603c307c6ec8) having multiple english sources and a single one for all other languages.

image

We get the list from source.transcriptions in EPubListController.getLanguages(). Getting this list of seemingly duplicate languages is correct but we shouldn't display them differently so I used a Set to dedup the values for the selector. If it makes sense for any other components we can move the logic up if needed too

@harsh183 harsh183 requested a review from angrave May 18, 2024 00:57
@angrave angrave merged commit e25e2aa into staging May 18, 2024
2 checks passed
@angrave angrave deleted the hd/new-epub-language-selector-dedup branch May 18, 2024 18:03
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.

None yet

2 participants