Page 1 of 1

Is -sel:N working to remove duplicates

Posted: Thu Sep 14, 2023 2:46 am
by Heatvent
Per this post ... viewtopic.php?f=10&t=4386 you can use the N selection token to remove duplicates ...
N - matches if Nth (or bigger) track of the same type and language
I would assume it sh ould work something like this:

-sel:2

However, I get an error that the syntax is incorrect. Does anyone know what the syntax should be and/or if this feature is currently broken?

Thanks!

Re: Is -sel:N working to remove duplicates

Posted: Thu Sep 14, 2023 1:20 pm
by Heatvent
So I found some hint in this thread from 2012 ...

viewtopic.php?style=11&p=18695

Following post ...
mike admin wrote:
Sun Feb 12, 2012 7:17 am
NodNarb012 wrote:

Code: Select all

-sel:all, +sel:(favlang|nolang), -sel:(havemulti|havelossless), +sel:(core*(favlang|nolang)), -sel:2, =100:all, -10:favlang
I think that -sel:2 should match second (and third, forth, and so on) instance of my favlang subtitle tracks and de-select it, but instead I get the error: Profile parsing error: Invalid token '-sel:2'
Do I have the syntax wrong or is this broken?
The N syntax is unfortunately broken :( Should be fixed soon, also with "audio" and "subtilte" tokens.
Not sure if this ever got fixed???

Would be great if this would be working for those that automate with makemkvcon to avoid getting duplicates. Probably less of an issue if you manually use the GUI but would be helpful there too in streamlining the process.

Thanks!