Hello! Thanks for your comment.
The system already works this way.
It always shows the animation of the video with the highest rarity.
Remember that in the array list of parameters, you should place the rarer videos at the top and the less rare ones at the bottom, for example.