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

Pick track with highest quality #626

Open
KatrinIhler opened this issue May 7, 2024 · 0 comments
Open

Pick track with highest quality #626

KatrinIhler opened this issue May 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@KatrinIhler
Copy link
Member

As far as I can tell, the Annotation Tool still selects the first track of each flavor regardless of quality. I thought I had patched that, but it turns out I only did that for the SWITCH fork that used the External API. But it shouldn't be too hard to introduce that here as well... My code snippet:

                          .thenComparingLong(entry -> {
                            Long width = (Long) entry.getValue().get("width");
                            Long height = (Long) entry.getValue().get("height");
                            if (height != null && width != null) {
                             return width * height;
                            }
                            return 0;
                          })

@KatrinIhler KatrinIhler added the enhancement New feature or request label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant